Problem with multivariable plots
Ältere Kommentare anzeigen
How do i plot the same function with different values of a constant in a plot?
I have a function, with 2 variable inputs and 2 outputs. I plotted it where i keep the one variable constant, and now i want to plot it keeping the other variable constant, but for multiple values af a constant. Heres the function:
[Gamma, Beta] = Vinkel(n, tid)
n = 1:365;
tid = 0;
Omega = 15*tid;
Phi = 56.3;
Delta = 23.45*sind(360*(284+n)/365;
Theta_z = acosd(cosd(Phi)*cosd(Delta)*cosd(Omega)+sind(Phi)*sind(Delta));
%Sign_Omega gives 1 if Omega is positive and -1 if Omega is negative.
Gamma = Sign_Omega(Omega)*(acosd((cosd(Theta_z)*sind(Phi)-sind(Delta))/(sind(Theta_z)*cosd(Phi))))
Figure
plot(n,Theta_z)
Now i want to plot Gamma and Theta_z for tid = -12:12 for n = 171 and 356.
Akzeptierte Antwort
Weitere Antworten (1)
ashkan mohammadi
am 28 Feb. 2020
0 Stimmen
how do i plot this multivariable equation : ax^3-bx^2+3x(3-i^2)-1+i^2
i tried to used polynomial for finding the root of this above equation but i got matlab error..
in fact i'm gonna find x for different value of i, and then plotting x versus i ????
Kategorien
Mehr zu Gamma Functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!