MATLAB Answers


Create data set according to a plot ?

Asked by Anupa Koswatta on 10 Jun 2019
Latest activity Commented on by Anupa Koswatta on 10 Jun 2019
Accepted Answer by KSSV
How can I create this input data set in matlab? (according to the figure).
Because I want to input this data set into simulink to do a simulation.
This chart the increasement and decreasement could be any value.
Please help me with this problem.
Thank you.


Sign in to comment.

1 Answer

Answer by KSSV
on 10 Jun 2019
 Accepted Answer

t = [0 10 15 30 40 50 60] ;
vel = [20 20 30 30 10 5 5] ;
ylim([0 35])

  1 Comment

Thank you very much for the answer.
There is another additional thing I want to do.
Within 20 to 30 I want to make the increasement with many ups and down values.(for 100 data values).
Instead of writing those 100 data values manually, Please tell me a way to do that.

Sign in to comment.