こんにちは私はOctaveを初めて使っています。私はMatlabをほとんど知りません。私はOctaveを使い始めていますが、Matlabと互換性のあるコードを書いています。どうすればこれを達成できますか? 私はオクターブを起動--traditional
フラグは、このために作られたと思ったが、例えば互換性のあるMATLABされていないシンプルなnot
オペレータ!=
はまだ動作します: Octave with -matraabとの互換性
[email protected]:~/Projects/datascience$ octave --traditional
GNU Octave, version 4.0.0
Copyright (C) 2015 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.
Octave was configured for "x86_64-apple-darwin15.2.0".
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html
Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.
>> 1 != 0
ans = 1
私はこの文はエラーをスローすることを期待しながら、
。私は互換性のないMatlabステートメントを他の人に知らせてみませんでした。だから、純粋にMatlab互換の方法でOctaveを実行することは可能ですか?または、 コードを分析し、互換性のない機能が使用されているかどうかを警告できるツールがありますか?
ありがとうございます!出来た!警告( "on"、 "Octave:language-extension")ではなく、デフォルトで警告を有効にすることができるかどうか教えてください。 – se7entyse7en
@ se7entyse7en:あなたの 'octave.rc'に書き込みます。 – Wrzlprmft