Question to Matlab solve-function
Hey guys I have a simple question:
I am using Matlab R2010a and trying to solve an equation with 1 variable like this:
solve(‘4-t^2=0’)
ans =
-2
2
No problem as you can see 😉
My question is, when I try to replace the *4* with a variable (lets call it A), it wont work how I want it to work:
solve(‘A-t^2=0’)
ans =
A^(1/2)
-A^(1/2)
All fine, solution found but A is not a variable, it has a defined value of 4, so that the solution would be -2,2.
Can anyone help me to find the solution to this problem if its possible?
Thanks a lot guys!Hey guys I have a simple question:
I am using Matlab R2010a and trying to solve an equation with 1 variable like this:
solve(‘4-t^2=0’)
ans =
-2
2
No problem as you can see 😉
My question is, when I try to replace the *4* with a variable (lets call it A), it wont work how I want it to work:
solve(‘A-t^2=0’)
ans =
A^(1/2)
-A^(1/2)
All fine, solution found but A is not a variable, it has a defined value of 4, so that the solution would be -2,2.
Can anyone help me to find the solution to this problem if its possible?
Thanks a lot guys! Hey guys I have a simple question:
I am using Matlab R2010a and trying to solve an equation with 1 variable like this:
solve(‘4-t^2=0’)
ans =
-2
2
No problem as you can see 😉
My question is, when I try to replace the *4* with a variable (lets call it A), it wont work how I want it to work:
solve(‘A-t^2=0’)
ans =
A^(1/2)
-A^(1/2)
All fine, solution found but A is not a variable, it has a defined value of 4, so that the solution would be -2,2.
Can anyone help me to find the solution to this problem if its possible?
Thanks a lot guys! solve, variable MATLAB Answers — New Questions
​