Thanks. However, what I want is to output the signal after sampling out a data waveform using simulink, not importing wave file or any other audio file to play.
you can use either "wav" file output or the "sound" command
if it is a simple simulation, like outputting a sine wave you can use the sound command.
to know the attributes iof the command go to the command window in matlab and type " >>help sound"