TSTOOL home page | TSTOOL documentation page | TSTOOL link page

next up previous contents
Next: Bibliography Up: 7.2 Answers Previous: 7.2.5 Miscellaneous questions

Subsections

7.2.6 Frequently encountered errors

7.2.6.1 Using a column vector to create a one-dimensional signal

TSTOOL stores one-dimensional signals always as row vectors. Giving a column vector will cause unexpected behaviour with most routines that process signals:

 
>> s = signal(sin(0:0.5:100))
  s = signal object 
 
  Dlens : 1  201
  X-Axis 1 :  | 
  X-Axis 2 :  | 
 
  Name : 
  Type : 
 
  Attributes of data values : 
   | 
 
  Comment : 
 
  History : 
16-Aug-1999 19:15:01 : Imported from MATLAB workspace

Instead, a row vector must be given to create the desired one-dimensional signal:

 
>> s = signal(sin(0:0.5:100)')
  s = signal object 
 
  Dlens : 201
  X-Axis 1 :  | 
 
  Name : 
  Type : 
 
  Attributes of data values : 
   | 
 
  Comment : 
 
  History : 
16-Aug-1999 19:16:58 : Imported from MATLAB workspace



TSTOOL

Copyright © 1997-2009 DPI Göttingen