Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the basic operations of matlab drawing

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you what is the basic operation of matlab drawing. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

I. graphic retention

Hold on: turn on graphics retention

Hold off: turn off drawing retention

Hold: switch between two modes

First, generate a planar grid matrix

(1) it is generated by matrix operation, such as:

(2) using mesggrid function to generate

[Xmeny] = meshgrid (xpeny)

Where parameters x and y are vectors and X and Y, which store grid point coordinates, are matrices.

2. Ones function

The function of ones is to produce an all-1 matrix, and ones (N) is to produce an all-1 matrix of NxN.

3. Mesh function

It is used to draw 3D grids in the format of mesh (x ~ y ~ ~ z ~ c)

Where x and y are the grid coordinate matrix, z is the height matrix on the grid point, and c is used to specify the surface color at different heights.

When c is omitted, the default is cymz, that is, the color is proportional to the height.

Other forms of call

Mesh (ZBJ c)

Surf (ZBJ c)

When xrem y is omitted, the second dimension subscript of the z matrix is regarded as the x axis coordinate, and the first dimension subscript of the z matrix is regarded as the y axis coordinate.

4. Surf function

Used to draw three-dimensional graphs

Surf (xpencil ypencil c)

Where x and y are the grid coordinate matrix, z is the height matrix on the grid point, and c is used to specify the surface color at different heights.

When c is omitted, the default is cymz, that is, the color is proportional to the height.

Thank you for reading! On "what are the basic operations of matlab drawing" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report