[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #1 Help, please! (MatLab -> Octave)
From: |
Gabor Zoltan Csejtey |
Subject: |
Re: #1 Help, please! (MatLab -> Octave) |
Date: |
Mon, 26 Feb 2001 13:38:02 +0100 (MET) |
Hi,
I'm new to octave too.
You may use the help from octave or info from a shell.
e.g.
info octave in a shell
help -i something in octave
If you run octave --traditional or --braindead then octave will try to
emulate matlab environment but not everything. The builtin variables
what you put in the debut.m will have the values what you given.
I guess you have problem using some functions which are working in
matlab and not all of them working in octave.
I had similar error messages when I tried some matlab functions from
octave. e.g. functions with variable arguments.
Gabor
PS.
I can send you you the converting procedures if you're interested.
matlab -> octave
function(varargin) function(...)
varargout=function(something) [...]=function(something)
Date: Mon, 26 Feb 2001 12:56:11 +0100
From: Valeriy Sterligov <address@hidden>
Resent-From: address@hidden
Hello,
I need to use Octave for educational purposes for students of
University of Nice, I have rather short time for preparation of tasks
for them, but I have a lot of problem running Octave probably because
lack of my experience in this area.
I have some program files of MatLab that works well in this
environment and I would like to transfer them to Octave. I read the
chapter of FAQ "Porting programs from MATLAB to Octave", then I run
octave from console by command like "octave --traditional". Octave runs
without error messages, than I put lines
PS1 = ">> "
PS2 = ""
beep_on_error = 1.0
default_eval_print_flag = 0.0
default_save_format = "mat-binary"
define_all_return_values = 1.0
do_fortran_indexing = 1.0
empty_list_elements_ok = 1.0
fixed_point_format = 1.0
implicit_num_to_str_ok = 1.0
implicit_str_to_num_ok = 1.0
ok_to_lose_imaginary_part = 1.0
page_screen_output = 0.0
prefer_column_vectors = 0.0
prefer_zero_one_indexing = 1.0
print_empty_dimensions = 0.0
treat_neg_dim_as_zero = 1.0
warn_function_name_clash = 0.0
whitespace_in_literal_matrix = "traditional"
in file that I call debut.m and run command "source (debut.m)"
as result I have next error messages:
error: can't perform structure reference operations for <unknown type>
type
error: evaluating expression
error: evaluating argument list element number 1
error: evaluating index expression near line 1, column 1
Could you tell me, what is wrong, what are the correct actions that
should be done for resolving this problem? By the way, I did not found
in my any working directories file .octaverc, in which you proposed put,
if I understand right, command lines above. Should I create it? With
what content?
I am highly appreciate your prompt help
Sincerely yours Valeriy Sterligov
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------