MATLAB Answers

Is it possible to read a value out of a graph, and use this value in simulink?

24 ビュー (過去 30 日間)
Marcel Been
Marcel Been 2014 年 8 月 27 日
回答済み: Kaustubha Govind 2014 年 8 月 27 日
I need something (a code) to read a value out of a (self created) graph. This value i want to put in my simulink model.
The graph will be created by two matrices, but not all the values are in the matrix, so with a graph the line is not blocked, but nicely curved. And this gives me the missing numbers in the matrices. So a good sollution for the missing values.
I want to get the Y-value of the graph, by putting the X-value (from simulink) in this 'code', to get the corresponding value/number out the graph to put this back in my simulink programm.
Hopefully you understand what i mean. And i hope somebody have a sollution or hint for me.
PS: English is not my native language

  0 件のコメント



Ilham Hardy
Ilham Hardy 2014 年 8 月 27 日
After using the 'dwim' toolbox, I think you what you need is this one: 1-D Lookup Table
mvg, IH

その他の回答 (2 件)

Muhammad Faizan Tahir
Muhammad Faizan Tahir 2014 年 8 月 27 日
Please guide me how i can ask the question on this forum

  1 件のコメント

Kaustubha Govind
Kaustubha Govind 2014 年 8 月 27 日
See the "Ask a Question" button the left pane.


Kaustubha Govind
Kaustubha Govind 2014 年 8 月 27 日
It looks like all you want is to interpolate your values. You may want to use the interp1 function for this.
Assuming that you need to use this value as a parameter in your Simulink model, you can simply enter the name of the base workspace variable in the Simulink block dialog in place of a value.

  0 件のコメント


Community Treasure Hunt

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

Start Hunting!

Translated by