Question

I need to write a matlab code that solve this system of equations: x = 0.768(110-z)...

I need to write a matlab code that solve this system of equations:

x = 0.768(110-z)

x = 1.344(y-40)

x = (75*(1-0.004*t))*0.008522185*(((110-y)-(z-40))/ln((110-y)/(z-40)))

for t from 100 to 250 with 1000 increment!

Note that ln is natural log, I don't know what it should be in matlab!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

HI,

t SHOULD BE SINGLE VALUE.THIS SHOULD NOT BE ARRAY. FOR THREE UNKNOWNS THREE EQUATIONS ARE SUFFICIENT.

close all
clear all
clc

syms x y z

t = linspace(100,250,1000);
eqn1 = x == 0.768 * (110-z);
eqn2 = x == 1.344 * (y-40);
eqn3 = x == (75*(1-0.004*t)) * 0.008522185 * (((110-y)-(z-40))/log((110-y)/(z-40)));

[A,B] = equationsToMatrix([eqn1, eqn2, eqn3], [x, y, z]);

X = linsolve(A,B)

x = X(1,1)
y = X(2,1)
z = X(3,1)

I HAVE WRITTEN CODE AND TOOK t ARRAY AND IT'S NOT SOLVABLE.

PLEASE UPDATE THE QUESTION AND LET ME KNOW FOR ANY PROBLEM IN COMMENT SECTION

Add a comment
Know the answer?
Add Answer to:
I need to write a matlab code that solve this system of equations: x = 0.768(110-z)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT