How to plot the value from multiple rows over one row using different tables?
显示 更早的评论
I'm trying to get the growth (represented in each week W1) of a genotype ploted over the salt accumilation in the soil for the matching group.
Table 1 = PG

Table 2 = acumilation

I'm trying to get the output to be similar to this graph with the salt acumilation being the x axis and the plant growth being the y axis. and the variables being the genotype.

Since there are two different unique salt accumilation methods. I believe making two graphs would be best, one showing the 200mM accumilation and the other showing the 400mM accumilation.
This is the current code I have
for i = PG.Groups('200mM-NaCl-1')
for j = PlantGrowth.Genotype in i
avgrowth = PlantGrowth(PlantGrowth(:,W1))
I'm currently unsure how to get the growth values for each genotype in the 200mM-NaCl-1 group and plot them over the weekly salt accumilation values for the respective group.
I have attached both tables
1 个评论
Peter Perkins
2023-6-5
MartinLuther, this is likely not hard to do, you need to be much more clear. Your tables seem to have little to do with your example figure:
- I see NO values in the 400-600 range in those tables, yet that's what I see in the figure
- The legend shows what I guess are genotypes, NONE of those are in your data
- The W1 etc. seem to be some sort of time series, but who knows?
- etc.
You need to show exactly how the example data you have provided are turned into a figure.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!