フィルターのクリア

Info

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

how do you stop at a column without getting exceeds dimension error

1 回表示 (過去 30 日間)
minion001
minion001 2017 年 9 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
finding the elevation change in a 2D matrix (4 by 6), it starts from one corner, and ends at the other, increasing in columns and finding the smallest elevation change cost by rows, I have put it into a for loop, i=1: col, even used while loop while I<=col once it reaches the end of the column it starts searching for points which are not there, how do I code it for it to have picked the last element of a column and stored in an array of Rows(i) and cols(i)? for example im at the position (2,5), and it has picked smallest change in elevation in column 6, (3,6), how do the col 6 position for picking points that are not there.
thanks
  2 件のコメント
James Tursa
James Tursa 2017 年 9 月 10 日
Please post your code, not just a description of your code.
Jose Marques
Jose Marques 2017 年 9 月 11 日
Post your code, please.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 9 月 11 日

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by