simulink &m-file
1 回表示 (過去 30 日間)
古いコメントを表示
i have m-file code and a simulink model can i convert m-file code to block in simulink which i can make its input port a sinusoidal signal and its output port frequency of this signal m-file code: {%x input signal and fre output y=fft(x)/fs; y=fftshift(y); y=abs(y); fre=.5*fs+1-find(y==max(y),1);}
0 件のコメント
採用された回答
Kaustubha Govind
2012 年 3 月 19 日
See the first line in my answer here: http://www.mathworks.se/matlabcentral/answers/26682-linking-simulink-from-m-file
6 件のコメント
Kaustubha Govind
2012 年 3 月 22 日
You can use any simulation time, that doesn't affect the operation of the block - the model will just keep running until you stop it.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!