Info
この質問は閉じられています。 編集または回答するには再度開いてください。
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
i want to set array or data set as an input in my simulink model ...please help me to do this..??
1 回表示 (過去 30 日間)
古いコメントを表示
here is my model....in this model i want to set this array [0.025 0.05 0.075 0.1 0.125 0.15 0.175 0.2] as my input.... also the ouput should be in array form... i want to check the output in scope (graphically). please help
0 件のコメント
この質問は閉じられています。
回答 (1 件)
Birdman
2018 年 4 月 5 日
For this purpose, use From Workspace block. Check how I formed the data inside the block. Hope this helps. Let me know if it works for you.
14 件のコメント
sadia qasim
2018 年 4 月 5 日
hi ....thankyou firstly...but unfortunately i m not able to read the attached file...:( can you help me to do so ???
Birdman
2018 年 4 月 5 日
Right click on the file and select Save as. Then save it to your current directory and open it and run.
Birdman
2018 年 4 月 6 日
The model name is inputArray(1). Rename the model as inputArray by deleting the (1) part.
sadia qasim
2018 年 4 月 6 日
yess i did that previously ...is shows the same thing as i showed you in the picture
sadia qasim
2018 年 4 月 8 日
hi birdman ...can you please the file to older version of simulink ...then it may run in my matlab
sadia qasim
2018 年 4 月 9 日
編集済み: sadia qasim
2018 年 4 月 9 日
thankyou soo much birdman ..you made my work easier ....thanks for your cooperation..... but when i tried to set this in my model the display shows something else..... i have send you two model ... in model p1 : i used from workspsce block ..the same way as you showed ...but output seems to be something else .. in p2 model : i used constant block and declared matrix as input parameters ....but also did not work .. Dd= [0.6096 1.219 1.8288 2.4384] This is the input ...and the output is SR and it should display this values ,SR = [1.704 1.682 1.669 1.66]....
sadia qasim
2018 年 4 月 9 日
編集済み: sadia qasim
2018 年 4 月 9 日
plzz tell me which block should i use to set this array as input ( from wrokspace block or constant block) ..also SR (output) is my speed ratio which i want to see graphically which respect to Dd (input). please help me out ...
Birdman
2018 年 4 月 10 日
When you use From Workspace block, you need to provide a time vector, which should be your first column. I set it. See how I did it. Now it works.
sadia qasim
2018 年 4 月 10 日
you can see in the model that given Dd= [0.6096 1.219 1.8288 2.4384] as input, each value of this array will get divided by the constant 12.19214826 and ouput will be SR = [1.704 1.682 1.669 1.66].... But in your p2 edited file (using from workspace block) i can just see only one value gets displayed and in the worspace output is plotted with respect to time ..... I Have mention everything in the model ...please check it and help me to solve this either by workspace or constant....
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
アジア太平洋地域
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)