Hi! I'm having some issues regarding a plot with two x-axes and a similar y-axis. At least, that's what I want. My code from matlab looks like this:
t1 = [1:length(q_mean_norm)];t2 = [1:length(q_mean_pc_dt_zero)];figure(3)xlabels{1} = 'q_mean_norm valid samples[s]';xlabels{2} = 'q_mean_pc_dt_zero valid samples[s]';ylabels{1} = 'Flow [l/min]';ylabels{2} = 'Flow [l/min]';[ax,hl1,hl2] = plotxx(t1,q_mean_norm,t2,q_mean_pc_dt_zero,xlabels,ylabels);grid;
The problem is that my two y-axes in this case are different. The two functions have minor differences which in this case could be neglected. Hence it would be favourable to keep the y-axes limits the same, in this case [-100,2000], regardeless of the fact that the two x-axes don't match.
I've tried different commands to manipulate both y-axes without any luck. Any tips you got? Thanks!
Best Answer