I have this sort of data. I want to plot PAW with Pasture 9 Patch 1, Pasture 9 with Patch 3, along with Pasture 9 with Patch 5. I want to use logical indexing as, Pasture (Pasture==9), Patch(Patch==1) and then retrieve PAW data based on it. I tried this,
for ii =1:length(PAW) Pasture_index = find(Pasture==9); PAW40pasture(ii) = mean(PAW40(Pasture_index,1));end
But this did not work. Any suggestions/help will be appreciated.
Pasture Patch PAW9 1 59.903663479 1 58.714858619 1 57.357236039 1 57.362129739 3 57.047694589 3 127.72843679 3 143.78971279 3 143.53492239 3 142.51568139 5 142.36292699 5 148.70254479 5 149.73029989 5 147.51498739 5 88.551155579 5 80.52936618
Best Answer