Can't deselect all when importing from .mat file

1 visualización (últimos 30 días)
Larry McDermott
Larry McDermott el 4 de Mzo. de 2020
Comentada: Larry McDermott el 11 de Mzo. de 2020
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?

Respuestas (1)

Hari Krishna Ravuri
Hari Krishna Ravuri el 11 de Mzo. de 2020
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 comentario
Larry McDermott
Larry McDermott el 11 de Mzo. de 2020
Thanks, appreciate the feedback, new, useful trick for grabbing only one variable from a big file!

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by