2d color plots
古いコメントを表示
Hello everybody,
Iam a matlab beginner and I would like to plot a 2d plot with a colorbar in matlab.
I have examined displacements per atom (just a physical quantity) within a cylindrical accelerator target (radius r, thickness d). The values are binned in length (z direction, thickness) and radial. For both, the same bin number was applied. So, actually I would like to have a plot which shows the physical quantity as a function of the target depth at the x-axis and the radius at the y-axis in the form of colored pixels. The number of pixels should equal bin*bin, means if radius and length are binned with 20 bins both there should be 400 pixels with a color in the sum.
What is the easiest way to plot that? In which form as .txt would I have to load the data in? One single .txt file or several?
I would be very thankful for answers, I was not able to find an answer which helps me.
Kind regards,
Niklas
9 件のコメント
darova
2020 年 3 月 11 日
Did you try plot() command?
darova
2020 年 3 月 11 日
What do you mean by '3 arguments'? You want color line?
Niklas
2020 年 3 月 11 日
darova
2020 年 3 月 11 日
Do you have example picture?

Niklas
2020 年 3 月 12 日
Niklas
2020 年 3 月 12 日
darova
2020 年 3 月 12 日
You are always welcome!
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

