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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -