matlab 笔记-02

MATLAB中使用LaTex字符

clear 
close all
clc
figure('Color',[1 1 1]);
x = 0:pi/1000:2*pi; 
y = (sin(x)).^2;
z = cos(x)./2;
plot(x,y);
hold on;
plot(x,z);
text('Interpreter','latex','String',' $ x^{2}+y^{2}=z^{2} $', 'Position',[0.5 0.6],'FontSize',10);
xlabel('$$f(x) = \sum_{n=0}^{10} \frac{x}{n!}$$','Interpreter','LaTex');
ylabel('\(f(x)\)','Interpreter','LaTex');
h=legend(['test',sprintf('\n'),'$sin^{2}(x)$'],['test2', sprintf(' \n'),' $\frac{cos(x)}{2}$'],' location',' best'); 
grid on ;
set(h,'Box','on');  %off
set(h,'Fontsize' ,9);
set(h,'Interpreter','latex')

交互式的局部放大图

1.直接使用github上的工具
https://github.com/iqiukp/ZoomPlot-MATLAB
在这里插入图片描述
2.在原图上进行编辑
在原图上拷贝一个图出来,然后修改放大坐标区间。
在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值