Borrar filtros
Borrar filtros

"matrix dimesion must agree" error (simple equation)

1 visualización (últimos 30 días)
Ahmet Oguz
Ahmet Oguz el 19 de Mzo. de 2017
Respondida: Muhammad Abdurrehman el 19 de Mzo. de 2017
When i try to run this i got an error like "Error using / Matrix dimensions must agree.
Error in Untitled2 (line 2)
M=3/s"
s=0.01:0.01:0.99;
M=3/s
plot(M,s)
end
Why am i getting this error?

Respuestas (1)

Abdurrehman
Abdurrehman el 19 de Mzo. de 2017
Instead of / You should use ./ for matrix division

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by