当前位置:网站首页>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 .
边栏推荐
猜你喜欢
全日制研究生和非全日制研究生的区别!
【兰州大学】考研初试复试资料分享
CTFshow,信息搜集:web6
【数字IC验证快速入门】24、SystemVerilog项目实践之AHB-SRAMC(4)(AHB继续深入)
Introduction of mongod management database method
CTFshow,信息搜集:web9
#HPDC智能基座人才发展峰会随笔
Zhongang Mining: Fluorite continues to lead the growth of new energy market
What is data leakage
[make a boat diary] [shapr3d STL format to gcode]
随机推荐
居然从408改考自命题!211华北电力大学(北京)
2. Basic knowledge of golang
【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
[Data Mining] Visual Pattern Mining: Hog Feature + cosinus Similarity / K - means Clustering
[quick start of Digital IC Verification] 29. Ahb-sramc (9) (ahb-sramc svtb overview) of SystemVerilog project practice
Unity's ASE achieves full screen sand blowing effect
Why do we use UTF-8 encoding?
MySQL installation configuration 2021 in Windows Environment
CTFshow,信息搜集:web14
使用Scrapy框架爬取网页并保存到Mysql的实现
【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)
HW primary flow monitoring, what should we do
[quick start of Digital IC Verification] 19. Basic grammar of SystemVerilog learning 6 (thread internal communication... Including practical exercises)
2.Golang基础知识
Nacos一致性协议 CP/AP/JRaft/Distro协议
银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
leetcode 241. Different Ways to Add Parentheses 为运算表达式设计优先级(中等)
Stream learning notes
Bye, Dachang! I'm going to the factory today
[quick start of Digital IC Verification] 25. AHB sramc of SystemVerilog project practice (5) (AHB key review, key points refining)