MATLAB: Help with desired color in patch command?

  • Context: MATLAB 
  • Thread starter Thread starter hivesaeed4
  • Start date Start date
  • Tags Tags
    Color Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
hivesaeed4
Messages
217
Reaction score
0
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.
 

Attachments

  • code.jpg
    code.jpg
    22.4 KB · Views: 539
  • resulting boundary wall.jpg
    resulting boundary wall.jpg
    28.6 KB · Views: 598
Physics news on Phys.org
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