1
Could someone help me with this problem?
I need to multiply an expression by x and get the result.
The expression A1 - A1*x + 2*A2*x - A2 x 2 + 3*A3*x 2 - A3*x 3 + 4*A4*x 3 - A4*x 4 + 5*A5*x 4 - A5*x 5 - 1
I need to multiply it by x. How to do?
1
Could someone help me with this problem?
I need to multiply an expression by x and get the result.
The expression A1 - A1*x + 2*A2*x - A2 x 2 + 3*A3*x 2 - A3*x 3 + 4*A4*x 3 - A4*x 4 + 5*A5*x 4 - A5*x 5 - 1
I need to multiply it by x. How to do?
0
Initially you have an error in your expression A2 x^2, considering this as A2*x^2, let’s get to the problem.
Matlab has a very simple syntax:
If you have a and want to multiply a times x, just use
a*x
Case a be something more complex than just a simple variable or number, it is convenient to use parentheses to do the multiplication in the right way getting like this:
(a)*x
You solved my problem. Thank you
Browser other questions tagged matlab
You are not signed in. Login or sign up in order to post.
What is the code you have so far? Did you make a mistake? Which one?
– Woss