I need to multiply each element of a vector of five values by another vector 2000 values.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Farooq
el 5 de Oct. de 2022
Comentada: Farooq
el 6 de Oct. de 2022
MATLAB Courseware - Intro to Engineering course
I am trying to solve this problem of plotting the motion of a projectile against time at five given angles. But I keep getting errors. I understand the error, it is happening because there are only five values in theta but 2000 in t, so the multiplication is not working. But I don't know how to fix it.
I have tried to write it two different ways, one without a for loop and and with a for loop. None of them works. In the for loop I just get a graph with one plot, not five plots.
Please could you help me.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!