Using Multiple Simulations tool in Simulink
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi,
I was wondering if anyone may be able answer a question I have about using the Multiple Simulations tool in Simulink.
The Antenna block I would like to enable multiple simulation on has as an input azimuth and elevation angles towards which the input signal power wave arrives, specified as a finite real row vector of length 1-by-2 or finite real matrix of length m-by-2 (since R2023a) with each element unit in degrees or radians. m is an integer between in the range [2, 100].
I have tried entering a matrix of values I wish to form a multiple simulation for, namely [90 2;85 2;80 2;75 2;70 2;65 2;60 2;55 2;50 2]
However, during the simulations, it just generates the error "Expected Direction of arrival to be an array with number of columns equal to 2"
Does anybody know how to enter the values into the mulltiple simulation design study so it works or am I doing something obviously stupid here!
Best regards,
Andy
댓글 수: 0
채택된 답변
R
2024년 1월 3일
Hi Andy,
The detailed explanation and the model were a big help. I was able to reproduce the error and debug it. When giving the input values as a 9-by-2 array, the Multiple Simulations tool considers it as one array with 18 values. This can be verified by the # Sims property of the design study being 18. To work around this, use a cell array as input instead. The following input worked for me:
{[90 2],[85 2],[80 2],[75 2],[70 2],[65 2],[60 2],[55 2],[50 2]}
Again, this can be verified by the # Sims propery of the design study being 9.
I hope this helps you measure the antenna power output!
Best,
Raghvi
추가 답변 (2개)
Rishi
2023년 12월 28일
]Hi Andy,
I understand from your query that you want to know how to use the Multiple Simulations tool in Simulink.
You can find a step-by-step guide on how to use Multiple Simulations tool in the below example:
To know more about Multiple Simulations, you can refer to the following documentation:
Hope it helps!
댓글 수: 2
R
2024년 1월 2일
Hi Andy,
I tried reproducing the issue but it works for me in MATLAB R2023b. Can you share the model, reproduction steps and the version of MATLAB you are using so that other contributors can investigate the issue in detail?
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!