How do I express coefficient x, y, z using a, b, c, P0?
2 views (last 30 days)
Show older comments
I substitute VLED in equation (1) for in (2) and then simplify that for ILED.
I would like to fit the the result of the previous expression to equation (3) that is composed x, y, z, sin(wt) .
I should express x, y, z in (3) using a, b, c, P0.
How do I solve this Bold problem?
Any help will be greatly appreciated. Thanks in advance.
0 Comments
Accepted Answer
John D'Errico
on 14 Oct 2020
Edited: John D'Errico
on 14 Oct 2020
You can want to do anything you want. But unless you have a magic wand, that often fails.
Here, you have ONE equation (3) that relates x, y, and z. ONLY one.
Yes, you have some other equations, relating other variables. Those other equations are irrelevant in this case.
You can find z in terms of x and y. That is trivially easy. (Or x in terms of y and z, etc.) Pencil and paper will suffice. But nothing you will do will allow you to extract z only as a function of the other parameters, in a form that does not include x and y. They are inextricably linked, because only one equation relates x, y, and z.
Would you like a simple example to show this does indeed fail? The following system of 2 LINEAR equations in the 2 unknowns x and y, is comparable to what you wnt to do. See what happens when I pose that to solve.
syms x y a b
[xsol,ysol] = solve(a + b == 1,a-b+x+y == 2,x,y)
xsol =
Empty sym: 0-by-1
ysol =
Empty sym: 0-by-1
As you can see, it cannot extract x and y.
Now, suppose I change the question? Can I solve for a and b, separately? Here, as functions of x and y?
syms a b x y
[asol,bsol] = solve(a + b == 1,a-b+x+y == 2,a,b)
asol =
3/2 - y/2 - x/2
bsol =
x/2 + y/2 - 1/2
Do you see why the latter case is different? I now have two equations relating two unknowns. Both equations provide information about the variables in question. Now I can extract a and b separately, unlinking them.
In the first case, we had only the one equation, and there was no solution, no magic wand can exist there. Do you see that even though they are simple linear equations, no algebra you can do will extract x and y separately. Feel free to try. At best, we can solve for x as a function of y, or y as a function of x.
And that is exactly what you are asking to do. But you cannot.
0 Comments
More Answers (1)
KSSV
on 14 Oct 2020
syms VLED ILED P0 w t x y z a b c
VLED = a*log(ILED)+b*ILED+c ;
ILED = P0*sin(w*t)^2/VLED ;
ILED = sqrt(x*sin(w*t)^2+y)-z ;
VLED
ILED
See Also
Categories
Find more on Linear Algebra 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!