필터 지우기
필터 지우기

Re-accessing arrays from live scripts

조회 수: 2 (최근 30일)
ohmstead
ohmstead 2018년 10월 9일
답변: Jared MacDonald 2020년 5월 4일
I just started using live scripts this week, and am loving them. Today, I reopened one from yesterday and wanted access to the struct that I created in the last session. The output of the creation is saved in the script:
actual_sesh_list = 1x285 struct array with fields:
sesh_folder_name
sesh_folder_content_flags
But it's not available in my workspace. Is there any way to save array outputs in the live script itself, without actually saving/reloading variables at the end/start of each session of the same script?

답변 (1개)

Jared MacDonald
Jared MacDonald 2020년 5월 4일
Hi ohmstead,
Currently, live scripts do not restore the variables into the workspace when you open them. You must re-run the script, or save and reload from a .MAT file, as you've noted. But we've made a note of your interest in this capability.
Thanks,
Jared

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by