I am new to matlab:
I was working in python, I generally use logging a lot to keep track of the code. In python, we can use below
import logging
logger = logging.getlogger()
logger.setLevel(logging.INFO)
handler = logging.FileHandler("log.txt",mode=w+)
handler.setlevel(loggin.INFO)
logger.addHandler(handler)
#And any where in the code use it as
logger.info("testing")
How can we do something similar in matlab
warningto output comments for the user that can be turned off.