怎样用MATLAB 求极限和画散点图?

发布网友 发布时间:2022-04-22 07:30

我来回答

3个回答

热心网友 时间:2022-06-17 18:06

画散点图的命令:
>> x=-10:0.1:10;
>> y=1./3.^x;
>> plot(x,y,'.')
求极限的命令:
>> syms x;
>> f=1./3.^x;
>> limit(f,x,inf)

ans =

0

热心网友 时间:2022-06-17 18:06

求极限:用limit
>> syms x
>> f=1./3.^x;
>> limit(f,x,inf)

画散点图:用scatter(X,Y)
>> x=-5:0.1:5;
>> y=1./3.^x;
>> scatter(x,y,'.')

热心网友 时间:2022-06-17 18:07

极限:
>> syms x
>> limit((1/3)^x,x,inf)
ans =0
散点图:
>> x=0:1:10;
>> y=(1./3).^x;
>> plot(x,y,'.')

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com