How to plot the value from multiple rows over one row using different tables?
Mostra commenti meno recenti
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 Commento
Peter Perkins
il 5 Giu 2023
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.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graphics Object Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!