Error using patch not enough input arguments
이전 댓글 표시
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.
채택된 답변
추가 답변 (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.
카테고리
도움말 센터 및 File Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
