How to download a .mat file from MATLAB Onramp
    18 ビュー (過去 30 日間)
  
       古いコメントを表示
    
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.
GS
2 件のコメント
  Kyle Sieracki
 2020 年 11 月 19 日
				Can you post the a link/download of the data for Cchord.mat. I'm trying to do what you did and I can't figure it out
採用された回答
  Shiva Katukam
    
 2020 年 8 月 27 日
        Direct download or saving the mat file is not supported. But you can still create a new mat file and copy the variables from the mat file you wish to download. 
2 件のコメント
  Kyle Sieracki
 2020 年 11 月 19 日
				Can you post the a link/download of the data for Cchord.mat. I'm trying to do what you did and I can't figure it out
その他の回答 (1 件)
  Ciro Bermudez
 2021 年 11 月 19 日
        
      編集済み: Ciro Bermudez
 2021 年 12 月 7 日
  
      I extracted the "Cchord.mat" using the following code:
clear; clc;
load Cchord.mat
for i = 1:3072
    fprintf("%1.32f\n",y(i));
end
% 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
clear; clc;
format long;
y = load('data.csv');
fs = 8192;
save Cchord.mat;
Remember thar the ".csv" should be in the same directory you are working on, hope it helps.
参考
カテゴリ
				Help Center および File Exchange で Downloads についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



