MATLAB Answers

Extracting data from external file

3 views (last 30 days)
Aaron Edwards
Aaron Edwards on 16 Feb 2020
Answered: Ajay Pattassery on 19 Feb 2020
Not sure how to even start this, I got the data onto matlab via import the 3 columns I labeled X Y Z

  1 Comment

Walter Roberson
Walter Roberson on 17 Feb 2020
The monthly means for January are the ones where Y==1. You can index Z by that logical vector.

Sign in to comment.

Answers (1)

Ajay Pattassery
Ajay Pattassery on 19 Feb 2020
The NorfolkMonMeanTemp.dat seems a matrix with 3 columns.
The questions like extracting the monthly mean for a particular month are matrix indexing.
You can refer the following documentation as a start to understand about retrieving elements from a matrix.
Similarly, refer plot for plotting the mentioned variables.
If you are new to Matlab I strongly suggest doing the MATLAB Onramp course which will help in answering
most of the questions in the attached image.

  0 Comments

Sign in to comment.

Sign in to answer this question.