Plotting equation as a function

조회 수: 1 (최근 30일)
Metin
Metin 2014년 11월 6일
편집: Metin 2014년 11월 7일
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

채택된 답변

Marta Salas
Marta Salas 2014년 11월 6일
편집: Marta Salas 2014년 11월 6일
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
Metin
Metin 2014년 11월 7일
Thank you so much,that will be helpful to me...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Gamma Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by