フィルターのクリア

Search for an element in an array in reverse order

23 ビュー (過去 30 日間)
Lev Mihailov
Lev Mihailov 2020 年 2 月 4 日
回答済み: Stephen23 2020 年 2 月 4 日
for i=1:length(X)
x=find(Matrix(X(i):1,i)<100,1,'first')'; %
X100(i)=x;
end
Unable to perform assignment because the left and right sides have a different number of elements.
Error in MatrixRead (line 16)
X100(i)=x;
I need to find the element less than 100 in reverse order.
help fix this error
X is the item number is greater than 120 (practically I need to get the value 21)

採用された回答

Stephen23
Stephen23 2020 年 2 月 4 日
Use the 'last' option.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by