This repository contains the MATLAB (R2022b) codes (*.m files) used to produce the related contents of Liu et al. (2023). For installation of MatLab, please refer to: https://au.mathworks.com/products/matlab.html Comments within the code detail the programme for the associated analysis and built-in Matlab toolbox required where relevant. For queries pertaining to this repository and its contents, please contact Dr. Yi Liu (yiliu@stu.ouc.edu.cn). %% Main_Fig1.m: For plotting main Fig.1. %% Main_Fig2.m: For plotting main Fig.2. %% Main_Fig3.m: For plotting main Fig.3. %% Main_Fig4.m: For plotting main Fig.4. %% Econometric_model.m: For fitting econometric model based on historical climate and economic data. References: Liu et al. Nonlinear El NiƱo impacts on the global economy under climate change. Nature Communications. (2023).