I dont understand why the variable x is incorrect.
Show older comments



Please explain to me what is wrong!
4 Comments
John D'Errico
on 27 Apr 2023
Edited: John D'Errico
on 27 Apr 2023
It is so much easier to help you if you paste in the code itself, instead of a picture of your code. Why would you want to make it more difficult to get help?
Nam
on 27 Apr 2023
Walter Roberson
on 27 Apr 2023
Question:
What is the purpose of your syms x; line ?
Nam
on 27 Apr 2023
Answers (1)
Paul
on 27 Apr 2023
0 votes
Hi Nam,
What is the justification for the computation of r(1,:)?
If you're trying to find the extrema of J0, why use fsolve to find points where J0 = 0?
2 Comments
Nam
on 27 Apr 2023
Paul
on 27 Apr 2023
I'm afraid I can't be of much more help other than suggesting to reread:
the problem statement and figure out what the condition is for J0 to have an extremum, which will determine what needs to be solved using fsolve, and
reread item 4 to understand how to initialize the solution.
Categories
Find more on Linear Algebra in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!