Getting error "Subscript indices must either be real positive integers or logical'

조회 수: 1 (최근 30일)
I am getting this error when I run the following commands. Help needed at the earliest.
v=[1 -2 3];
n=norm(v);

채택된 답변

madhan ravi
madhan ravi 2019년 1월 2일
편집: madhan ravi 2019년 1월 2일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by