I can't running curve in matlab

4 vues (au cours des 30 derniers jours)
Nur Wahidiyatil
Nur Wahidiyatil le 25 Fév 2023
Commenté : Nur Wahidiyatil le 27 Fév 2023
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 commentaire
Nur Wahidiyatil
Nur Wahidiyatil le 25 Fév 2023
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')

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 25 Fév 2023
x = t.^2/0.02;
y = (t.*(t+0.43))/0.08;
z = (t.*(t+0.47))/0.07;
  7 commentaires
Walter Roberson
Walter Roberson le 26 Fév 2023
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 le 27 Fév 2023
Thank you so much

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits


Version

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by