In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.