フィルターのクリア

Subscript indices must either be real positive integers or logicals.

2 ビュー (過去 30 日間)
Luigi Stragapede
Luigi Stragapede 2020 年 5 月 13 日
回答済み: Tommy 2020 年 5 月 13 日
I need to consider this for end loop:
for thetat=0:0.012566:0.6283 %I need 50 points
...
...
end
How can I do if I cannot take decimal indices?

採用された回答

Tommy
Tommy 2020 年 5 月 13 日
thetat=0:0.012566:0.6283;
for idx = 1:numel(thetat)
% use thetat(idx) to access the appropriate theta value in any iteration of the loop
...
...
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePulse width modulation (PWM) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by