MATLAB: Function Code ( Matlab ) code writingMATLAB Hi, F=(log ( ax2+bx+c )- sin(ax2+bx+c))/ 4(pi number)*x2+cos(x-2)*(ax2+bx+c) x=9, a=1, b=3,c=5 I can't write the code. Can you help me? Best Answer x=9 ;a=1;b=3 ;c=5 ; F = (log(a*x^2+b*x+c)-sin(a*x^2+b*x+c))/(4*pi*x^2+cos(x-2)*(a*x^2+b*x+c))You must read about MATLAB basics. Related SolutionsMATLAB: How to add a less than constraint condition to solve the transcendental equation A=[1,-1,0,0; 0, 1,-1;0; 0, 0, 1,-1]; b=[0;0;0]; objFcn =@myFitnes; nvars = 4; LB = [0 0 0 0]; UB = [pi/2 pi/2 pi/2 pi/2]; [x, fval] = ga(objFcn,nvars,A,b,[],[],LB,UB); MATLAB: Write a matlab command to find th roots of: ax^2+bx+c=0 a=1;b=2;c=3;x1 = -b +(sqrt((b^2)-(4ac)/(2a))x;x2=-b-(sqrt((b^2)-(4ac)/(2a));disp(x1);disp(x2); Related QuestionHow to write equation in matlabHow Can I define a Polynomial of degree n with symbolic coefficientsHow to solve quadratic equation
Best Answer