close allclear allclc plc=load(\'data\');cp=plc(:,1);temp=plc(:,2);%curvefit cp1=polyfit(temp,cp,2);pred_cp=polyval(cp1, temp); %plotinng the original curve with fitted curve and comparing them plot(temp,cp,\'linewidth\',3)hold onplot(temp,pred_cp,\'linewidth\',3)ylabel(\'specific heat \')xlabel(\'temperature\')legend(\'curve…
Shikshit Nawani
updated on 08 Jun 2018
Project Details
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Read more Projects by Shikshit Nawani (8)
Curvefitting
close allclear allclc plc=load(\'data\');cp=plc(:,1);temp=plc(:,2);%curvefit cp1=polyfit(temp,cp,2);pred_cp=polyval(cp1, temp); %plotinng the original curve with fitted curve and comparing them plot(temp,cp,\'linewidth\',3)hold onplot(temp,pred_cp,\'linewidth\',3)ylabel(\'specific heat \')xlabel(\'temperature\')legend(\'curve…
17 Jun 2018 01:30 PM IST
curve fitting
close allclear allclc plc=load(\'data\');cp=plc(:,1);temp=plc(:,2);%curvefit cp1=polyfit(temp,cp,2);pred_cp=polyval(cp1, temp); %plotinng the original curve with fitted curve and comparing them plot(temp,cp,\'linewidth\',3)hold onplot(temp,pred_cp,\'linewidth\',3)ylabel(\'specific heat \')xlabel(\'temperature\')legend(\'curve…
08 Jun 2018 03:40 AM IST
drag force
%calculation of drag force on a bicycle clear allclose allclc %input variablesc_d=0.75;area=0.5;density= 1.35;v=[1:5]; %drag force calculation drag_force= density*area*v.^2*c_d*0.5;figure(1) plot(v,drag_force)xlabel(\'velocity\')ylabel(\'dragforce\') %documenting drag coefficientprism= 1.14;bullet=0.295;airfoil= 0.045;flatplate=…
02 Jun 2018 01:49 AM IST
column and row vector
%vc be column vector %vr be row vector vc=[1; 2; 3; 4; 5] vr=[1 2 3 4 5]
02 Jun 2018 12:18 AM IST
column and row vector
%vc be column vector %vr be row vector vc=[1; 2; 3; 4; 5] vr=[1 2 3 4 5]
02 Jun 2018 12:07 AM IST
column and row vector
%vc be column vector %vr be row vector vc=[1; 2; 3; 4; 5] vr=[1 2 3 4 5]
02 Jun 2018 12:07 AM IST
column and row vector
%vc be column vector %vr be row vector vc=[1; 2; 3; 4; 5] vr=[1 2 3 4 5]
02 Jun 2018 12:06 AM IST
column and row vector
%vc be column vector %vr be row vector vc=[1; 2; 3; 4; 5] vr=[1 2 3 4 5]
02 Jun 2018 12:06 AM IST