当前位置:网站首页>[matlab] matlab lesson 2 - preliminary drawing
[matlab] matlab lesson 2 - preliminary drawing
2022-07-16 06:29:00 【GalaxyerKw】
One . Basic knowledge of drawing
1. Image introduction :
2. Summary of knowledge points :

【 Add : It can be used get( ) Quickly obtain the specified identification code handle】
picture (a):
picture (b):
attach : Line style sheet 
!!! Knowledge points note file access point here !!!
Two . The operation sample
【 Example 1 】plot(x,y) Draw a scatter line chart 
The image displayed :
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
【 Example 2 】plot(y) Description function 
The image displayed :
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
【 Example 3 】 Use title(),legend(),lable() Draw a beautiful chart
* The wrong sample : Misuse plot.
This reminds us plot The correct use of :
① How to (x,y) At the same time, it is placed in one plot Inside .
At this time x and y Parameters can be shared t, It can also be a functional relationship with each other .
②y1,y2,y3,…,yn All are x Function of , If only incoming y, Once only in plot Write a .
Write it correctly :
The effect is as follows :
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
【 Example 4 】 Application set Instruction to modify axis Parameters
Display trigonometric function image , We certainly hope that the abscissa is π Multiple , The ordinate is [-1,1] The range of .
Use set This can be achieved , Let's optimize “ Example 3 ” Image in :
The effect is this :
< Problem finding >:
① We see that the abscissa division does become π 了 , But it's in decimal form , Can't show π Symbol .
② and , The image above is obviously inaccurate , There is a numerical deviation .
therefore , Let's make improvements :
The effect achieved the expectation :
meanwhile , We have also learned a lesson :
When depicting images related to trigonometric functions , The step size of the independent variable is π Multiple .
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
【 Example 5 】 Use set modify “ Tracing point ” style , Make the chart more like a line chart
Problem procedure :
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
【 Example 6 】 Use subplot Generate multiple images 

Of course, we can also do this 

边栏推荐
猜你喜欢
随机推荐
Dense contrast learning for self supervised visual pre training 2021
How to export wechat chat records
Aidl for Hal
FreeRTOS 学习(一)
虚拟内存位置结构(保留区、代码区、栈区、堆区、字面值常量区)与变量修饰符(const、auto、static、register、volatile、extern)
【CVPR2022】MPViT : Multi-Path Vision Transformer for Dense Prediction
【Multisim】关于Multisim仿真“过零比较器”出现的问题以及解决方法
[paper notes] - alexnet - 2012-acm
第二章 SYN6288语音合成模块的使用
Max3232ese problem record and solution
##DHCP-MASTER自动化部署
简单线程实例-跑马灯-栈空间分配技巧
codeblocks的官网下载与安装
Macro definition leads to incorrect result of ternary operation
[notes de thèse] - réseau vgg - 2014 - ICLR
POJ 1330 Nearest Common Ancestors (lca)
【MATLAB】matlab第二课——绘图初步
第四章 STM32+LD3320+SYN6288+DHT11实现语音获取温湿度数值(下)
POJ 3417 Network (lca+树上差分)
u-boot 2021.01 版本编译









