Relative Content

Tag Archive for matlabmatlab-figure

Extracting ERSP image only in matlab

I want to remove everything from the figure below but the ERSP graph. I can do this manually but to save time it would be nice to have it in code.

How to prevent the ‘figure’ window from popping up

I have a function for creating subplot positions. However, When I call this function, the line “axes(ha(i))” always causes the figure window to pop up. How can I modify this line to prevent the figure window from popping up? Thanks!

Figure Not Displaying Properly

I’m messing around with different slices of the brain, as shown below. Each image is essentially a 2D array visualized using imagesc, where each “pixel” corresponds to an element of the array. However, the subplots don’t appear to be scaling properly at all. Both the sagittal and coronal slice are 140 elements “tall”, however because I assume MATLAB individually scales each subplot a certain way, they do not appear to be as tall as each other whatsoever. Similarly, the transverse slice should be as tall as the sagittal slice is wide (and the coronal slice should be as tall as the transverse slice is wide), but not of these dimensions match up. Here is a snippet of my code for troubleshooting purposes: