Getting error "Subscript indices must either be real positive integers or logical'
Show older comments
I am getting this error when I run the following commands. Help needed at the earliest.
v=[1 -2 3];
n=norm(v);
1 Comment
Stephan
on 2 Jan 2019
Works for me in R2018a:
>> v=[1 -2 3]
v =
1 -2 3
>> n=norm(v)
n =
3.7417
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!