Getting error "Subscript indices must either be real positive integers or logical'
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sania Gul
am 2 Jan. 2019
Kommentiert: madhan ravi
am 4 Jan. 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 Kommentar
Akzeptierte Antwort
madhan ravi
am 2 Jan. 2019
Bearbeitet: madhan ravi
am 2 Jan. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!