Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started