I programmed this:
%create Envelope of a signal
%________________________________
%load('y-data')
load('ungedaempft.mat','t','s');
envelope(ungedaempft,17,'peak');
datatypes (all imported in workspace):
.mat file: 400x2 table
variables s
and t
: 400x1 double (imported as column vector in workspace)
t
= x-axis value
s
= y-axis value
that's how the .mat 400x2 table looks like
error message:
Warning: Variable 't' not found. In newenvelope (line 2)
Warning: Variable 's' not found. In newenvelope (line 2)
Error using envelope
Expected input to be one of these types:
single, double
Instead its type was table.
Error in newenvelope (line 4)
envelope(ungedaempft,17,'peak');
Tried to put the variables in ’s’ & in "s“ or in {s,t} form but nothing works. Obviously s & t are doubles so I don't see a problem & t & s are imported & exist & work. Rest of the errors have no specification what's wrong.
Documentation example:
load('mtlb')
envelope(mtlb,30,'peak')