[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Robert Setif
Subject: problems
Date: Tue, 29 Sep 2015 19:20:02 +0200

I would like to know why the file:
  # hyp.m
  function r=hyp(x,y)
  # hypoténuse d'un triangle de côtés x et y
always alert :
   >> hyp
   error: 'x' undefined near line 4 column 8
   error: called from
    hyp at line 4 column 2
   error: evaluating argument list element number 1
   error: called from
    hyp at line 4 column 2
Fortunately, this is not a crashing error.
That problem happens with all my files.
I do not know to declare in function-arguments a variable, 
 for instance x as real, y as integer, m as scalar.
I also would like to change at the screen the shape of result 
 from a  "for i=1:30,disp(i^2),endfor"  in order to 
 request in a list-shape rather that column-shape, 
 (with "disp" or another command).
 Robert SETIF  address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]