MATLAB: I could not create graph using plot command, where is the fault plotplotting Cp0=-.41;M=0:.1:.9;Cpcr1=(Cp0/sqrt(1-(M^2)));plot(M,Cpcr1) Best Answer M is an array so you need to use ./ and .^ instead of / and ^.Cp0=-.41;M=0:.1:.9;Cpcr1=(Cp0./sqrt(1-(M.^2)));plot(M,Cpcr1, 'b*-', 'LineWidth', 2);grid on; Related SolutionsMATLAB: How to solve a system of trigonometric equations E1^2 + E2^2 + (E3-l1)^2 - l2^2 - l3^2 = 2*l2*l3*cos(theta3)Can you take it from here ? MATLAB: How to correct the fault normcdf is a function. Why are you calling the function with no arguments and multiplying the result by something?normcdf*(log(Vt/D)+(r+0.5*sigma^2)*(T-t)+(sigma*beta+0.5*beta^2)*(T-t))is the same asnormcdf()*(log(Vt/D)+(r+0.5*sigma^2)*(T-t)+(sigma*beta+0.5*beta^2)*(T-t)) Related QuestionIssues Plotting Equation for a Range of VariableCan someone please tell me where is the faultIs this code giving me an error
Best Answer