Symbolic variable from a Script/Workspace to Simulink function for calculations
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
So i have some issue with pulling a matrix (or anything else really) from a script/workspace into simulink for some controller..
The problem is that specific matrix is too big to be displayed (so i cant copy like i have been doing for ages), i calculated the matrix as symbolic and when trying to use the Block Parameter i keep getting errors that says i can only put a numeric matrix inside.
Is there a way to make it work?
0 件のコメント
回答 (1 件)
Karan Gill
2017 年 2 月 13 日
By "only numeric matrix", I assume that your Block Parameter only accepts numbers? If so, can you convert the symbolic matrix to double by using "double"?
If your symbolic matrix has symbolic variables, first substitute the variables for their values using the "subs" function.
Also, why do you need to start in Symbolic? What are you trying to calculate?
Thanks, Karan.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!