当前位置:网站首页>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 .
边栏推荐
- @Introduction and three usages of controlleradvice
- What are PV and UV? pv、uv
- 【数字IC验证快速入门】22、SystemVerilog项目实践之AHB-SRAMC(2)(AMBA总线介绍)
- Unity之ASE实现全屏风沙效果
- CTFshow,信息搜集:web3
- Why do we use UTF-8 encoding?
- [markdown grammar advanced] make your blog more exciting (IV: set font style and color comparison table)
- TypeScript 发布 4.8 beta 版本
- 避坑:Sql中 in 和not in中有null值的情况说明
- CTFshow,信息搜集:web6
猜你喜欢
写一篇万字长文《CAS自旋锁》送杰伦的新专辑登顶热榜
Niuke real problem programming - day18
[quick start of Digital IC Verification] 26. Ahb-sramc of SystemVerilog project practice (6) (basic points of APB protocol)
什麼是數據泄露
CTFshow,信息搜集:web9
Ctfshow, information collection: web7
CTFshow,信息搜集:web5
Bye, Dachang! I'm going to the factory today
CTFshow,信息搜集:web10
Briefly describe the working principle of kept
随机推荐
Nacos一致性协议 CP/AP/JRaft/Distro协议
Ctfshow, information collection: web13
Ctfshow, information collection: web12
[quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
CTFshow,信息搜集:web9
[quick start of Digital IC Verification] 18. Basic grammar of SystemVerilog learning 5 (concurrent threads... Including practical exercises)
2. 堆排序『较难理解的排序』
微信小程序 01
Niuke real problem programming - day18
Mathematical modeling -- what is mathematical modeling
使用Scrapy框架爬取网页并保存到Mysql的实现
[data mining] visual pattern mining: hog feature + cosine similarity /k-means clustering
MongoDB数据库基础知识整理
15. Using the text editing tool VIM
什么是pv和uv? pv、uv
[quick start of Digital IC Verification] 20. Basic grammar of SystemVerilog learning 7 (coverage driven... Including practical exercises)
Super signature principle (fully automated super signature) [Yun Xiaoduo]
摘抄的只言片语
众昂矿业:萤石继续引领新能源市场增长
CTFshow,信息搜集:web12