Borrar filtros
Borrar filtros

Why we do defined objects are saved as unit32 in .mat files ?

1 visualización (últimos 30 días)
Dalia Sobhy
Dalia Sobhy el 14 de Dic. de 2017
Editada: Stephen23 el 15 de Dic. de 2017
In other words, how to save them as objects ?
Thanks
  9 comentarios
Dalia Sobhy
Dalia Sobhy el 14 de Dic. de 2017
Editada: Stephen23 el 15 de Dic. de 2017
I thought its not important. Yeah I typed
path
I have found the parent Directory for Class there. So why still this is a problem ?
Thanks :)
Dalia Sobhy
Dalia Sobhy el 14 de Dic. de 2017
Yeah I got it. The main problem is that the class was on another path. So I import the data, then it is saved to uint32 then I run the class.
So it was sorted out using the following: 1- Add path by either manually (addpath command) or by running the class file 2- Load the .mat file
But every time I run the file, I should add the path, how to add path permanently ?

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 15 de Dic. de 2017
how to add path permanently
addpath D:\MFiles\YourFolder -end
savepath
Look in the documentation of addpath: https://www.mathworks.com/help/matlab/ref/addpath.html. At the bottom you find the "See also" line, which contains useful related commands. Here the gem savepath is mentioned.
Alternatively you can do this using the pathtool: Select the folder in a GUI and save the path permanently.
Sometimes there are problems saving the path, if the user does not work with admin privileges (but this is a good idea!). Then writing to matlabroot\toolbox\local\pathdef.m does not work. I solve this by allowing users to modify this file in the Window Explorer.

Categorías

Más información sobre Search Path en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by