How do I redraw a picture given to me using its data points that I've found using the curve fitting app?

2 ビュー (過去 30 日間)
Hello, I am trying to redraw this picture given to me by my professor. He told me to analyze it by curve fitting. So I did 4 fits and I was only able to get 3 fits into figures (SEM_data_points_figure, fit_poly2_figure, fit_poly3_fig) The last fit when I tried to save it as a figure kept giving me the error 'Index exceeds array bounds'. However, I need to redraw the picture using the data from these 3 fits. I need help please on how I can write code to go about doing this. Because the professor says I need to write code to get the data.
Thank you for the help.
The code below is from the data points from fit 4 which basically has the same data points as the 3 other fits. The data points for all 4 fits are basically the exact same points.
hold on;
%This is to make the D matrix
D=zeros(300,3);
%These are the data points from my fit poly 4 that I made into matrix form
%However, these cannot go into a matrix.
%How do I display these points in a figure?
D(0,0,0)=1;
D(100,0,0)=1;
D(140,0,0)=1;
D(160,0,0)=1;
D(180,0,0)=1;
D(201,0,0)=1;
D(215,0,0)=1;
D(230,0,0)=1;
D(260,0,0)=1;
imshow(D) %I know this can't work because its for a matrix

回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by