![](https://img-blog.csdnimg.cn/95d481e450464c41944b0a76ffb237e8.jpeg)
![](https://img-blog.csdnimg.cn/dce6c9ba45384720a848f3693b692e57.jpeg)
![](https://img-blog.csdnimg.cn/d0633493e0534a21abe997e699776b32.jpeg)
![](https://img-blog.csdnimg.cn/677f8f3a22df4c58b05d326049ff4fde.jpeg)
![](https://img-blog.csdnimg.cn/3d9118bca6e44b70aa3b739dba87961b.jpeg)
hold on
plot(cos(0:pi/20:2*pi),'*-');
plot(sin(0:pi/20:2*pi),'+ g--');
hold off
![](https://img-blog.csdnimg.cn/83f3faae909248efb86d591963decf1a.jpeg)
![](https://img-blog.csdnimg.cn/1afd0028a5fd40949b5e7524a45ed3df.jpeg)
x = 0:0.5:4*pi;
y = sin(x);
h = cos(x);
w = 1./(1+exp(-x));
g = (1/(2*pi*2)^0.5).*exp((-1.*(x-2*pi).^2)./(2*2^2));
plot(x,y,'bd-',x,h,'gp-',x,w,'ro-',x,g,'c^-')
legend('sin(x)','cos(x)','sigmoid','gauss function');
![](https://img-blog.csdnimg.cn/ff65e72efc3d4988aa687bdcb2e6ffce.jpeg)
x = 0:0.1:2*pi;
y1 = sin(x);
y2 = exp(-x);
plot(x,y1,'--*',x,y2,':o');
xlabel('t = 0 to 2\pi');
ylabel('values of sin(t) and e^{-x}');
title('Fnction Plots of sin(t) and e^{-x}');
legend('sin(t)','e^{-x}');
![](https://img-blog.csdnimg.cn/23602722fe8b4866885a4d24ea9ce9a8.jpeg)
x = linspace(0,3);
y = x.^x.*sin(x);
plot(x,y);
line([2,2],[0,2^2*sin(2)]);
str = '$$ \int_{0}^{2}x^2\sin(x)dx $$';
text(0.25,2.5,str,'Interpreter','latex');
annotation('arrow','X',[0.32,0.5],'Y',[0.6,0.3]);
![](https://img-blog.csdnimg.cn/d2d2cfd8bfa644d7a22131770d59a9f7.jpeg)
t = 1:0.01:2;
f = t.^2;
g = sin(2.*pi.*t);
hold on
plot(t,f,'k -','LineWidth',7);
plot(t,g,'ro','MarkerFaceColor','m');
xlabel('Time(ms)');
ylabel('f(t)');
legend('t^2','sin(2\pi t','Location','northwest');
title('MIni Asssignment#1');
![](https://img-blog.csdnimg.cn/309698af02b24d06859170756781dbc4.jpeg)
![](https://img-blog.csdnimg.cn/7d331d3683ef4a838ae402256dfa83de.jpeg)
![](https://img-blog.csdnimg.cn/e8521569f5484f0db8bc07d38e68232f.jpeg)
x = linspace(0,2*pi,1000);
y = sin(x);
plot(x,y);
set(gcf,'Color',[1 1 1]);
![](https://img-blog.csdnimg.cn/30203cd7b3d24c008f4169637276a424.jpeg)
![](https://img-blog.csdnimg.cn/11707881ad3f407082cd8d8264161e4f.jpeg)
![](https://img-blog.csdnimg.cn/575406e4e7264677a75b9a03d87736af.jpeg)
![](https://img-blog.csdnimg.cn/8eadf637b9654fc591cf510094820c53.jpeg)
![](https://img-blog.csdnimg.cn/2376cca3199d49d3bcf4f25fec605f14.jpeg)
![](https://img-blog.csdnimg.cn/f26c65ef72424546bd8b4d9557dc14c2.jpeg)
![](https://img-blog.csdnimg.cn/e5ad44c5123546958db16349de897e9a.jpeg)
x = linspace(0,2*pi,1000);
y = sin(x);
plot(x,y);
h = plot(x,y);
get(h);
get(gca);
set(gca,'XLim',[0,2*pi]);
set(gca,'YLim',[-1.2,1.2]);
set(gca,'FontSize',25);
set(gca,'XTick',0:pi/2:2*pi);
set(gca,'XTickLabel',0:90:360);
set(gca,'XTickLabel',{'0','\pi/2','\pi','3\pi/2','2\pi'});
set(h,'LineStyle','-.','LineWidth',7.0,'Color','g');
![](https://img-blog.csdnimg.cn/280f4fd872dc48aebce77b61b828904b.jpeg)
![](https://img-blog.csdnimg.cn/2a74bd4e467740639eb3a4b2fe3ffafe.jpeg)
x = rand(20,1);
set(gca,'FontSize',18);
plot(x,'-md','LineWidth',2,'MarkerEdgeColor','k',...
'MarkerFaceColor','g','Markersize',10);
xlim([1,20]);
![](https://img-blog.csdnimg.cn/08e053c890df4f929e865b344d07fb10.jpeg)
![](https://img-blog.csdnimg.cn/139efec49e6c421db4d9e1147c7f744d.jpeg)
![](https://img-blog.csdnimg.cn/ca4e4a0a78de4215833e04ad3001457c.jpeg)
![](https://img-blog.csdnimg.cn/3e6f615e1bdf4180abc0e5f279af0dd6.jpeg)
![](https://img-blog.csdnimg.cn/8741191b60e5415a8a6df10cf8f8ef9a.jpeg)
t = 0:0.1:2*pi;
x = 3*cos(t);
y = sin(t);
subplot(2,2,1);
plot(x,y);axis normal
subplot(2,2,2);
plot(x,y);axis square
subplot(2,2,3);
plot(x,y);axis equal
subplot(2,2,4);
plot(x,y);axis equal tight
![](https://img-blog.csdnimg.cn/43b94e1f5ab04a73bd142f9d356f6537.jpeg)
![](https://img-blog.csdnimg.cn/866cd956ba254acda8c40bab35b7954d.jpeg)
![](https://img-blog.csdnimg.cn/a34eff48a5be42d1bfd99741298ce3d3.jpeg)