Community Profile

photo

Omar Ahmad AL Bloushi


Last seen: 1 year ago Active since 2021

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


can someone help me with this code? there is something wrong and I don't know what it's.
%prameters L = 160 w = 1000 * 2 * pi/60 r = 60 N = 100 th0 = 0 thl = 180 dth = (thl - th0)/N q=r/L l = 1 %calculat...

2 years ago | 1 answer | 0

1

answer

Question


Why do I get "Array indices must be positive integers or logical values" in line 17
%prameters L = 160 w = 1000 * 2 * pi/60 r = 60 N = 100 th0 = 0 thl = 180 dth = (thl - th0)/N q=r/L l = 0 %calculatio...

2 years ago | 1 answer | 0

1

answer

Question


Every time I run this code, I get "Error using plot Vectors must be the same length. Error in ex (line 22)
%prameters L = 160 w = 1000 * 2 * pi/60 r = 60 N = 100 th0 = 0 thl = 180 dth = (thl - th0)/N q=r/L %calculation for ...

2 years ago | 1 answer | 0

1

answer