- Throw an error? If so can you show us the full and exact text of the error message (all the text displayed in red) displayed in the Command Window.
- Issue a warning? If so can you show us the full and exact text of the warning message (all the text displayed in orange) displayed in the Command Window.
- Crash? If so please send the crash log file along with the MAT-file to Technical Support for investigation. You can use the telephone icon in the upper-right corner of this page to contact Support.
- Load the data incorrectly? If so we'll probably need to see a sample MAT-file along with an explanation of why you believe the data was loaded incorrectly. It could be it's just getting displayed in a different way than you expected.
- Do something else unexpected? If so please provide more details about what exactly happens and what you expected to happen.
loading .mat files in 2020a
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Unable to load .mat files into MATLAB2020a
3 comentarios
Respuestas (1)
Steven Lord
el 14 de Mayo de 2020
Are you trying to open the file in the MATLAB Editor?
This is a data file, not a program file. You read the data stored in a MAT-file by calling load, not by trying to edit it or dragging and dropping it into the MATLAB Editor.
2 comentarios
Steven Lord
el 15 de Mayo de 2020
Yes, MAT-files are intended to store data so you and others can refer to that data in the future. If you want to present your results to another human being there are other tools and file formats.
Live scripts and functions allow you to write code and text and include pictures, results, etc. in the file. Other MATLAB users can read and run your live script or live function.
If you want to share your live script or live function with others in a static form, you can export it to various formats including PDF, LaTeX, and Microsoft Word. Or if you're not working with a live script you could publish it to various formats.
If you're taking a course where you have lab work, MAT-files are like the notebooks where you record the raw data you collect as you run your experiments. Live scripts and published scripts are like the reports of your results where you analyze your results and show them to your professor to be graded. If your professor reads your report (live script) and wants to see the raw data you could send them the MAT-file.
Ver también
Categorías
Más información sobre Workspace Variables and MAT Files en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!