フィルターのクリア

how to vectorize these for loop

1 回表示 (過去 30 日間)
Anita pawar
Anita pawar 2017 年 9 月 12 日
コメント済み: Rik 2017 年 9 月 12 日
clc;
clear all;
close all;
a=[1,3,8];
for i=1:3
b(:,:,i)=sisobnds(a(i),w,wbd,ws,p,R,nompt);
end
plotbnds(b(:,:,1))
plotbnds(b(:,:,2))
plotbnds(b(:,:,3))
  3 件のコメント
James Tursa
James Tursa 2017 年 9 月 12 日
The loop only has 3 iterations. Even if vectorizing is possible with the sisobnds function, how much do you think it will help?
Rik
Rik 2017 年 9 月 12 日
Also a general tip: don't use clear all,close all. Use functions so separate workspaces and variables. If you insist on using it, use clear variables, so you can still use breakpoints.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by