How to colormap different functions with one gradient?
3 ビュー (過去 30 日間)
古いコメントを表示
So carefully I prepared this piecewise function:
u = 0:0.01:2*pi;
v = 2*pi:0.01:4*pi;
w = 4*pi:0.01:6*pi;
f = 1+sin(3*u); %prepare image of first plot
c = -0.2;
a = exp(-(c*2*pi+2*pi));
g = a*exp(c*v+2*pi); %prepare image of second plot
A = a*exp(c*4*pi+2*pi);
h = A+A*sin(3*w); %prepare image of third plot
hold all
plot(u,f,'b-','LineWidth',2.5)
plot(v,g,'r-','LineWidth',2.5)
plot(w,h,'b-','LineWidth',2.5)
grid on
How do I add a total gradient? One plot I can handle but more are challenging me.
2 件のコメント
Jack Shannon
2021 年 2 月 2 日
What do you mean by "total gradient"? Do you mean the gradient of each piece of your function?
回答 (1 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!