Hi,
I have a plot with multiple peaks (here, 2 peaks for simplicity and data is also attached). I want to plot the outerilne above the same plot. How can I do that? I tried using unique(x); but not getting the expected results,particularly the problem area (shown in figure). I Here is my code (I am using Matlab2018a),
a=importdata('abc.txt');yyn=[a(:,2)' a(:,4)'];bbn=[a(:,1)' a(:,3)'];%using unique
[abn acn]=unique(bbn);plot(a(:,1),a(:,2),'k')hold onplot(a(:,3),a(:,4),'k')hold onplot(abn,yyn(acn),'r')
Any help is appreciated. Thank you.
Best Answer