フィルターのクリア

Data transfer from matlab to simulink and back

16 ビュー (過去 30 日間)
Ken
Ken 2012 年 1 月 25 日
コメント済み: Moussaoui Aghiles 2021 年 1 月 4 日
How to xfer data from matlab w'space to simulink and back? I tried but it asks for time steps. I want to xfer data that is not time-based i.e. converting from C to F and vice-versa

採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 1 月 25 日
Since simulation is time-based, Simulink does require inputs to have time-stamps associated with them. You can use the Constant block with your workspace variable entered for its Value parameter. However, that if your variable is an array, then the Constant block will output the entire array at each time-step. If you want your inputs to be processed like a stream, then it might be easier to generate dummy time-stamps depending on your model configuration. For example, if you are using a fixed-step solver with a time-step of 0.2, you can use time-stamps like 0, 0.2, 0.4, and so on. You can log the time vector "tout" for your model to see exactly what time-steps your model is taking and use the same vector as time-stamps for your input.
  2 件のコメント
Biruntha Gnaneswaran
Biruntha Gnaneswaran 2015 年 10 月 25 日
編集済み: Biruntha Gnaneswaran 2015 年 10 月 25 日
@ Kaustubha Govind
Hi, I have developed a system using signal processing technique in matlab. it will give string value as a output.Now i want to create simulink model and then send that string value to simulink model in matlab. can you give matlab code to solve this problem?
Thankyou
Moussaoui Aghiles
Moussaoui Aghiles 2021 年 1 月 4 日
Hello I have a problem I have in input one matrice and I want to run each line separately for that I have to use simulink but the problem is that all the matrix run at the same time is there a solution thank you

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 1 月 25 日
  2 件のコメント
Ken
Ken 2012 年 1 月 26 日
Good answer. However, too detailed
Walter Roberson
Walter Roberson 2012 年 1 月 26 日
When 3000 Answers old you are, look this good you will not!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by