Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bark Band Spectrum, Surf(....

Status
Not open for further replies.

Sulake

Mechanical
Joined
Mar 20, 2006
Messages
2
Location
FI
Hi,
i'm trying to plot an sound ( and the goal is to get this ( but i get an error:
Warning: Z must not be a scalar or vector, not rendering surface.

Here is the problematic program:
Code:
[b]function bark(ID,nom,periode,imin,unite)[/b]
nb=size(ID);
t=1:1:nb(2);
f=1:1:nb(1);
f=(f-1)+imin;
vect_t=(t-1)*periode;
surf(vect_t,f,max(ID,0));
shading interp;
rotate3d;
xlabel('Time (s)');
ylabel('Bark Band');
aff=sprintf('%s',unite);
zlabel(aff);
view(0,90);
title(nom);
------------ And the variables are:
ID=identifier of the variable: dBID+n°ID dBFA32
nom=name of the variable : ID(comment) (string)
periode=period (time step)
imin=index of the min band (1 to 24)
unite=unit (string)

Any idea why max(ID,0) is an scalar or vector?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top