In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to use hold on in matlab. I hope you will gain a lot after reading this article. Let's discuss it together.
How to use hold on in matlab?
In the first step, we need to know that hold on is mainly used to add new drawings to retain the current drawing. Enter the help hold command in the command line window, and you can see the introduction, as shown in the following figure:
In the second step, let's use hold on, create an m file, and type
"hold onx1=1:10;y1= hold onx1=1:10;y1= [1 2 3 4 5 5 6 7 9 15 18] plot (x 1 7 7 8 8 10 15 18)"
Code, as shown in the following figure:
The third step is to run the m file, and you can see that two lines are drawn on one image. Hold on is mainly used when drawing multiple lines, as shown in the following figure:
In the fourth step, we can also take a look at the image of drawing multiple lines without using hold on, as shown in the following figure:
After running the m file in step 5, you can see that only the latest line is drawn, as shown in the following figure:
After reading this article, I believe you have a certain understanding of the use of hold on in matlab, want to know more about it, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.