4 May 2017

draw rectangle, polygon and circle in Matlab

收藏到CSDN网摘
To draw these shapes in Matlab, different ways could be used to achieve this. Write your own function to use plot(), or use rectangle() or use patch().

Pros:
The rectangle() can be used to draw ellipse, circle, round-corner rectangle as well if you specify the 'Curvature' parameter.

The plot() and patch() uses the same input as (x,y) list, which means x, and y are vectors of corresponding coordinates. You can use these two function draw polygons with any number of points.

Cons:
rectangle() uses input as [x,y,w,h] rather than (x,y) list. rectangle() can only accept input as a 4 elements vector. It requires calling of daspect([1,1,1]) to make the equality along each axis. However, it is very handy if you are drawing proper rectangle and circle.

7 comments :

  1. Great and really helpful article! Adding to the conversation, providing more information, or expressing a new point of view...Nice information and updates. Really i like it and everyday am visiting your site..
    Office Interiors in Chennai
    Interior Decorators in Chennai

    ReplyDelete
  2. mcafee.com/activate Online Help – Call 1-844-584-0060 Tollfree. Step by Step guide for McAfee Activation, Download & complete installation online. www.mcafee.com/activate or Mcafee activate

    ReplyDelete
  3. norton.com/setup sells Retail Cards which is available in many retail stores. Norton Retail Cards allow you to download your security product from the internet rather than installing from a CD. Downloading security product from the internet ensures you, your setup is the most recent version.
    norton.com/setup

    ReplyDelete
  4. norton.com/setup sells Retail Cards which is available in many retail stores. Norton Retail Cards allow you to download your security product from the internet rather than installing from a CD. Downloading security product from the internet ensures you, your setup is the most recent version. Due to viruses and other malicious software it is very tough to install Norton product for normal computer users.
    norton.com/setup sells Retail Cards which is available in many retail stores. Norton Retail Cards allow you to download your security product from the internet rather than installing from a CD. Downloading security product from the internet ensures you, your setup is the most recent version. Due to viruses and other malicious software it is very tough to install Norton product for normal computer users.
    www.mcafee.com/activate have the complete set of features which can protect your digital online and offline life of the computing devices, and it not only help you to protect it but also it can maintain the stability of your computer.
    www.office.com/setup Help – Step-by-Step guide for Microsoft Office – Activate, Donwload & complete installation from www.office.com/setup online. We are providing independent support service if in case you face problem to activate or install Microsoft office product.
    norton.com/setup sells Retail Cards which is available in many retail stores. Norton Retail Cards allow you to download your security product from the internet rather than installing from a CD. Downloading security product from the internet ensures you, your setup is the most recent version. Due to viruses and other malicious software it is very tough to install Norton product for normal computer users.

    ReplyDelete
  5. roku.com/link provides the simplest way to stream entertainment to your TV. On your terms. Visit roku.com/link for Roku code linking to your Account.
    twitch.tv/activate Enter the code given to you by your device to link it to your Twitch account. Activate Your Twitch TV with us
    roku.com/link manufactures a variety of digital media players that allow customers to access Internet streamed video or audio services through televisions, including subscription-based services as well as services that are available through the receiver free of charge.

    ReplyDelete
  6. Norton.com/setup Online Help – Step by Step guide for Norton Setup, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup Norton product.
    norton.com/setup

    office.com/setup Online Help – Step by Step guide for Office Setup, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup Office product.
    office.com/setup

    office.com/setup Help – Step-by-Step guide for Microsoft Office – Activate, Donwload & complete installation from office.com-setup.de online. We are providing independent support service if in case you face problem to activate or install Microsoft office product.

    Norton.com/setup Online Help – Step by Step guide for Norton Setup, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup Norton product.
    norton.com/setup

    Norton.com/setup Online Help – To enable this protection for your Windows or Mac PC, all you need to do is download, install and activate the Norton Setup. But, before you start with the downloading process, remember to uninstall the already installed security software or antivirus (if any) from your device. This is mandatory to avoid any software conflict issue.
    norton.com/setup

    ReplyDelete