problem conversion to char from logical why?
1 view (last 30 days)
Show older comments
ello
can somebody help me solve this?
my code so far:
clc;
clear all;
syms x y;
eqn=((x*sqrt(x)-y*sqrt(y))/(sqrt(x)-sqrt(y))+sqrt(x*y)*((sqrt(x)-sqrt(y))/(x-y))^2) == 0;
solx=solve(eqn,x)
soly=solve(eqn,y)
thanks
1 Comment
Answers (1)
Walter Roberson
on 15 Sep 2015
You are using MATLAB before R2010b (or was it R2011b?)
Replace
eqn=((x*sqrt(x)-y*sqrt(y))/(sqrt(x)-sqrt(y))+sqrt(x*y)*((sqrt(x)-sqrt(y))/(x-y))^2) == 0;
with
eqn = ((x*sqrt(x)-y*sqrt(y)) / (sqrt(x)-sqrt(y)) + sqrt(x*y)*((sqrt(x)-sqrt(y)) / (x-y))^2) - 0;
The spacing only affects the readability but changing the "== 0" to "- 0" should fix the conversion problem.
2 Comments
See Also
Categories
Find more on Logical 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!