Hi to everyone:
i have four equations and four unknowns which is given below:
s*x+4y-3z+12m=1002x+3*s*y+4z+200m=2003x+y+z+4*s*m=15025x+20y+10*s*m=250
where x,y,m znd z is unknown and s is given in excel sheet .
i want to find above unknowns by using s data which is given in excel sheet and than plot(x,s):
i have written code in matlab but it gave me error:
clc;close all;clear all;syms x y m z myData = readtable('batorrrkhaan.xlsx','Sheet','Taxila-hour')s = myData.solar_radiationiThreshold = 200iKeep = s >= iThresholds = s(iKeep)eqn1=s.*x+4*y-3*z+12*m==100;eqn2=2*x+3*s.*y+4*z+200*m==200;eqn3=3*x+y+z+4*s.*m==150;eqn4=25*x+20*y+10*s.*m==250;[x,y,t,z]=vpasolve([eqn1, eqn2, eqn3,eqn4],[x,y,t,z]);xytz
error is :
z =
Empty sym: 0-by-1
x=
Empty sym: 0-by-1
m=
Empty sym: 0-by-1
y=
Empty sym: 0-by-1
Best Answer