Error using patch not enough input arguments
Mostrar comentarios más antiguos
I created 2 custom colors
>> myGreen
myGreen =
0.0863 0.7294 0.7294
>> myOrange
myOrange =
0.9216 0.8157 0.1294
I am trying to use them in patch like this:
patch([x fliplr(x)], [yMean-ySEM fliplr(yMean+ySEM)],'FaceColor',myGreen,'FaceAlpha',0.2,'EdgeColor','none')
I have 3 arguments: x, y, and color. Why does it give this error?
Error using patch
Not enough input arguments.
Respuesta aceptada
Más respuestas (1)
Omit all parts of the command, which are not mandatory:
patch([x fliplr(x)], [yMean-ySEM fliplr(yMean+ySEM)])
Now compare this with the list of valid inputs taken from: doc patch:
Your call does not match one of them.
1 comentario
Anas Khan
el 29 de Oct. de 2022
Categorías
Más información sobre Grid Lines, Tick Values, and Labels en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
