[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hello World function
From: |
Peter Norlindh |
Subject: |
Hello World function |
Date: |
Tue, 21 Dec 2010 11:22:11 +0100 |
Hi,
I'm trying to get started with functions. I have created Hello.m and added its directory with addpath. Hello.m looks like this:
------------------------------------
function Hello
printf("\nHej\n\n");
end
-----------------------------------
I call the function by typing "Hello".
I get:
"error: "Hello" undefined near line..."
What is wrong?
/hpon
- Hello World function,
Peter Norlindh <=