Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Help: Need to make coulored 2D plot, with coulor changing according to value of a third variable

1 回表示 (過去 30 日間)
German
German 2014 年 2 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
The graph comes from ploting a vector of displacement "d" (y axis), v/s a vector of time (x axis). So i have a certain displacement for each time. There is a third vector "z"(the same length than de "d" and "t" vector) that has only values between 0 and 1. So i have also a value of "z" for each time. there is a certain relation between "d" and "z" (proportional in a certain way) So what i need is a plot "d" v/s t, in wich the colour of the plot (t vs d) changes depending on the value that takes z for the same time period, for ex: - if Z in t=20 is between 0 and 5, the plot d v/s t in that same instant is plotted in black - if z is t=30 is between 5 and 7, the plot d v/s t in that same instant is plotted in black green
The plot is something like the file added.
Thanks!

回答 (0 件)

この質問は閉じられています。

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by