how to write equation in matlab?
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    ajeet verma
 el 16 de Ag. de 2017
  
    
    
    
    
    Comentada: vinod kumawat
 el 23 de Sept. de 2018
            how to write equation in matlab to find corresponding graph; equations are given in attached file
0 comentarios
Respuesta aceptada
  Bastien Rouzé
 el 16 de Ag. de 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 comentario
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


