Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Ads

Discussion Groups

Discussion Groups | Matlab DSP | Functions and Database by matlab

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

Functions and Database by matlab - Ghadeer - Mar 12 6:52:00 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





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

RE: Functions and Database by matlab - Ahmed El-Saied - Mar 12 15:03:00 2004

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

_____________________________________
/groups.php3
Yahoo! Groups Links





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )