Using TISEAN package in Matlab
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
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?
採用された回答
Walter Roberson
2012 年 12 月 31 日
編集済み: Walter Roberson
2012 年 12 月 31 日
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 件のコメント
dave
2012 年 12 月 31 日
I see, thank you...and that's the one and only possibility of passing the array to the function?
Walter Roberson
2012 年 12 月 31 日
From time to time people ask whether there are interfaces to program A or program B. We are command line purits so we don't need such interfaces.
I have also checked the command line options for "rms" and I see that there is no option for giving the inputs on the command line itself instead of in a file.
Glancing around a bit, I see that people have created interfaces of some kind for R and for Python.
The code is all under Gnu Public License, so if you wish you could edit the source to create ways to call the routines directly from MATLAB, passing in binary values. I did not examine the source to get an idea of how much work that would be.
I just found an m-file that wraps TISEAN functions. As far as I can tell it also creates text files for the input and output. Any suggestions how to modify this m-file so that the created text files are automatically deleted again right after the computations are done?
Walter Roberson
2012 年 12 月 31 日
The second last line of that .m is
%delete (outfn);
Remove the % to leave
delete (outfn);
dave
2012 年 12 月 31 日
I'm still pretty new to Matlab, but I admit that I could have figured that out myself ;) Thank you very much for your help, Walter...
Ashwani Gupta
2014 年 5 月 1 日
Hi Dave or Walter- I am trying to do the same thing as above. I have 2 questions- What formats of data can TISEAN from Matlab read? I was able to use the choose command from TISEAN from within MATLAB to read my data to a stdout. How do I run different TISEAN functions on this data? Could youhelp explain the code above suggested by Dave to read in the data. Sorry, I am new to MATLAB. Thanks. system([tiseanPath, 'choose G:\Modeling\346561.csv']);
TISEAN 3.0.0 (C) R. Hegger, H. Kantz, T. Schreiber (1998-2007)
C:\cygwin\Tisean\Tisean_3.0.0\bin\choose: Choose columns and sub-sequences from a file reading from columns 1 opened G:\Modeling\346561.csv for input 35 values read from file: G:\Modeling\346561.csv writing to stdout writing to stdout 35 values written to stdout 12.50000 12.70000 .. . . . . . . . . . . . 11.70000 12.20000 12.20000
dave
2014 年 5 月 2 日
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
2014 年 5 月 5 日
Dave.do you still use TISEAN- maybe from the command line interface?
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
