MATLAB fill area between lines

后端 未结 4 1360
感动是毒
感动是毒 2020-12-18 15:01

I\'m trying to do something similar to what\'s outlined in this post: MATLAB, Filling in the area between two sets of data, lines in one figure but running into a roadblock.

4条回答
  •  无人及你
    2020-12-18 15:50

    One thing that you appear to be doing wrong is that you're applying fliplr to column vectors. That will have no effect. The example you cited uses row vectors. You also concatenate them into a matrix instead of into a single vector like the example. I think that the equivalent with column vectors would be:

    fill( [x;flipud(x)],  [mean;flipud(meanMinusSTD)], 'y');
    

提交回复
热议问题