selecting a smaller array from a bigger one

3 ビュー (過去 30 日間)
Vadim Tambovtsev
Vadim Tambovtsev 2016 年 9 月 29 日
コメント済み: Adam 2016 年 9 月 29 日
Hello.
Suppose we have a grid block 100x90x80, where grid blocks: x=1:100, y=1:90, z=1:80, array is r(x,y,z) with some values.
How to make an array of a smaller grid block, which is located inside this big block? Now, the blocks are: x=21:60, y=21:70, z=31:50; i.e. it will be a smaller grid block 40x50x20. Thank you!

採用された回答

Adam
Adam 2016 年 9 月 29 日
result = r(21:60, 21:70, 31:50 );
I'm not sure I see what the problem is?
  2 件のコメント
Vadim Tambovtsev
Vadim Tambovtsev 2016 年 9 月 29 日
Thank you, I am not very experienced in this program.
Adam
Adam 2016 年 9 月 29 日
I was just surprised because you almost answered your own question. When you are new to Matlab the command line ( as well as the help) is your best resource. Just try things out there and see what you end up with - it is how I learned at the start and still do. You just need to try out syntaxes and here the obvious one would have given you the right answer!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by