Hi. I have this code in matlab:(adsbygoogle = window.adsbygoogle || []).push({});

/ /

I=dlmread('C:\Users\rshah\Desktop\Polymer Project\monteCarloCode\E=1e8.txt');

F=fft2(I); F = fftshift(F); % Center FFT

F = abs(F); % Get the magnitude since F is complex

F = log(F+1); % Use log, for perceptual scaling, and +1 since log(0) is undefined

[avg, s]=radialavg(F,30);

subplot(2,2,1);imshow(F,[]);

subplot(2,2,[3,4]);plot(s,avg);

subplot(2,2,2);imshow(I,[]) //

F is the fourier transform of my matrix of 1's and 0's which is 'I'. I would like to smooth both images so they do not appear pixelated like how in gnuplot we use interpolate.

Im new to matlab and the syntax so sorry if this is something really easy. Thanks in advance

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab imshow Pixel smoothing

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - Matlab imshow Pixel | Date |
---|---|

How to program this in Matlab | Feb 28, 2018 |

Matlab Making a short test for self-adjointness | Feb 23, 2018 |

Matlab Plotting Coordinate Transformations in Matlab | Feb 12, 2018 |

Matlab: Using imshow and mesh in the same plot | Oct 3, 2011 |

**Physics Forums - The Fusion of Science and Community**