当前位置:网站首页>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 .
边栏推荐
- 什麼是數據泄露
- 数学建模——什么是数学建模
- 【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类
- Nacos conformance protocol cp/ap/jraft/distro protocol
- [Data Mining] Visual Pattern Mining: Hog Feature + cosinus Similarity / K - means Clustering
- 15. Using the text editing tool VIM
- Use cpolar to build a business website (2)
- MySQL installation configuration 2021 in Windows Environment
- [quick start of Digital IC Verification] 25. AHB sramc of SystemVerilog project practice (5) (AHB key review, key points refining)
- 2. 堆排序『较难理解的排序』
猜你喜欢
CTFshow,信息搜集:web5
【数字IC验证快速入门】22、SystemVerilog项目实践之AHB-SRAMC(2)(AMBA总线介绍)
Implementation of crawling web pages and saving them to MySQL using the scrapy framework
CTFshow,信息搜集:web6
[quick start of Digital IC Verification] 18. Basic grammar of SystemVerilog learning 5 (concurrent threads... Including practical exercises)
Ctfshow, information collection: web5
知否|两大风控最重要指标与客群好坏的关系分析
Summer safety is very important! Emergency safety education enters kindergarten
Ctfshow, information collection: Web3
[quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
随机推荐
【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例
CTFshow,信息搜集:web7
【原创】一切不谈考核的管理都是扯淡!
Super signature principle (fully automated super signature) [Yun Xiaoduo]
【服务器数据恢复】戴尔某型号服务器raid故障的数据恢复案例
CTFshow,信息搜集:web5
CTFshow,信息搜集:web2
Zhongang Mining: Fluorite continues to lead the growth of new energy market
Ctfshow, information collection: web9
Introduction of mongod management database method
Actually changed from 408 to self proposition! 211 North China Electric Power University (Beijing)
Pat grade a 1103 integer factorizatio
@ComponentScan
【数字IC验证快速入门】24、SystemVerilog项目实践之AHB-SRAMC(4)(AHB继续深入)
Summer safety is very important! Emergency safety education enters kindergarten
[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset
MongoDB数据库基础知识整理
CTFshow,信息搜集:web13
知否|两大风控最重要指标与客群好坏的关系分析
全日制研究生和非全日制研究生的区别!