Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB: Help with desired color in patch command?

  1. Apr 7, 2012 #1
    Hi,
    I'm trying to make a boundary wall using the patch command for a project. Trouble is while the boundary wall is alright, it's color is'nt what I desired and for some reason the patch command is'nt following the rgb color chart despite what the help on matlab says. I want it to be black. Could someone tell me what mistake I'm making in my code, and tell me how to get any desired color using the patch command?

    Attsached are the screen shots of my code as well as the resulting boundary wall.
     

    Attached Files:

  2. jcsd
  3. Apr 9, 2012 #2
    Not sure if you figured out your problem yet, but you set the color to red instead of black

    [1 0 0] = Red
    [0 0 0] = Black
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: MATLAB: Help with desired color in patch command?
Loading...