フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

want to make vectors of same length

1 回表示 (過去 30 日間)
sud
sud 2018 年 5 月 16 日
閉鎖済み: Stephen23 2018 年 5 月 16 日
Hello, need help in the following problem. BC is 1x99 and a(i), b(i) and c(i) are 1x30. and i want to plot BC vs a(i), but i am getting following error: In an assignment A(:) = B, the number of elements in A and B must be the same. any help much appreciated
data = load(FF); mass = data(:,1); %extracting all rows of column 1 deq = data(:,16); %extracting all rows of column 16
BC = (15:10:995);
for i = 1:length(BC)-1; index = deq>=BC(i)-5 & deq<BC(i)+5; masstemp = mass(index); a(i) = min(masstemp); b(i) = median(masstemp); c(i) = max(masstemp); end

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by