12 December 2018 3 6K Report

Hello researchers, I got a question with Matlab. Target is to achieve a variable 'data' which stores the values of year, month, day for which an event occurs. The variable changes with year, it is okay.

My problem:

a) I have the first variable 'e' which stores values in the following way>>

[year month day] ; i.e. the number of columns is fixed, whereas the number of rows changes with respect to a variable count, which indicated the number of occurrence of a particular event.

b) Now the outer loop gets incremented by 1, the year is incremented. But the problem is that since 'data' has to store variable 'e' which itself stores different number of set of [year month day] with respect to number of occurrences in that particular year.

c) I welcome any good suggestions, suggestions from researchers working with Matrix are most welcome.

Thanks if any suggestions are made!

More Adrij Roy's questions See All
Similar questions and discussions