Hi.
This question may need a little clarification. Are you trying to do some calculations, or are you trying to have these questions render within a MATLAB live script?
I advise you upload your code to give people an idea of the problem you're facing. Saying "I tried ... but I couldn't" doesn't really give enough information to allow anyone to help.
Best wishes,
Harley