i want plot these three function but...

1 回表示 (過去 30 日間)
MA
MA 2014 年 6 月 29 日
コメント済み: Mischa Kim 2014 年 6 月 29 日
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')

採用された回答

Mischa Kim
Mischa Kim 2014 年 6 月 29 日
編集済み: Mischa Kim 2014 年 6 月 29 日
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 件のコメント
MA
MA 2014 年 6 月 29 日
it takes much time i need to do it quickly
Mischa Kim
Mischa Kim 2014 年 6 月 29 日
You mean adding dots? You could use the find and replace functionality in MATLAB: CTRL+F.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by