Community Profile

photo

Ahmed


Last seen: environ un an ago Active since 2020

Statistics

  • First Answer

View badges

Content Feed

View by

Question


How can I modify this code so it gives the value 0 for c. It should only provide ax^2+bx
function [coefficients, MSE] = pnnnfit(x, y, order) coefficients = polyfit(x, y, order) y_fitted = polyval(coefficients, x) s...

environ un an ago | 1 answer | 0

1

answer

Question


need help to plot x,y data points with 'o' without line and y_hat smooth graph
function [m,n] = exp_n(x,y) X=x;Y=log(y); Pn=polyfit(X,Y,1); n=Pnfit_sq(1,1) m=exp(Pnfit_sq(2)) tau = 1/a*-1 y_hat=c...

environ un an ago | 1 answer | 0

1

answer

Question


need help to plot smooth of 𝑦̂ the least-squares fit to the data, over the range of x-values
function [coefficients, MSE] = pnnnfit(x, y, order) coefficients = polyfit(x, y, order) y_fitted = polyval(coefficients, x) s...

environ un an ago | 1 answer | 0

1

answer

Question


need help to fix the error! least square curve d = E *t^2 + D* t
function [ m, Y ] = pnnnfit( x, y, n ) m=polyfit(x,y,n) y_new=polyval(m,x) er_sq=(y-y_new).^2 Y=sum(er_sq) end x=[0 0 ...

environ un an ago | 1 answer | 0

1

answer

Question


how to ➢get zeros beneath the pivot in each column.
function [x] = g_elimination( A,b ) [M,N] = size(A); if M ~= N error('Matrix A is not a square') ; end

environ un an ago | 1 answer | 0

1

answer

Question


I want my graph to show only red line. I'm not sure why it's showing orange line as well
stem(x,y) hold on plot(x, 2.0477*exp(.4927*x)) x_dense= 0: .1: 5; plot(x_dense, 2.0477 *... exp(.4927*x_dense), 'r-') ...

environ un an ago | 2 answers | 0

2

answers

Question


how to include a vertical dotted line to show the cutoff for outliers
subplot(2,1,1) histogram(LH); grid on; title("Graph of (LH)"); xlabel("LH"); ylabel("Scores"); hold on;

environ un an ago | 0 answers | 0

0

answers

Question


how to locate bin center at appropriate integer value?
subplot(2,1,1) histogram(LH); grid on; title("Graph of (LH)"); xlabel("LH"); ylabel("Scores"); hold on;

environ un an ago | 1 answer | 0

1

answer

Question


I want to include a vertical line on the histogram, so it shows the location of the mean. The mean value is 5.12, how can I modify this code?
subplot(2,1,1) histogram(LotH); grid on; title("Graph of (LotH)"); xlabel("LotH"); ylabel("Scores"); hold on; li...

environ un an ago | 1 answer | 0

1

answer