i want plot these three function but...
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
xb = linspace(0,1);
ub =- 1.654e-9*xb^24 - 3.277e-9*xb^23 - 8.551e-9*xb^22 - 1.629e-8*xb^21 - 4.667e-8*xb^20 - 8.351e-8*xb^19 - 2.739e-7*xb^18 - 4.503e-7*xb^17 - 1.774e-6*xb^16 - 2.997e-6*xb^15 - 1.047e-5*xb^14 - 3.428e-5*xb^13 + 0.0005502*xb^12 + 0.006917*xb^11 - 0.02256*xb^10 - 0.1796*xb^9 + 0.1328*xb^8 + 1.242*xb^7 - 0.2103*xb^6 - 3.288*xb^5 - 0.03086*xb^4 + 2.845*xb^3 + 0.1762*xb^2 + xb
h =1.084e-10*xb^24 + 2.913e-10*xb^23 + 5.82e-10*xb^22 + 1.702e-9*xb^21 + 3.313e-9*xb^20 + 1.067e-8*xb^19 + 2.383e-8*xb^18 + 6.368e-8*xb^17 + 4.368e-7*xb^16 - 4.523e-6*xb^15 - 4.935e-5*xb^14 + 3.007e-5*xb^13 + 0.00044*xb^12 + 0.001541*xb^11 + 0.007978*xb^10 - 0.01332*xb^9 - 0.1013*xb^8 + 0.03164*xb^7 + 0.3714*xb^6 - 0.01464*xb^5 - 0.3494*xb^4 + 0.06627*xb^3 - 0.4087*xb^2 + 0.4678*xb
p =- 2.291e-9*xb^24 - 4.735e-9*xb^23 - 1.5e-8*xb^22 - 2.869e-8*xb^21 - 1.056e-7*xb^20 - 1.678e-7*xb^19 - 7.968e-7*xb^18 - 5.587e-7*xb^17 - 6.405e-6*xb^16 + 1.66e-5*xb^15 - 8.231e-5*xb^14 + 0.001329*xb^13 - 0.01798*xb^12 - 0.1518*xb^11 + 0.1903*xb^10 + 1.909*xb^9 - 0.5747*xb^8 - 9.41*xb^7 + 0.2686*xb^6 + 22.1*xb^5 + 0.5245*xb^4 - 36.49*xb^3 + 0.5638*xb^2 + 47.27*xb
figure
plot(xb,ub,'-b',xb,h,'--r',xb, p,'-..k')
0 commentaires
Réponse acceptée
Mischa Kim
le 29 Juin 2014
Modifié(e) : Mischa Kim
le 29 Juin 2014
Ali, you need to use dot-operations...
ub = - 1.654e-9*xb.^24 - 3.277e-9*xb.^23
since xb is a vector (notice the dots in front of the ^ ) and so on and so forth.
2 commentaires
Mischa Kim
le 29 Juin 2014
You mean adding dots? You could use the find and replace functionality in MATLAB: CTRL+F.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!