How to add more data points in Signal Builder?

Hello, I want to create a signal in Simulink manually. I came across the Signal Builder block but I cannot figure out how to add more data points so that I can drag the points to create a signal of different amplitudes. There is not much information about this block in Help nor the manual. Could anybody please show me how to do that? Thanks

답변 (6개)

Chinmay Sharma
Chinmay Sharma 2017년 6월 20일

23 개 추천

While hovering over the curve, use shift+click to add a data point.

댓글 수: 2

Thanks. How did you know?
I wish that information was at least shown on the help.
Ideally, there should be the options of "Add point" and "Delete Point" in the right-click pop-up menu.
I second this, this is exceptionally unintuitive...

댓글을 달려면 로그인하십시오.

Ali Alemi
Ali Alemi 2021년 4월 9일

2 개 추천

Hold shift key. Then left-click on the signal where you want to add a point.
ES
ES 2017년 5월 12일

1 개 추천

You can define the signal in excel and import it into signal builder (using File->import from file). This is by far the easiest way.

댓글 수: 3

b b
b b 2017년 5월 12일
편집: b b 2017년 5월 12일
Thanks. I saw this feature but I don't know how to do it. For example, I want 0 in the first 10 msec. Then, an amplitude of 6 at the 10-15 th msec followed by 0 at 15-17msec. Next, -3 during 17-20ms. 0 for the rest until the 50ms. Something like that. Any example? How do we specify the time unit in EXCEL so that the time series data get imported to Simulink correctly?
Did you find a way to do that I'm also having trouble for doing that. :)
I just came across this feature today. You can specify a time column and a data column in excel as follows for your case:
0 0
0.01 0
0.01 6
0.015 6
0.015 0
0.017 0
0.017 -3
0.02 -3
0.02 0
0.05 0
Then, using the Signal Builder block, import the data and everything should be as expected
.

댓글을 달려면 로그인하십시오.

Long Wang
Long Wang 2018년 5월 30일

1 개 추천

Thanks for all, it helps me a lot. Actually from the help comment of signal builder, there war no such info. I am wondering, how you figure out this kind of features?

제품

질문:

b b
2017년 5월 12일

답변:

2021년 4월 9일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by