how to write equation in matlab?

1 vue (au cours des 30 derniers jours)
ajeet verma
ajeet verma le 16 Août 2017
Commenté : vinod kumawat le 23 Sep 2018
how to write equation in matlab to find corresponding graph; equations are given in attached file

Réponse acceptée

Bastien Rouzé
Bastien Rouzé le 16 Août 2017
You must define all your variables and a time array with a time step " dt ". Then you write R a variable using all constants defined and the time array. Finally, R and the time array should have the same size, so you could plot them using plot(time_array,R)...
for example :
dx = 0.1;
x = 0:dx:10;
cst = 5;
y = cos(x) + cst;
plot(x,y);
  1 commentaire
vinod kumawat
vinod kumawat le 23 Sep 2018
How to write Sigma summation block in the script please?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics and Optimization 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