smoothen curve plotted using discrete points
Afficher commentaires plus anciens
flowrate = [ 0 93 100 120 140 160 172 180 200 220 232 ] ;
head = [ 9.51 8.76 8.68 8.41 8.01 7.45 7.03 6.70 5.73 4.49 3.61 ] ;
cv20 = [ 0.8 1.1 2.2 4.1 6.6 9.9 13.9 18.6 24.1 30.3 37.2] ;
cv20new = smooth(cv20);
cv30 = [ 0.8 1 1.5 2.4 3.7 5.3 7.3 9.6 12.3 15.3 18.7 ] ;
cv30new = smooth(cv30);
cv40 = [ 0.8 0.9 1.3 1.8 2.7 3.7 5 6.4 8.2 10.1 12.3 ] ;
cv40new = smooth(cv40);
cv50 = [ 0.8 0.9 1.1 1.6 2.2 2.9 3.9 5 6.3 7.7 9.3 ] ;
cv50new = smooth(cv50);
cv60 = [ 0.8 0.8 1.1 1.4 1.9 2.5 3.3 4.2 5.2 6.4 7.7 ] ;
cv60new = smooth(cv60);
cv70 = [ 0.8 0.8 1 1.3 1.8 2.3 2.9 3.7 4.6 5.6 6.7] ;
cv70new = smooth(cv70);
cv80 = [ 0.8 0.8 1 1.3 1.7 2.1 2.7 3.4 4.2 5.1 6.1 ] ;
cv80new = smooth(cv80);
plot(flowrate,head)
title('Pump Performance Curves Estimates')
hold on
plot(flowrate,cv20new)
hold on
plot(flowrate,cv30new)
hold on
plot(flowrate,cv40new)
hold on
plot(flowrate,cv50new)
hold on
plot(flowrate,cv60new)
hold on
plot(flowrate,cv70new)
hold on
plot(flowrate,cv80new)
hold off
ylim([0.0 10.0])

i want my curve to be smoothened into a parabola like the below graph:

The curves for cv20,cv30 .. are not smoothening even after i used the smooth curve command.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
