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!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 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 (한국어)