Use specific value in a dataset array

9 Ansichten (letzte 30 Tage)
AHN
AHN am 19 Sep. 2016
Kommentiert: José-Luis am 20 Sep. 2016
I have imported a file from excel. I am now trying to do few calculations based on each value in the spreadsheet. For example, if x and y are two columns in the dataset, I want Matlab to choose the corresponding values of the other column. i.e if x=a, then choose corresponding y=P from the dataset as specified in the imported excel spreadsheet and perform calculations for z=1-y and I want it to do it for every value of x. Is there a specific way to do this? Thanks.
  3 Kommentare
AHN
AHN am 20 Sep. 2016
Thank you for the reply. I am new to Matlab, I will read about logical indexing and get back.Thanks.
José-Luis
José-Luis am 20 Sep. 2016
No worries and welcome to Matlab.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by