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

How to draw dynamic confession Diagram with Matlab

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces Matlab how to achieve dynamic confession map drawing related knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that everyone after reading this Matlab how to achieve dynamic confession map drawing article will have a harvest, let's take a look.

Wish your girlfriend a happy holiday in advance.

1 show

There is no video image uploaded here, put the last finished product:

2 code

You can choose a beautiful color:

Set (hFigure, 'Position', [sz (1)-0.15*sz (3) sz (2) 1.3*sz (3) sz (4)]) % make it 0 transparent in order to display the text text (45, 50, 60), make it 0 transparent so as to display the text text (45, 50, 60), make it transparent, display the text pause (2) hold on, and draw the heart-shaped outline of the Ymurz plane for iX = 35:1:67plane = reshape (F (:, iX,:), 101101); cData = contourc (plane, [00]). XData = iX.*ones; hAxes,xData,cData, cData; pause, drawnowend%%; for iY = 41:2:61 plane = reshape (F (iY,:,:), 101101); cData = contourc (plane, [0 0]); yData = iY.*ones Plot3 (hAxes,cData), yData,cData (1Personality 2),'r'); pause (.5), drawnow end%% depicts the heart-shaped outline of the Xmuri Y plane for iZ = 36:1:71 plane = F (:,:, iZ); cData = contourc (plane, [0 0]); startIndex = 1; if size (cData,2) > (cData (2jue 1) + 1) startIndex = cData (2jue 1) + 2tzData = iZ.*ones (1Quanc cData (2jue 1)) Plot3 (hAxes,cData (1BI 2: (startIndex-1)),...? CData (2 startIndex+1 2: (startIndex-1)), zData,'r'); end zData = iZ.*ones (1 minute cData (2 talent startIndex)); plot3 (hAxes,cData (1, (startIndex+1): end),...? CData (2, (startIndex+1): end), zData,'r'); pause (.1), drawnowend% replenish light to 3D center shading alpha (1)% restore transparency set. Camlight% make up light lighting gouraudpause (.2)% make thread line ([2080], [5050], [52.5], 'color','r') line ([5050], [2080], [52.552.5],' color','r') line ([50], [5050], [3080], 'color','r') pause (0.5)% text Text (0text 50 heartsuit' 107 'love you and grow up with you\ heartsuit','fontweight','bold','fontsize',25,'color','r'); pause (2) text [' WLZ\ heartsuit'], 'fontWeight','bold','FontAngle','italic','FontName','Trebuchet?MS','fontsize',45,'Color','c') Pause (.5) text (80 heartsuit', 50) text 43 heartsuit', heartsuit', 'heartsuit',' fontWeight','bold','FontAngle','italic','FontName','Trebuchet?MS','fontsize',20,'Color','g'); pause (.2) text (75 meme 5 Magi 40 'Super Love') Pause (.2) text, pause (.2) uicontrol, (hFigure,'Style','Edit','Units','normalized','Position', 0.8, 0.12, etc.) 'Backgroundcolor','', 'String','520 Happy', 'Fontsize',40,'Foregroundcolor','', 'pause (.5) uicontrol (hFigure,'Style','Edit','Units','normalized','Position',) 'Backgroundcolor','', 'String','520 Happy', 'Fontsize',40,'Foregroundcolor','', 'pause (.5) uicontrol (hFigure,'Style','Edit','Units','normalized','Position',), 'Backgroundcolor','', 'String','520 Happy', 'Fontsize',40,'Foregroundcolor','', 'pause (.5) uicontrol 'Backgroundcolor','', 'String','520 Happy', 'Fontsize',40,'Foregroundcolor','', 'pause (.5) uicontrol (hFigure,'Style','Edit','Units','normalized','Position',), 'Happy String','520', 'Backgroundcolor','', 'String','520 Happy', and 'Fontsize',40,'Foregroundcolor',''. This is the end of toc's article on "how to draw dynamic confession diagrams in Matlab". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to draw a dynamic confession map in Matlab". If you want to learn more knowledge, you are welcome to follow the industry information channel.

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

Development

Wechat

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

12
Report