Tuesday, July 9, 2019

HOW TO GET ALL ROWS DATA OF A COLUMN IN MATLAB

How to get all rows data of a particular column:
 Ex: Daily temperature and humidity data=>data=[256 60
                                                                                 270 80
                                                                                 269 70
                                                                                 265 65]
data(:,1)==>gives the temperature data which presents in the 1st column
        ↓ ↳ 1st column
      all
     rows

data(:,2)==>gives the humidity data which present in the 2nd column
         ↓ ↳ 2nd column
      all
     rows

No comments: