Do you really need the vector M? (No)
Why not put all your responses into a 12x1 cell then index into the cell array instead of nesting so many if else statements? Or you could use a switchyard.
Why is your function named cold_chat but saved as hi?
Looking at the code I have some suggestions.
Do you really need the vector M? (No)
Why not put all your responses into a 12x1 cell then index into the cell array instead of nesting so many if else statements? Or you could use a switchyard.
Why is your function named cold_chat but saved as hi?
Comment only