Question: The language is Matlab, and the file that I try to import is here title=fr3 crest variables=udata ydata ucalc ycalc zone i=69, f=point 7.9662256e+000 4.9710092e-001

The language is Matlab, and the file that I try to import is here

title="fr3 crest" variables="udata" "ydata" "ucalc" "ycalc" zone i=69, f=point 7.9662256e+000 4.9710092e-001 9.2960570e+000 4.9710092e-001 9.5777874e+000 5.9432107e-001 1.1098037e+001 6.6419406e-001 1.1041187e+001 6.9154125e-001 1.3183614e+001 8.3128720e-001 1.2415045e+001 7.8876144e-001 1.5561468e+001 9.9838034e-001 1.3921242e+001 8.8598162e-001 1.8220196e+001 1.1654735e+000 1.5493704e+001 9.8320180e-001 2.1137010e+001 1.3325666e+000 1.7035444e+001 1.0804220e+000 2.4281547e+001 1.4996598e+000 1.8485168e+001 1.1776422e+000 2.7617940e+001 1.6667529e+000 2.0376871e+001 1.2748624e+000 3.1106180e+001 1.8338461e+000

this is the modeling equation

The language is Matlab, and the file that I try to import

How could I fit my data?

% importing data I need.

Data=importdata('my_data.dat');

vv=Data.data(:,1) cc=Data.data(:,2)

k=0.4; B=5; w=1.004e-2

% the annonymous funtion cole = @(C,cc) C(1).*((1/k)*log(cc.*C(1)/w)+B+(2*C(2)/k).*(3*(cc./C(3)).^2-2*(cc./C(3)).^3))

[beta,R,J,CovB,MSE] = nlinfit(vv,cc,cole,[1 1 1]);

figure(1) plot(vv,cc,'*') hold on plot(cole_law(beta,vv),vv,'r') legend('data','fit')

2II 2II

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!