HOW TO CODE AND PLOT EQUATION

2 vues (au cours des 30 derniers jours)
korukosheep
korukosheep le 7 Déc 2020
Commenté : Walter Roberson le 7 Déc 2020
I tried to code and plot this Midilli equation but it keep on saying “subscript indices must either be real positive integers or logicals”. I need to plot those decimals but i dont know how
a= 1.1143 k= 0.1791 n= 0.3215 b= 0.00321 t = 11 mins
MR = a•exp(-k(t^n))+b•t
  1 commentaire
Ive J
Ive J le 7 Déc 2020
MR = a*exp( -k*(t^n) ) + b*t; % consider .* in such cases

Connectez-vous pour commenter.

Réponses (1)

Ameer Hamza
Ameer Hamza le 7 Déc 2020
You are missing multiplication operator between 'k' and t^n.
MR = a*exp(-k*(t^n))+b*t
  5 commentaires
korukosheep
korukosheep le 7 Déc 2020
I tried to input these values for
a= 1.1143 k= 0.1791 n= 1.3215 b= 0.00321
Walter Roberson
Walter Roberson le 7 Déc 2020
at the command line give the command
clearvars
and then run the code again

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by