please ho can get in matlab B
1 回表示 (過去 30 日間)
古いコメントを表示
please how can get in matlab value of B and how to write the equation B for example
w=1:1:360 how to get B =sin(w2)- sin(w1) for each time step
2 件のコメント
採用された回答
Jan
2016 年 7 月 14 日
Either as a loop:
for w = 1:359
B(w) = sind(w+1) - sind(w); % SIND instead of SIN?!
end
or vectorized:
B = sind(2:360) - sind(1:259);
or most efficient:
B = diff(sind(1:360))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!