DSPRelated.com
Forums

Functions and Database by matlab

Started by Ghadeer March 12, 2004
Respected members,
I want to learn how to return more than one value by a function in
matlab. In fact i need tutorials in calling functions because the
matlab help doesn't provide enough examples.

Also how may i build my own database of images by matlab?
Is there a way to do so?
or i might just save my images in the same directory of the matlab.

please help me
waiting for you
thanks alot
Regards,
Ghadeer El_Ghafri



Hi All,
For the first question of your mail , you can simply return any
number of Arguments in Matlab function declaration as follows :

function [outputs]=Name_of_function(Inputs)

Like:

function [a,b,c,d,e,f]=Operations(g,h,i,j,k)

a= g+h;
b= h+i;
c=i+k;
d=j+k;
e=g*k;
f=h*i*j;

or , you can return all outputs in array , and then access to that array as
: array(1),array(2) like :

function [result]=Operations(g,h,i,j,k)

a= g+h;
b= h+i;
c=i+k;
d=j+k;
e=g*k;
f=h*i*j;
result=[a,b,c,d,e,f];

But You Must Remember a very important point, you must save the name of the
file as the function name (which is after = sign) !!

For the Second Question .. the Graphical User Interface (GUI) gives you a
perfect tool to make such the database .. you can use arrays to save your
work ,, or if you work in a university (and you have a students for example)
.. You can use the struct command..Using the struct command, arrays and GUI
tools , you can make make a Nice data base ..

As for image Processing, Actually, I am not clever in it , so, I am
waiting any body else to answer this point (sorry for my Little knowledge as
I am new to Matlab too :) ) ..

I wish that you had found your answer here, and I am sure that the
Genius Matlabers here will answer you soon by best ways.... Ahmed El-Saied -----Original Message-----
From: Ghadeer [mailto:]
Sent: Friday, March 12, 2004 8:52 AM
To:
Subject: [matlab] Functions and Database by matlab

Respected members,
I want to learn how to return more than one value by a function in
matlab. In fact i need tutorials in calling functions because the
matlab help doesn't provide enough examples.

Also how may i build my own database of images by matlab?
Is there a way to do so?
or i might just save my images in the same directory of the matlab.

please help me
waiting for you
thanks alot
Regards,
Ghadeer El_Ghafri

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:

To Post:

To Leave:

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3
Yahoo! Groups Links