当前位置:网站首页>Matlab experience summary
Matlab experience summary
2022-07-07 15:38:00 【sgmcy】
1、 Create a new one under a directory plot.m file
Then the working directory of my command line terminal coincides with this plot.m The directory is under the same directory
Then I'm at the command line terminal knock plot() Command drawing , The following error occurred :
matlab Report errors : Try to SCRIPT plot Execute as a function
Later on plot.m Modified into my_plot.m Solved the problem
2、 Due to the previous installation MATLAB When , do not know why , Installed in Chinese
As a result, I'm using it notepad++ To write .m When you file , There are a lot of garbled codes
The fact proved that ,MATLAB The support for Chinese is not very friendly , therefore , It is better to annotate in English
3、plot When drawing , Use xlabel ,ylabel as well as title Set the annotation
At that time, Chinese was used , The picture that was drawn , Not shown in the figure xlabel ,ylabel as well as title
Due to the second point, the comments are garbled
Switch to English
But I found that there was still no xlabel ,ylabel as well as title
Finally found , my xlabel ,ylabel as well as title Double quotation marks are used inside , After switching to single quotation marks , The problem is solved
4、 When it comes to testing , Find out xlabel ,ylabel as well as title It doesn't print out every time , Sometimes it can be printed , Sometimes it doesn't print out , Most of the time, it can't be printed . It turned out ,xlabel ,ylabel as well as title It must be placed in plot Behind
figure(5);
xlabel('time ');
ylabel('Power ');
title('yuanyu : ');
plot(yy_closeyes1_delta);
hold on;
plot(yy_closeyes1_delta);
stay plot Before , In this way, the title cannot be drawn
figure(5);
plot(yy_closeyes1_delta);
hold on;
plot(yy_closeyes1_delta);
xlabel('time ');
ylabel('Power ');
title('yuanyu : ');
Change to in plot after , You can draw .
边栏推荐
- Unity's ASE achieves full screen sand blowing effect
- Window环境下配置Mongodb数据库
- Android -- jetpack: the difference between livedata setValue and postvalue
- MongoD管理数据库的方法介绍
- Oracle控制文件丢失恢复归档模式方法
- Pit avoidance: description of null values in in and not in SQL
- Ctfshow, information collection: web8
- “百度杯”CTF比赛 2017 二月场,Web:include
- [quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
- 简述keepalived工作原理
猜你喜欢

有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?

MySQL installation configuration 2021 in Windows Environment

【目标检测】YOLOv5跑通VOC2007数据集

Ctfshow, information collection: web7

There is a cow, which gives birth to a heifer at the beginning of each year. Each heifer has a heifer at the beginning of each year since the fourth year. Please program how many cows are there in the

Typescript release 4.8 beta

Actually changed from 408 to self proposition! 211 North China Electric Power University (Beijing)

Qu'est - ce qu'une violation de données
Configure mongodb database in window environment

Niuke real problem programming - day15
随机推荐
HW primary flow monitoring, what should we do
Ctfshow, information collection: web4
A need to review all the knowledge, H5 form is blocked by the keyboard, event agent, event delegation
Connecting FTP server tutorial
jacoco代码覆盖率
微信小程序 01
【数字IC验证快速入门】18、SystemVerilog学习之基本语法5(并发线程...内含实践练习)
【OBS】RTMPSockBuf_ Fill, remote host closed connection.
[deep learning] image hyperspectral experiment: srcnn/fsrcnn
【数字IC验证快速入门】24、SystemVerilog项目实践之AHB-SRAMC(4)(AHB继续深入)
Ctfshow, information collection: web7
银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
With 8 modules and 40 thinking models, you can break the shackles of thinking and meet the thinking needs of different stages and scenes of your work. Collect it quickly and learn it slowly
CTFshow,信息搜集:web8
Implementation of crawling web pages and saving them to MySQL using the scrapy framework
【数字IC验证快速入门】26、SystemVerilog项目实践之AHB-SRAMC(6)(APB协议基本要点)
“百度杯”CTF比赛 2017 二月场,Web:include
The difference between full-time graduate students and part-time graduate students!
MongoD管理数据库的方法介绍
Niuke real problem programming - day18