求直线和曲线交点,离散或连续曲线。
Afficher commentaires plus anciens
请问求直线y=x和一条曲线y=(-1.477e-5)x^3+0.05013x^2-0.001057*x-4.987在x大于10以后的交点怎么求呢,谢谢?
我写了一下程序,但是报错,有没有什么更好的程序,可以使x的范围连续
clear;
clc;
syms x y
x=10:0.1:60
f1=x-y;
f2=(-1.477e-5)*x^3+0.05013*x^2-0.001057*x-4.987-y;
[x,y]=solve(f1,f2);
x=double(x)
y=double(y)
plot(x,y)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!