Getting error "Subscript indices must either be real positive integers or logical'
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sania Gul
el 2 de En. de 2019
Comentada: madhan ravi
el 4 de En. de 2019
I am getting this error when I run the following commands. Help needed at the earliest.
v=[1 -2 3];
n=norm(v);
1 comentario
Respuesta aceptada
madhan ravi
el 2 de En. de 2019
Editada: madhan ravi
el 2 de En. de 2019
It might happen that you have a variable called norm so try the below:
clear all
% or
clear norm
% or
clear norm global
v=[1 -2 3];
n=norm(v);
Also
which norm -all % what shows up
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Discrete Math 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!