Difference between methods of copying a simulink parameter
6 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Patel Mounika
2019 年 3 月 12 日
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!