Filling in gaps in plot

2 次查看(过去 30 天)
Marcus Rosales
Marcus Rosales 2021-3-24
回答: KSSV 2021-3-25
Hello, I am trying to generate some plots which look a little prettier than what I currently have. An example is attached.
I am ploting the spectral function in the first BZ (basically k values between and π). I build a matrix for an NxN lattice and solve it under the assumption of PBCs. The number of k-points in this case will be . Obviously then the bigger the lattice the better the resolution. I am constraind by how big N can be however, so I need to think of an alternative way of improving my plot.
I basically obtain a matrix whose elements correspond to specific k-vectors in 2D and use surf() viewed at $90^o$. Does anyone know of a smoothing method or averaging procedure which can help me fill in these gaps? I have thought of a few things but they seem rather tedious. Any help is greatly appreciated!

回答(1 个)

KSSV
KSSV 2021-3-25
Read about fillmissing. Read about imresize, interp2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by