Using Multiple Simulations tool in Simulink
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
R
am 3 Jan. 2024
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
Weitere Antworten (2)
Rishi
am 28 Dez. 2023
]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 Kommentare
R
am 2 Jan. 2024
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?
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!