I can't running curve in matlab

조회 수: 1 (최근 30일)
Nur Wahidiyatil
Nur Wahidiyatil 2023년 2월 25일
댓글: Nur Wahidiyatil 2023년 2월 27일
I have coding for curve in matlab but when I running that coding doesn't display anything. The command window also blank and doesn't display anything. I want this curve like that
  댓글 수: 1
Nur Wahidiyatil
Nur Wahidiyatil 2023년 2월 25일
I have thi coding
t= [0:0.01:0.002];
x = m^2/0.02;
y = (m*(m+0.43))/0.08;
z = (m*(m+0.47))/0.07;
plot(t,x,'b--')
hold on
plot(t,y,'r--')
hold on
plot(t,z,'g--')
hold on
xlabel('Miu')
ylabel('Rekrutmen')
grid
title('Grafik Bifurkasi')

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

답변 (1개)

Walter Roberson
Walter Roberson 2023년 2월 25일
x = t.^2/0.02;
y = (t.*(t+0.43))/0.08;
z = (t.*(t+0.47))/0.07;
  댓글 수: 7
Walter Roberson
Walter Roberson 2023년 2월 26일
The default increment of the : operator is 1 . Your second value is less than the first value plus the increment of 1 so the first value is the only one in range.
The : operator does not mean "the entire range of values between the start point and the end point". The : operator is specifically starting at a value, adding an increment to it, adding an increment to that, adding an increment to the previous, and so on until you would exceed the endpoint.
Nur Wahidiyatil
Nur Wahidiyatil 2023년 2월 27일
Thank you so much

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by