Percentage change and plot
조회 수: 39(최근 30일)
I ran my code multiple times, by assigning a different value to one of the variables (Pa) each time. The results are stored in a matrix of solutions (cbf) 285x7. The 1st column is the one with the baseline values.
I would now like to calculate the percentage change of each column with respect to the baseline column and plot it against Pa (%cfb change vs. Pa) Could you help me?
I presume I have to perform this calculation:
percentage= ((cbf(:,n) - (cbf(:,1))) ./ cbf(:,1)).*100
But the plot of %change cbf against the Pa values that I manipulated appears only as a white canvas: