How to load two variables with different array size (Speed and Torque) into workspace with same size ?

1 回表示 (過去 30 日間)
My intenstion is to find the efficiency of the Model with inputs as speed and torque, which is obtained from simulink model simulation. Output of the simulink (Speed and TORQUE ) are to be loaded into workspace (with same size) for calculating the efficiency and plotting all the 3 in a meshgrid.
  2 件のコメント
dpb
dpb 2021 年 7 月 18 日
What you can load into MATLAB from the Simulink model is what it outputs -- if they aren't the same size for some reason (why wouldn't they be?), then you've got issues of whether the two elements belong together in time to solve firstly.
You can do all kinds of things, but what would make sense would take knowing much more than we currently know about what you're generating and how and what is available to use...
Varun Nair
Varun Nair 2021 年 7 月 18 日
Thanks for your reply, regarding the initial points you pointed out, I was aware but dont know why it is like that.in my case I have added a load case externally. But I can share the file with you for your refernce.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by