Plotting equation as a function

1 Ansicht (letzte 30 Tage)
Metin
Metin am 6 Nov. 2014
Bearbeitet: Metin am 7 Nov. 2014
in the interval 2h/pi<gamma<inf
k=0.4;
alpha=0.5;
tau=50;
h=30;
Plot the absolute value of the left hand side of the above equation as a function of 1⁄gamma?
how could i plot this

Akzeptierte Antwort

Marta Salas
Marta Salas am 6 Nov. 2014
Bearbeitet: Marta Salas am 6 Nov. 2014
k=0.4; alpha=0.5; tau=50; h=30;
% Define the values within the interval for gamma
minValue = 2*h/pi;
maxValue = 100;
gamma =linspace(minValue, maxValue, 1000);
%Define the left hand side of the above equation
func = sqrt(1-(k./gamma).^2)-((k*alpha*tau)./(gamma).^2)-sin(h./gamma);
% plot
plot(1./gamma, func)
  1 Kommentar
Metin
Metin am 7 Nov. 2014
Thank you so much,that will be helpful to me...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Gamma Functions finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by