Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
I am getting this error when I run the following commands. Help needed at the earliest.
v=[1 -2 3];
n=norm(v);

Réponse acceptée

madhan ravi
madhan ravi le 2 Jan 2019
Modifié(e) : madhan ravi le 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

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by