Ahmed
Followers: 0 Following: 0
Feeds
提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
4 years 前 | 1 个回答 | 0
1
个回答提问
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
4 years 前 | 1 个回答 | 0
1
个回答提问
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-') ...
4 years 前 | 1 个回答 | 0
1
个回答提问
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;
4 years 前 | 0 个回答 | 0
0
个回答提问
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;
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 1 个回答 | 0