Question: MATLAB Please! I have been working on this program but cant figure out why Im getting this error Error using fprintf Function is not defined
MATLAB Please!
I have been working on this program but cant figure out why Im getting this error
Error using fprintf
Function is not defined for 'sym' inputs.
syms x y z
eq1=2*x+y+z==2
eq2=-x+y-z==3
eq3=x+2*y+3*z==-10
test1=solve(eq1,eq2,eq3)
test1.x % notice results are in structure
test1.y
test1.z
fileID = fopen('test2.txt','w');
fprintf(fileID,' x = %9.2f y = %9.2f z = %9.2f',x,y,z);
fclose(fileID);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
