Converting a .mat file with multiple variables from v5 to v7
Mostrar comentarios más antiguos
I have a .mat file that contains variables of 120 trials of behavioural data. The file was saved in v5 format, which doesn't seem to be supported so I am trying to save it as v7 using
save('rsvp_data.mat', '*', '-v7')
using the '*' as wildcard to select all the variables instead of writing all 120 of them out.
I get the error:
Error using save
Unable to write file rsvp_data.mat: No such file or directory.
I am in the correct directory and path and all the relevant files are in the directory/path. The original file is named rsvp_data.mat. Should it be renamed to something else? I have tried saving the workspace also, but it doesn't have the 'save as' option, only 'save'.
Does anyone have any advice for me?
4 comentarios
Walter Roberson
el 1 de Mzo. de 2023
save('rsvp_data.mat', '-v7')
could be used to store all the variables in the current workspace.
Antoinette Burger
el 1 de Mzo. de 2023
Walter Roberson
el 1 de Mzo. de 2023
I would only expect that message to appear on a save under two different circumstances:
- the current directory in MATLAB is one that no longer exists. This would have required that the directory was deleted after the user changed to that directory.
- the current directory in MATLAB is set to a network drive such as Microsoft OneDrive, and the network drive is acting up. I have seen more reports of that for OneDrive in particular than for other drives such as Google Drive, but hypothetically OneDrive might perhaps just be used a lot more than the others... so I do not know if it is worse than the others or if it is just used so much more than a lower portion would still give more reports than the hypothetically worse drives.
Antoinette Burger
el 1 de Mzo. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Whos en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!