The development and application of the scientific computing software Matlab have promoted studentsto perform data processing, image analysis, and fitting experiments in the University Physics Experimentscourse.The data image visualization capability of Matlab software is exhibited by the Frank Hertz experimentThis perfectly shows the multiple peaks formed by the polar plate current variation with the accelerated voltage.The Planck constant is measured based on the photoelectric effect to present the capacity , such as, theexperimental data fitting, integrating the experimental curve , analyzing the relationship between the cut-offvoltage and the incident light frequency ,obtaining the fitted curve and calculate the magnitude of the Planckconstant.The introduction of Matlab can enhance students’ creativity in experiments , which helps cultivatestudents' scientific literacy and logical thinking ability and lays a solid foundation for students' future study andresearch work.