Find a variable from an integration equation
Afficher commentaires plus anciens
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 commentaires
Matt J
le 1 Sep 2023
Your posted code does not contain fsolve or fzero or the error messages they threw.
Dyuman Joshi
le 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
le 2 Sep 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


