Question

I have two figures which have same spaces in domain and range:

enter image description here

and

enter image description here

I follow the manual here about subimage

image1 = imagesc(T*t, F*fs, abs(B));
subimage(T*t, image1);    
image2 = imagesc(T*t, F*fs, abs(B'));
subimage(T*t, image2);    

but I get no picture. Probably, I should use the command infuse instead. I still do not understand how should I should be passing different Y-values and Time-Frequency Representation to the command.

It seems that the command is not designed for three parameters.

How can you make one picture out of two time-frequency plots in Matlab?

Was it helpful?

Solution

Try

subimage(T*t, F*fs, uint8(abs(B)));

otherwise you are trying to imagesc(T*t), a line

You may need to scale abs(B) to [0,255] if the value in B is out of uint8 range:

B1=abs(B);
B1=B1/max(B1(:))*256; 
subimage(T*t, F*fs, uint8(B1));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top