how to call nested structure and cell array?

조회 수: 6 (최근 30일)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2019년 8월 9일
댓글: Zeynab Mousavikhamene 2019년 8월 9일
if I want to call the firts column of the data.timepoints how can I do that? I mean the "time" column.
I really appreciate any help.

채택된 답변

Jon
Jon 2019년 8월 9일
편집: Jon 2019년 8월 9일
I'm not sure exactly what you mean by "call the first column of the data.timepoints"
If you wanted to assign some other variable (I'm not sure why you would want to do this) to hold the time values you could use, for example
t = data.timepoints.time
If you wanted to perform some mathematical operation on the vector of times you could do it directly for example
y = 2*data.timepoints.time + 10
If this is not what you are asking, then can you please clarify. Best is to give a simple example (short piece of code to demonstrate) of what you are trying to do, explain the problems that you encounter, and copy and paste the full text of any error messages that you encounter
  댓글 수: 7
madhan ravi
madhan ravi 2019년 8월 9일
Zeynab, will you attach your data ???
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2019년 8월 9일
It is huge data and I did some precalculations. I was trying to put all structure in an excel file to send it here but I got the error that it is huge. Any suggestion?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

madhan ravi
madhan ravi 2019년 8월 9일
편집: madhan ravi 2019년 8월 9일
[data.timepoints.time]

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by