필터 지우기
필터 지우기

How to address dataset array column using variable

조회 수: 2 (최근 30일)
Patrick Saegesser
Patrick Saegesser 2012년 1월 7일
I need to retrieve values from dataset columns by addressing them using variables, e.g. dataset array:
DS =
C1 C2
10 20
11 21
To get the DS values for C1, I know I can address it by using
DS.C1
However, I need to address it through a variable, e.g.
Ref = 'C1'
Does anyone know of either a direct way or a work around to do so? Your help is very much appreciated!

채택된 답변

per isakson
per isakson 2012년 1월 7일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by