当前位置:网站首页>Matlab-绘制叠加阶梯图和线图
Matlab-绘制叠加阶梯图和线图
2022-07-27 09:56:00 【用户9925864】
在阶梯图上叠加线图。
定义要绘图的数据。
alpha = 0.01;
beta = 0.5;
t = 0:10;
f = exp(-alpha*t).*sin(beta*t);将 f 显示为阶梯图。使用 hold 函数保留阶梯图。使用带有星形标记的虚线添加 f 线图。
stairs(t,f)
hold on
plot(t,f,'--*')
hold off使用 axis 函数设置坐标轴范围。标记 x 轴并向图形添加一个标题。 axis([0,10,-1.2,1.2]) xlabel('t = 0:10') title('Stairstep plot of e^{-(\alpha*t)} sin\beta*t')
边栏推荐
- PCL的ICP配准示例
- Qt 学习(二) —— Qt Creator简单介绍
- Shell流程控制(重点)、if 判断、case 语句、let用法、for 循环中有for (( 初始值;循环控制条件;变量变化 ))和for 变量 in 值 1 值 2 值 3… 、while 循环
- 女粉想要找男朋友,竟是为了...
- Switch port mirroring Configuration Guide
- I grabbed a ticket and thought I found the system bug of 12306
- [scm] source code management - lock of perforce branch
- RobotFramework+Eclispe环境安装篇
- What age are you still using date
- LeetCode.565. 数组嵌套____暴力dfs->剪枝dfs->原地修改
猜你喜欢

open3d库的安装,conda常用指令,导入open3d时报这个错误Solving environment: failed with initial frozen solve. Retrying w

NFT system development - Tutorial

3D修复论文:Shape Inpainting using 3D Generative Adversarial Network and Recurrent Convolutional Networks

Leetcode.1260. 2D grid migration____ In situ violence / dimensionality reduction + direct positioning of circular array

超赞的卡尔曼滤波详解文章

Brush the title "sword finger offer" day03

Looking for a job for 4 months, interviewing 15 companies and getting 3 offers

面试必备:虾皮服务端15连问

Food safety | the kitchen board environment is very important. Do you know these use details?

Understand chisel language. 22. Chisel sequential circuit (II) -- detailed explanation of chisel counter: counter, timer and pulse width modulation
随机推荐
Shell function, system function, basename [string / pathname] [suffix] can be understood as taking the file name in the path, dirname file absolute path, and user-defined function
Engineering survey simulation volume a
Concurrent thread state transition
Shell read read console input, use of read
WGAN、WGAN-GP、BigGAN
Leetcode.814. binary tree pruning____ DFS
Talk about 10 scenarios of index failure. It's too stupid
面试必备:虾皮服务端15连问
安装CUDA失败的情况nsight visual studio edition失败
LeetCode.565. 数组嵌套____暴力dfs->剪枝dfs->原地修改
What age are you still using date
oracle rac 19c pdb实例当掉
System parameter constant table of system architecture:
Overview of PCL modules (1.6)
面试京东 T5,被按在地上摩擦,鬼知道我经历了什么?
How to create a.Net image with diagnostic tools
并发之park与unpark说明
There is no CUDA option in vs2019+cuda11.1 new project
hdu5289(Assignment)
数据分析如何解决商业问题?这里有份超详细攻略