Posts

Showing posts with the label Interfacing with other languages

Graphics and graphical user interface programming

Graphics and graphical user interface programming [ X , Y ] = meshgrid ( - 10 : 0.25 : 10 , - 10 : 0.25 : 10 ); f = sinc ( sqrt (( X / pi ) .^ 2 + ( Y / pi ) .^ 2 )); mesh ( X , Y , f ); axis ([ - 10 10 - 10 10 - 0.3 1 ]) xlabel ( '{\bfx}' ) ylabel ( '{ \bfy}' ) zlabel ( '{\bfsinc} ({\bfR})' ) hidden off     [ X , Y ] = meshgrid ( - 10 : 0.25 : 10 , - 10 : 0.25 : 10 ); f = sinc ( sqrt (( X / pi ) .^ 2 + ( Y / pi ) .^ 2 )); surf ( X , Y , f ); axis ([ - 10 10 - 10 10 - 0.3 1 ]) xlabel ( '{\bfx}' ) ylabel ( '{\bfy}' ) zlabel ( '{\bfsinc} ({\bfR})' ) This code produces a  wireframe  3D plot of the two-dimensional unnormalized sinc function:     This code produces a  surface  3D plot of the two-dimensional unnormalized sinc function:     Interfacing with other languages MATLAB supports developing applications with graphical user interface (GUI) features. MAT...