How to download a .mat file from MATLAB Onramp
53 views (last 30 days)
I'm doing the MATLAB Onramp as a refresher, and I have found a very interesting exercise on music chords, frequencies and Fourier Transform (10.2 Project). I would like to experiment on this using my desktop installation of MATLAB, but I need the "Cchord.mat" file. Is it available for download and personal use?
Thank you in advance.
More Answers (1)
Ciro Bermudez on 19 Nov 2021
Edited: Ciro Bermudez on 7 Dec 2021
I extracted the "Cchord.mat" using the following code:
for i = 1:3072
% 1 3072
% 3073 6144
% 6145 9216
% 9217 12288
you need to change the limits of the for cycle four times, copy and paste the result in notepad++ or sublime text, then save the file as "data.csv".
Note: to easily copy the result just select the first line, then press and hold the shift key, with the mouse move to the end and click at the end of the last line.
Finally use the following code in your desktop matlab to save a ".mat" file
y = load('data.csv');
fs = 8192;
Remember thar the ".csv" should be in the same directory you are working on, hope it helps.