![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matlab
爱生活,爱python
这个作者很懒,什么都没留下…
展开
-
cellplot(AC,‘legend‘)画元胞的图
%利用cell指令创建胞元数组C=cell(2)C(:,1)={char('Another','text string');10:-1:1}%胞元数组的“列”扩充和“行”扩充AC=[A C]cellplot(AC,'legend')原创 2020-11-28 13:50:51 · 442 阅读 · 0 评论 -
2020-11-28画图上的最大值点,和零基准线
clc;clear all; close all;clear; %清楚内存中的所有变量a=2; %设置衰减系数w=3; %设置震荡频率t=0:0.01:10 %取自变量采样数组y=exp(-a*t).*sin(w*t); %计算函数值,产生函数数组[m,n]=max(y); ...原创 2020-11-28 13:21:04 · 452 阅读 · 0 评论