MATLAB Answers

0

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

Asked by Sam Faulstich on 16 Jul 2019
Latest activity Answered by KSSV
on 16 Jul 2019
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?

  0 Comments

Sign in to comment.

1 Answer

Answer by KSSV
on 16 Jul 2019

You can use functions like ismember. You can also use logical indexing. The best would be ismember. Read about the function.

  0 Comments

Sign in to comment.