Question: IN MATLAB for 1) % This is a script file to solve quaradrqatic eqaution % Use input to ask user enter the coefficients a, b

 IN MATLAB for 1) % This is a script file to

IN MATLAB

for 1)

% This is a script file to solve quaradrqatic eqaution

% Use input to ask user enter the coefficients a, b and c

a = input('Enter the coefficient of a')

% Use the formula to sove x1 and x2

x1=0;

x2=0;

and Can you please solve question 2 as well

1). Create a script file to solve a quadratic equation. ax2+bx+c=0 The roots of the equation are: x=2abb24ac Name the file as qscript.m 2). Create a function to find the roots of a quadratic equation. The syntax of the function is [x1,x2]=qfunction(a,b,c) The name of the function should be quunction.m

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!