MATLAB揭秘---------第三章习题

编程入门 行业动态 更新时间:2024-10-20 05:20:19

MATLAB揭秘---------<a href=https://www.elefans.com/category/jswz/34/1672616.html style=第三章习题"/>

MATLAB揭秘---------第三章习题

第三章习题

>> x = [0:0.1:1];
>> y  = tan(x);
>> plot(x,y),xlabel('x'),ylabel('y')

>> x = [0:0.1:1];
>> y1 = tan(x);
>> y2  = sin(x);
>> plot(x,y1);
>> hold on
>> plot(x,y2);


3.

>> x = [-pi:0.2:pi];
>> x = linspace(-pi,pi);
>> x = linspace(-pi,pi,50);
>> [x,y] = meshgrid(-3:0.1:2,-5:0.1:5);
>> [x,y] = meshgrid(-5:0.2:5,-5:0.2:5);
>> t = [0:0.1:10*pi];
>> x = exp(-t).*cos(t);
>> y = exp(-t).*sin(t);
>> z =t;
>> plot3(x,y,z)
>> grid on

更多推荐

MATLAB揭秘---------第三章习题

本文发布于:2023-07-27 22:09:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1226507.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:第三章   习题   MATLAB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!