Difference between methods of copying a simulink parameter

5 Ansichten (letzte 30 Tage)
Pranav Arya
Pranav Arya am 6 Mär. 2019
Beantwortet: Patel Mounika am 12 Mär. 2019
I wanted to confirm, if the two methods described below have the same functionality or if there is some difference.
Method 1
a=Simulink.Parameter;
a.Value=5;
b=a;
Method 2
a=Simulink.Parameter;
a.Value=5;
b=a.copy;
Thanks in advance.

Antworten (1)

Patel Mounika
Patel Mounika am 12 Mär. 2019
Yes, there is a difference between the two methods. In the first method you are creating a reference to the same object but in the second method, you are creating a new Simulink Parameter object from the existing one.
You can refer to the below thread.
Hope this helps.

Kategorien

Mehr zu Modeling 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!

Translated by