How to keep timetable variable name after imported to SDI

조회 수: 2 (최근 30일)
Andy
Andy 2022년 11월 18일
댓글: Andy 2023년 9월 26일
I have a timetable with multiple columns (variables). Some of them are one dimension in each time step, some are 3 by 1, and some are 3 by 3.
When I imported to SDI, I only see all of them are using my timetable name.
How can I add the timetable into the SDI (using the command) and keep the variable name?

채택된 답변

Sugandhi
Sugandhi 2023년 9월 22일
Hi,
I understand that you want to add the timetable into the SDI (using the command) and keep the variable name.
On of the possible ways to achieve this could be using add(runObj,'vars',var,var2,...,varn)’, with which you can import data from one or more variables into the Simulation Data Inspector by adding one or more signals to the run that corresponds to the specified Run object. To get variable names in timetable ‘myTimetable’ use
variableNames = myTimetable.Properties.VariableNames;
For more understanding, kindly go through following link:
  댓글 수: 1
Andy
Andy 2023년 9월 26일
Yikes, sounds like I have to write my own script...Thanks for answering this. Hopefully Mathworks can work on supporting timetable a bit more.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by