Effacer les filtres
Effacer les filtres

What does it mean "/Multiple" after variable name in *.mat file?

4 vues (au cours des 30 derniers jours)
Csaba
Csaba le 22 Avr 2024
Commenté : Csaba le 26 Avr 2024
I have *.mat files exported by Bruker Opus program. When I select these files Matlab lists the variables contained in that file. However, after each variable name there is a /Multiple note, (see figure).
When I click on the file it does not load anything.
What does it mean the "/Multiple"? How to load these files?

Réponse acceptée

James Tursa
James Tursa le 25 Avr 2024
Modifié(e) : James Tursa le 25 Avr 2024
If the file is written by a 3rd party tool, it is probably written in uncompressed format. In that case, and if the /Multiple is actually part of the variable names, maybe you can just open the file in a text editor and do a global replace of "/Multiple" with "_Multiple". Save the file under the same name, and then try loading that. It is critical that the number of characters you are replacing remains exactly the same before and after. I.e., don't replace "/Multiple" with "Multiple" because the number of characters are not the same. I think mat files record the length of variable names and you don't want to muck that up.
  3 commentaires
James Tursa
James Tursa le 25 Avr 2024
@Walter Roberson Yes of course!
Csaba
Csaba le 26 Avr 2024
Thanks, it worked, although I edited it in a Hex editor.
Csaba

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 22 Avr 2024
The .mat file has been created by an external program not using the official Application Programming Interface. The variable names that have been inserted in the .mat are not valid.
  9 commentaires
James Tursa
James Tursa le 24 Avr 2024
Interesting ... loadfixnames sees that /Multiple as part of the variable name. And the dimensions differ from your post. I will try to look into my code this weekend.
Csaba
Csaba le 25 Avr 2024
Dimensions differ because unfortunately I tried a different file. Sorry. Here is the file content:

Connectez-vous pour commenter.

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by