Izhar Ulhaq
Izhar Ulhaq

Reputation: 1

writing equation in spherical coordinates in Matlab

I want to implement this equation of spherical coordinates in matlab, but I am really confused how to get the value of j1 from it. and what values of phie1 and theeta1 should i define?

j1 = (cos(ø1)cos(∅1) , cos(ø1)sin(θ1) , sin(ø1))T

while I implemented like this but it gives error :

phiie1 = 0:180;
theeta1= 0:360;
j1 = transpose([(cos(phiie1)*(cos(theeta1))) (cos(phiie1)*(sin(theeta1))) sin(phiie1)]) %eq 4 

Upvotes: 0

Views: 87

Answers (0)

Related Questions