Am trying to plot 2 variable of different size length in matlab GUI using push button, but because the variables are of different length it will not work,is there a way i can make it to plot.
d= pdist([x,y,z],'euclidean') ; % value of my distance
dd= 1:10:d; % interval and end 'd' value
FSL=-120; %value of free space loss get from the GUI
DFSL= 1:10:FSL %interval and end at FSL value
plot(dd,DFSL)
The plot code didnt work coming back with an error " Error using plot Vectors must be the same lengths"
plot(shortVec,longVec(index))should work, where index is an integer vector the same length as shortVec, with no values greater thannumel(longVec). - Doresoom