Info

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

How do I put elements from one matrix into separate matrices using a loop?

1 回表示 (過去 30 日間)
Sam Faulstich
Sam Faulstich 2019 年 7 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a single matrix that contains the locations of pixels that burned within a geological boundary in a single file, organized by day of the year and longitude. I want to break this up into several matrices containing all of the row information from the first matrix, but contains only pixels that burned on a single day in one location. How can I seperate this large matrix into several matrices using a loop to compare the day of the year and longitude?

回答 (1 件)

KSSV
KSSV 2019 年 7 月 16 日
You can use functions like ismember. You can also use logical indexing. The best would be ismember. Read about the function.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by