Can't deselect all when importing from .mat file

조회 수: 11 (최근 30일)
Larry McDermott
Larry McDermott 2020년 3월 4일
댓글: Larry McDermott 2020년 3월 11일
Currently using 2018b.
I can't find a way to deselect all variables (in order to select only 1 or 2) from a file when using import.
Doesn't seem possible, is there a way to do this?

답변 (1개)

Hari Krishna Ravuri
Hari Krishna Ravuri 2020년 3월 11일
I understand that you want to select only few variables, while deselecting all other variables in the Import Wizard. But as of now, deselecting all the variables in a single step is not possible.
As a workaround you may consider using load to import specific variables from .mat file
For example, to load the variable named X from durer.mat file, these statements are equivalent
load durer.mat X % command form
Or
load('durer.mat', 'X') % function form
To know more about load, please refer https://in.mathworks.com/help/matlab/ref/load.html
Hope this helps!
  댓글 수: 1
Larry McDermott
Larry McDermott 2020년 3월 11일
Thanks, appreciate the feedback, new, useful trick for grabbing only one variable from a big file!

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

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by