MATLAB, Filling in the area between two sets of data, lines in one figure
MATLAB fill area between lines
しかし、既存のすべての質問には、2つのだけのカーブに関連しています。 で区切られた領域をいくつか塗りつぶしますか?お互いに重なっているカーブ?
粗製の例は次のようになります。シェーディング
% Create sample data as column vectors.
x = [1 : 100]';
curve1 = x/10;
curve2 = log(x/2) + rand(length(x), 1) - 0.5;
curve3 = log(x) + rand(length(x), 1) + 0.5;
% Plot it.
plot(x, curve1, 'r', 'LineWidth', 2);
hold on;
plot(x, curve2, 'b', 'LineWidth', 2);
plot(x, curve3, 'k', 'LineWidth', 2);
: 上限を赤線が続く黒い曲線であろう。
下限は青色の曲線(短く)、次に赤色の線、青色の曲線です。
私の実際のデータセットには、同様のことが必要な10個の曲線があります。
ありがとう!まさに私が探していたもの。 – luks