Generating Square Wave in Matlab
1 回表示 (過去 30 日間)
古いコメントを表示
Seyedfoad Taghizadeh
2014 年 1 月 16 日
回答済み: Walter Roberson
2014 年 1 月 16 日
Hi,
I intend to generate a square wave by Matlab simulation with this characteristic:
- 20 kHz, - amplitude between 0 and 1, - it is able to be shifted.
Then, I am going to convert the square wave to a DSP board. Therefore, I have to use discrete time blocks. Because the continues time blocks are not acceptable by compiler.
Please help me to find the appropriate algorithm.
Regards Foad
0 件のコメント
採用された回答
Image Analyst
2014 年 1 月 16 日
How about using ones(), zeros(), and repmat()?
3 件のコメント
Image Analyst
2014 年 1 月 16 日
編集済み: Image Analyst
2014 年 1 月 16 日
I assume you mean Simulink. Sorry - I do not have Simulink. I didn't know Simulink was required because you didn't list that in the Products or Tags. I will put it there for you so other people will know. I thought you could put MATLAB code into blocks but since I don't have it, I'm not sure.
その他の回答 (1 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!