Matlab: displaying message and cell array in msgbox -
i have cell array 'animals' contents as:
'cat' 'dogs' 'elephant'
i want display in messagebox following:
the animals in our zoo are: cat dogs elephant
how achieve this?
edit: sorry confusion: contents of cell array 'animals' change every time user runs code. size of 'animals' 3x1 or 4x1. so, variable size , contents has recognized.
very easy if read doc msgbox
:
intro = 'the animals in our zoo are:' animals = {'cat','dogs','elephant'}; % define desired: msgbox([intro animals])
Comments
Post a Comment