How to input y' = 2x^3 - 2xy into matlab?
Show older comments
I input it as :
2*x.^3-2*x*y;
but it didn't work.
I also tried this:
(2*x.^3)-(2*x*y);
How can i fix this?
2 Comments
James Tursa
on 17 Feb 2017
Edited: James Tursa
on 17 Feb 2017
Didn't work in what way? What are the sizes of x and y? In the future, please give us some context for what you are doing, and also include the actual code you are using along with an exact copy&paste of the error message you are getting.
S.R.
on 17 Feb 2017
Accepted Answer
More Answers (2)
James Tursa
on 17 Feb 2017
Edited: James Tursa
on 17 Feb 2017
Maybe this?
(2*x.^3)-(2*x.*y)
But hard to say if this is correct for you application since we don't know the sizes of x and y and how you are using this.
Muhammad syafikh Mohd umar
on 29 Mar 2022
0 votes
How to answer 3^2x.sqrt(9)=729
Categories
Find more on Creating and Concatenating Matrices 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!