Find a variable from an integration equation
Show older comments
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 Comments
Matt J
on 1 Sep 2023
Your posted code does not contain fsolve or fzero or the error messages they threw.
Dyuman Joshi
on 2 Sep 2023
"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
on 2 Sep 2023
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

