2016/11/26

Matlab: My First Time with Simulink 第一次接觸Simulink

一直不太了解Simulink是什麼
今天第一次玩玩
過程如下:

Below are instructions of a simple Simulink example for beginners. (Just like a "Hello World" in learning a new programming language.)

1. Enter the following command in Matlab:

>> simulink

After a while, the Simulink Library Browser is opened automatically.

2. Select File -> New ->Model and an "untitled" window is opened.

3. Search for "Sine Wave" and "Scope" in Simulink Library Browser and drag them into the "untitled" window. (Don't select Sine or Sine Wave Function.)

4. Connect "Sine Wave" to "Scope".

5. Double click "Scope" to open the waveform.

6. Double click "Sine Wave" to adjust the amplitude and frequency.

7. Press the ▻ button to start simulation.

Result:


Related Information:

Matlab: Draw a Sine curve with sind()

沒有留言:

張貼留言