Press ESC to close

how to define matrix ai-1 in function matlab