Subscript indices must either be real positive integers or logicals error,
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sandil thumbela
am 26 Mär. 2016
Kommentiert: sandil thumbela
am 26 Mär. 2016
r=10;
z=0:0.1:4*pi;
x=r*(z-sin(z));
Subscript indices must either be real positive integers or logicals.
I keep getting this error whenever I use a function involving sine. Even if use examples from a book or matlab examples the error keeps popping up? Any one having the same problem. this is matlab R2015b
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 26 Mär. 2016
Bearbeitet: Azzi Abdelmalek
am 26 Mär. 2016
Try this
clear sin
r=10;
z=0:0.1:4*pi;
x=r*(z-sin(z))
Probably sin was used as a variable in a previous program
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!