Find a variable from an integration equation
古いコメントを表示
Hi,
I want to calculate motor_power variable from know total_time variable.
All other parameters are known expect motor_power.
I have tried fsolve and fzero functions but throwing errors related to integration
Kindly request you to support for my problem
The code is as below:
ct=@(speed)base_speed1./(motor_power-(a+b.*speed.^2).*base_speed); %Function 1%
cp=@(speed)speed./(motor_power-(a+b.*speed.^2).*speed); %Function 2%
total_time=m_veh*integral(ct,0,base_speed)+m_veh*integral(cp,base_speed,max_speed); %Integration equation%
3 件のコメント
Matt J
2023 年 9 月 1 日
Your posted code does not contain fsolve or fzero or the error messages they threw.
Dyuman Joshi
2023 年 9 月 2 日
"I have tried fsolve and fzero functions but throwing errors related to integration"
You have to show what you tried with those functions and what errors did you get. Copy and paste the rest of the code and the error messages you get i.e. all of the red text.
Harsh
2023 年 9 月 2 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


