Scatter3 not plotting after providing condition.

3 ビュー (過去 30 日間)
Ashraf Rafiza
Ashraf Rafiza 2020 年 7 月 6 日
コメント済み: Star Strider 2020 年 7 月 6 日
Hi everyone! I have a total delay on each hour in a month of an airport. I want to create scatter plot with day as x-axis, hour as y-axis and delay duration as z-axis. In the plot a want the color varies with the category of delay but after applying the condition, it plot for only 1 category. I hope someone could me with this project and I attach the matlab file, the current plot and also the plot idea that what I want to create.
The above plot is what I intend to do.
The above image is my matlab command.
The above plot is my result.. Can be seen that it only plot the green one.

採用された回答

Star Strider
Star Strider 2020 年 7 月 6 日
Use the hold function.
figure
scatter3(x(w1), y(w1), z(w1), 'y', 'filled')
hold on
scatter3( ...)
scatter3( ...)
scatter3( ...)
scatter3( ...)
hold off
.
  2 件のコメント
Ashraf Rafiza
Ashraf Rafiza 2020 年 7 月 6 日
thank you for answering :D
Star Strider
Star Strider 2020 年 7 月 6 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by