Borrar filtros
Borrar filtros

Using TISEAN package in Matlab

11 visualizaciones (últimos 30 días)
dave
dave el 31 de Dic. de 2012
Comentada: Ashwani Gupta el 5 de Mayo de 2014
Hi,
I want to use functions from the TISEAN package in Matlab and I've tried to implement this as suggested here:
Say I wanna apply the TISEAN function "rms" to a vector of doubles, called "x". Here's what I do:
tiseanPath = 'C:\TISEAN\Tisean_3.0.0\bin\'
system([tiseanPath,'rms -a x'])
When I run these lines I get an error message saying "Cannot open input file x". What am I doing wrong here?

Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Dic. de 2012
Editada: Walter Roberson el 31 de Dic. de 2012
You need to write the content of the vector into a file, and then you need to name that file where you have "x" on the system() command line.
For example,
tismean_file = 'tismean_input.txt';
xv = x(:);
save(tismean_file, 'xv', '-ascii');
result = system( sprintf('%srms -a %s', tismeanPath, tismean_file) );
The result will probably be in the form of text.
  8 comentarios
dave
dave el 2 de Mayo de 2014
Hi Ashwani, I'm sorry to tell you that I stopped using TISEAN (from Matlab) a long time ago, so I can't really help you with your question. Hopefully another user can give you the answers you're looking for. (If not, you could give it a try at stackoverflow.com)
Ashwani Gupta
Ashwani Gupta el 5 de Mayo de 2014
Dave.do you still use TISEAN- maybe from the command line interface?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by