How to plot a against varying phi value
Show older comments
I am sorry if this is an easy answer, I am a noob on this.
del=sin(beta)^2(1+s^2+I)-sin(phi)(sin(phi)+u*cos(phi))
tan(beta)=1/s
s=0.95,1.0,1.1,1.2
u=0.75
I=1
I have to plot del against phi
Phi should go from 0 degrees to 90 degrees
How do I go about doing this ?
Thanks in advance.
Answers (1)
Andrei Bobrov
on 2 Oct 2015
Edited: Andrei Bobrov
on 2 Oct 2015
phi = (0:90)';
s = [0.95,1.0,1.1,1.2];
sd = sind(phi);
plot(phi,bsxfun(@minus,sin(1./s).^2.*(1+s.^2+1),sd.*(sd+.75*cosd(phi)));
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!