当前位置:网站首页>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 .
边栏推荐
- MySQL bit type resolution
- 【数字IC验证快速入门】22、SystemVerilog项目实践之AHB-SRAMC(2)(AMBA总线介绍)
- Ctfshow, information collection: web14
- 【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
- 数学建模——什么是数学建模
- Super signature principle (fully automated super signature) [Yun Xiaoduo]
- 【服务器数据恢复】戴尔某型号服务器raid故障的数据恢复案例
- Bye, Dachang! I'm going to the factory today
- Do you know the relationship between the most important indicators of two strong wind control and the quality of the customer base
- STM32F103C8T6 PWM驱动舵机(SG90)
猜你喜欢
Configure mongodb database in window environment
![[quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)](/img/cf/45775b712f60869186a25d3657ee1b.png)
[quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)

Write a ten thousand word long article "CAS spin lock" to send Jay's new album to the top of the hot list

Ctfshow, information collection: web9

【兰州大学】考研初试复试资料分享

Briefly describe the working principle of kept

【跟着江科大学Stm32】STM32F103C8T6_PWM控制直流电机_代码

【OBS】RTMPSockBuf_Fill, remote host closed connection.

【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)

CTFshow,信息搜集:web3
随机推荐
[quick start for Digital IC Validation] 26. Ahb - sramc (6) for system verilog project practice (Basic Points of APB Protocol)
什麼是數據泄露
Qu'est - ce qu'une violation de données
Nacos conformance protocol cp/ap/jraft/distro protocol
[机缘参悟-40]:方向、规则、选择、努力、公平、认知、能力、行动,读3GPP 6G白皮书的五层感悟
Oracle control file loss recovery archive mode method
[quick start of Digital IC Verification] 25. AHB sramc of SystemVerilog project practice (5) (AHB key review, key points refining)
[original] all management without assessment is nonsense!
Niuke real problem programming - day18
Integer learning
CTFshow,信息搜集:web10
CTFshow,信息搜集:web13
写一篇万字长文《CAS自旋锁》送杰伦的新专辑登顶热榜
大表delete删数据导致数据库异常解决
Ctfshow, information collection: web4
【數據挖掘】視覺模式挖掘:Hog特征+餘弦相似度/k-means聚類
Oracle控制文件丢失恢复归档模式方法
Configure mongodb database in window environment
【跟着江科大学Stm32】STM32F103C8T6_PWM控制直流电机_代码
[quickstart to Digital IC Validation] 20. Basic syntax for system verilog Learning 7 (Coverage Driven... Including practical exercises)