当前位置:网站首页>MATLAB绘图
MATLAB绘图
2022-07-26 04:11:00 【Selvaggia】
fplot
fplot(@(x) sin(x))
xt = @(t) cos(3*t);
yt = @(t) sin(2*t);
fplot(xt,yt)

fplot(@(x) exp(x),[-3 0],'b')
hold on
fplot(@(x) cos(x),[0 3],'b')
hold off
grid on
指定线条属性
fplot(@(x) sin(x+pi/5),'Linewidth',2);
hold on
fplot(@(x) sin(x-pi/5),'--or');
fplot(@(x) sin(x),'-.*c')
hold off
fplot(@sin,[-2*pi 2*pi])
grid on
title('sin(x) from -2\pi to 2\pi')
xlabel('x');
ylabel('y');
fplot输入必须为一个或多个包含单个变量的函数,是符号函数就行,不一定非得句柄函数
线条格式



边栏推荐
- 2.9.4 Ext JS的布尔对象类型处理及便捷方法
- (translation) the button position convention can strengthen the user's usage habits
- Wechat applet to realize music player (4) (use pubsubjs to realize inter page communication)
- [question 019: what is the understanding of spherecastcommand in unity?]
- The era of smart clothes has come. Zhinar invites you to discuss swords in Yangcheng. Guangya Exhibition is waiting for you on August 4
- Graph theory: topological sorting
- 在 Istio 服务网格内连接外部 MySQL 数据库
- HelloWorld case analysis
- Acwing_12. 背包问题求具体方案_dp
- PHP installation spool supports dtls protocol
猜你喜欢

firewall 命令简单操作

Basic line chart: the most intuitive presentation of data trends and changes

1311_硬件设计_ICT概念、应用以及优缺点学习小结

LeetCode:1184. 公交站间的距离————简单

按键消抖的Verilog实现

(翻译)按钮位置约定能强化用户使用习惯

Leetcode:1184. Distance between bus stops -- simple

Lua and go mixed call debugging records support cross platform (implemented through C and luajit)

(translation) the button position convention can strengthen the user's usage habits

redux
随机推荐
5 years, 1.4W times, NFT og's road to immortality Web3 column
I.MX6U-ALPHA开发板(GPIO中断实验)
荐书|《DBT技巧训练手册》:宝贝,你就是你活着的原因
PHP implements the algorithm of adding from 1 to 100
基于移位寄存器的同步FIFO
Write a paper for help, how to write the discussion part?
This article takes you to graph transformers
(翻译)按钮位置约定能强化用户使用习惯
How does redis implement persistence? Explain the AOF trigger mechanism and its advantages and disadvantages in detail, and take you to quickly master AOF
Linear basis property function code to achieve 3000 words detailed explanation, with examples
HelloWorld case analysis
Acwing_12. 背包问题求具体方案_dp
吴恩达机器学习课后习题——线性回归
dijango学习
Functions of anonymous functions
PHP object conversion array
Implementation of distributed lock
动态规划 爬楼梯
Matrix and Gauss elimination [matrix multiplication, Gauss elimination, solving linear equations, solving determinants] the most detailed in the whole network, with examples and sister chapters of 130
STM32 state machine programming example - full automatic washing machine (Part 2)