joefx23
Electrical
- May 27, 2007
- 1
hi
sorry my english is not so good.
i have the following problem
for ind=1:1:length(Phiw)
if Phiw(ind) > 0
[Phiw2(ind) := Phiw(ind)-180]
else
[Phiw2(ind) := Phiw(ind)]
end
end
i want to check whether phiw is positive and substract 180 if it is
but matlab doesnt like the 'Phiw2(ind) = ' statement..
i hope you understand what i want to do.
what can i change that it works? or is there an easier way?
btw: Phiw is createt by a negative arctan...
thanks joe
sorry my english is not so good.
i have the following problem
for ind=1:1:length(Phiw)
if Phiw(ind) > 0
[Phiw2(ind) := Phiw(ind)-180]
else
[Phiw2(ind) := Phiw(ind)]
end
end
i want to check whether phiw is positive and substract 180 if it is
but matlab doesnt like the 'Phiw2(ind) = ' statement..
i hope you understand what i want to do.
what can i change that it works? or is there an easier way?
btw: Phiw is createt by a negative arctan...
thanks joe