how does library management system using matlab gui works?

I downloaded the code given on http://www.mathworks.com/matlabcentral/fileexchange/6448 but its not working on my Matlab...i need to know which code i should run first...what is the procedure..plzz help me..

2 Comments

IF ANYONE HAS RUN THIS CODE THEN PLEASE TELL...
I do not have the Database Toolbox or the MATLAB Compiler so I have not tried.

Sign in to comment.

 Accepted Answer

That file was uploaded seven years ago, so it does not surprise me that it doesn't work completely on the first try. The FEX mentions that the code requires the Database Toolbox and the MATLAB Compiler. Do you have those?

5 Comments

yes..i hav matlab version 7.0.1...windows xp ...but the code does not run..error comes...does this code run?
You have that MATLAB version, fine, but do you have the (optional, extra cost) Database Toolbox corresponding to that MATLAB version, and do you have the (optional, very much extra cost) MATLAB Compiler corresponding to that MATLAB version?
Telling us that "error comes" gives us very little information about the problem you are seeing. I sat down and counted once, and found that there were 14923 different conditions that could cause the problems you report. Would you prefer that we start giving you a random entry from the list until we randomly hit upon something that fits your situation, or would you prefer to show us a copy of the actual error messages?
well...i dont know if i m having database toolbox or compiler or not...but for example if i run the first code for ADD_BOOKS then the following error comes
??? Input argument "handles" is undefined.
Error in ==> ADD_BOOKS at 3
title = get(handles.edit_title,'String');
for the next code i.e add_call_func following error comes
?? Error using ==> load
Unable to read file ADD_CALL_FUNC.fig: No such file or directory.
Error in ==> hgload at 44
fileVars = load(filename,'-mat');
Error in ==> openfig at 89
[figs, oldvis] = hgload(filename, struct('Visible','off'));
Error in ==> gui_mainfcn>local_openfig at 206
gui_hFigure = openfig(name, singleton);
Error in ==> gui_mainfcn at 94
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt);
Error in ==> ADD_CALL_FUNC at 19
gui_mainfcn(gui_State, varargin{:});
>> for call_close error:
Warning: Could not find an exact (case-sensitive) match for 'library'. C:\MATLAB701\work\project\LIBRARY.M is a case-insensitive match and will be used instead. You can improve the performance of your code by using exact name matches and we therefore recommend that you update your usage accordingly. Alternatively, you can disable this warning using warning('off','MATLAB:dispatcher:InexactMatch').
> In CALL_CLOSE at 7
??? Error using ==> load
Unable to read file LIBRARY.fig: No such file or directory.
Error in ==> hgload at 44
fileVars = load(filename,'-mat');
Error in ==> openfig at 89
[figs, oldvis] = hgload(filename, struct('Visible','off'));
Error in ==> gui_mainfcn>local_openfig at 206
gui_hFigure = openfig(name, singleton);
Error in ==> gui_mainfcn at 94
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt);
Error in ==> LIBRARY at 26
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
Error in ==> CALL_CLOSE at 7
delete(library);
I am not able to find out the solution for any error.
"i dont know if i m having database toolbox or compiler or not"
Then you do not have them. You never forget buying the compiler: it is about as expensive as a family holiday on another continent.
"??? Input argument "handles" is undefined."
The most common cause of that is trying to double-click on a .fig file instead of running the .m file with the same name.
copying rimi's comment censored:
>> ver
-------------------------------------------------------------------------------------
MATLAB Version 7.0.1.24704 (R14) Service Pack 1
MATLAB License Number: ######### [SCd Censor]
Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 2)
Java VM Version: Java 1.4.2_04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
-------------------------------------------------------------------------------------
MATLAB Version 7.0.1 (R14SP1)
Bioinformatics Toolbox Version 1.1.1 (R14SP1)
Communications Toolbox Version 3.0.1 (R14SP1)
Control System Toolbox Version 6.1 (R14SP1)
Curve Fitting Toolbox Version 1.1.2 (R14SP1)
Data Acquisition Toolbox Version 2.5.1 (R14SP1)
Database Toolbox Version 3.0.1 (R14SP1)
Datafeed Toolbox Version 1.6 (R14SP1)
Excel Link Version 2.2.1 (R14SP1)
Extended Symbolic Math Version 3.1.1 (R14SP1)
Filter Design Toolbox Version 3.1 (R14SP1)
Financial Derivatives Toolbox Version 3.0.1 (R14SP1)
Financial Time Series Toolbox Version 2.1.1 (R14SP1)
Financial Toolbox Version 2.4.2 (R14SP1)
Fixed-Income Toolbox Version 1.1 (R14SP1)
Fixed-Point Toolbox Version 1.1 (R14SP1)
Fuzzy Logic Toolbox Version 2.2 (R14SP1)
GARCH Toolbox Version 2.0.1 (R14SP1)
Genetic Algorithm Direct Search Toolbox Version 1.0.2 (R14SP1)
Image Acquisition Toolbox Version 1.7 (R14SP1)
Image Processing Toolbox Version 5.0.1 (R14SP1)
Instrument Control Toolbox Version 2.1 (R14SP1)
Link for Code Composer Studio Version 1.3.2 (R14SP1)
MATLAB Builder for COM Version 1.1.2 (R14SP1)
MATLAB Builder for Excel Version 1.2.2 (R14SP1)
MATLAB Report Generator Version 2.1.1 (R14SP1)
MATLAB Web Server Version 1.2.3 (R14SP1)
Mapping Toolbox Version 2.0.3 (R14SP1)
Model Predictive Control Toolbox Version 2.1 (R14SP1)
Neural Network Toolbox Version 4.0.4 (R14SP1)
OPC Toolbox Version 1.1.1 (R14SP1)
Optimization Toolbox Version 3.0.1 (R14SP1)
Partial Differential Equation Toolbox Version 1.0.6 (R14SP1)
RF Toolbox Version 1.0.1 (R14SP1)
Robust Control Toolbox Version 3.0 (R14SP1)
Signal Processing Toolbox Version 6.2.1 (R14SP1)
Spline Toolbox Version 3.2.1 (R14SP1)
Statistics Toolbox Version 5.0.1 (R14SP1)
Symbolic Math Toolbox Version 3.1.1 (R14SP1)
System Identification Toolbox Version 6.1 (R14SP1)
Virtual Reality Toolbox Version 4.0.1 (R14SP1)
Wavelet Toolbox Version 3.0.1 (R14SP1)
>>

Sign in to comment.

More Answers (1)

After you extract the files from the .ZIP, rename all of them to lower case. For example, rename LIBRARY.FIG to library.fig
Once you have done that renaming, invoke the program with the command
library
If you encounter an error about logintimeout not existing, then you do not have the database toolkit.

14 Comments

i renamed all the files converting them to lowercase...but still when i run library file then there was a error as it had .M extension than .m extension...again case sensitive mismatch..then i disabled case sensitive mismatch using command warning off MATLAB:dispatcher:InexactMatch but then also it is showing the error
??? Error using ==> load
Unable to read file library.fig: No such file or directory.
Error in ==> hgload at 44
fileVars = load(filename,'-mat');
Error in ==> openfig at 89
[figs, oldvis] = hgload(filename, struct('Visible','off'));
Error in ==> gui_mainfcn>local_openfig at 206
gui_hFigure = openfig(name, singleton);
Error in ==> gui_mainfcn at 94
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt);
Error in ==> library at 28
gui_mainfcn(gui_State, varargin{:});
You need to rename the extensions as well as the basic file names.
Like I wrote above, "For example, rename LIBRARY.FIG to library.fig"
after updating extensions also...same error comes...
?? Error using ==> load
Unable to read file library.fig: No such file or directory.
Error in ==> hgload at 44
fileVars = load(filename,'-mat');
Error in ==> openfig at 89
[figs, oldvis] = hgload(filename, struct('Visible','off'));
Error in ==> gui_mainfcn>local_openfig at 206
gui_hFigure = openfig(name, singleton);
Error in ==> gui_mainfcn at 94
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt);
Error in ==> library at 28
gui_mainfcn(gui_State, varargin{:});
Please cd() to the directory that you have stored the files in, and report the output of the command
ls
For example, for me, after doing the renamings, I have
>> cd /tmp/LIBRARY
>> ls
add_books.asv call_issue.asv datarecieve.m issue_frame.asv my_closereq.asv return_call_func.m visible_off.m
add_books.m call_issue.m dname.mdb issue_frame.fig my_closereq.m search_books.asv visible_on.m
add_call_func.asv contents.asv helpcall.m issue_frame.m remove_call_func.fig search_books.m
add_call_func.fig contents.m issue_books.asv library.asv remove_call_func.m search_call_func.asv
add_call_func.m createnewuser.asv issue_books.m library.fig returnbook_call.asv search_call_func.fig
add_cds.m createnewuser.m issue_call_func.fig library.m returnbook_call.m search_call_func.m
call_close.m datainsert.m issue_call_func.m mutual_exclude.m return_call_func.fig visible_off.asv
THE SAME ERROR COMES
>> cd('C:\MATLAB701\work\project')
>> ls
. contents.m issuebooks.asv return_call_func.m welcome.fig
.. createnewuser.m issuebooks.fig returnbook_call.m welcome.m
add_books.m datarecieve.m issuebooks.m rimi.xls
add_call_func.m helpcall.m library.m search_books.m
add_cds.m issue_books.m mutual_exclude.m search_call_func.m
call_close.m issue_call_func.m my_closereq.m visible_off.m
call_issue.m issue_frame.m remove_call_func.m visible_on.m
??? Error using ==> load
Unable to read file library.fig: No such file or directory.
Error in ==> hgload at 44
fileVars = load(filename,'-mat');
Error in ==> openfig at 89
[figs, oldvis] = hgload(filename, struct('Visible','off'));
Error in ==> gui_mainfcn>local_openfig at 206
gui_hFigure = openfig(name, singleton);
Error in ==> gui_mainfcn at 94
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt);
Error in ==> library at 28
gui_mainfcn(gui_State, varargin{:});
You are missing a lot of the files from the .ZIP
Please re-download and re-extract.
yes...now i have all the files in my current directory...
now when i open library.m file library.fig opens
but now the problem is when i press the button for book_search
then GUI for that also opens but its not working..following error comes
??? Undefined command/function 'search_books'.
Error in ==> search_call_func>searchbook_Callback at 87
search_books(handles);
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> search_call_func at 20
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback.
for issue_book ....error:
?? Error using ==> eval
Undefined command/function 'getAutoCommit'.
Error in ==> database.get at 58
eval(['v.' p{i} ' = get' p{i} '(c.Handle);'])
Error in ==> issue_books at 20
get(conn, 'AutoCommit');
Error in ==> issue_call_func>issue_book_Callback at 124
issue_books(handles);
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> issue_call_func at 19
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback.
there is an error for every pushbutton
main page and exit are working fine...
but pushbuttons are not working..
for book_return error:
??? Error while evaluating uicontrol Callback.
Warning: Could not find an exact (case-sensitive) match for 'DATE'. C:\MATLAB701\toolbox\matlab\timefun\date.m is a case-insensitive match and will be used instead. You can improve the performance of your code by using exact name matches and we therefore recommend that you update your usage accordingly. Alternatively, you can disable this warning using warning('off','MATLAB:dispatcher:InexactMatch').
> In returnbook_call at 11
In return_call_func>return_book_Callback at 147
In gui_mainfcn at 75
In return_call_func at 42
??? Error using ==> eval
Undefined command/function 'getAutoCommit'.
Error in ==> database.get at 58
eval(['v.' p{i} ' = get' p{i} '(c.Handle);'])
Error in ==> returnbook_call at 14
get(conn, 'AutoCommit');
Error in ==> return_call_func>return_book_Callback at 147
returnbook_call(handles);
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> return_call_func at 42
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback.
for add_books error:
??? Error using ==> eval
Undefined command/function 'getAutoCommit'.
Error in ==> database.get at 58
eval(['v.' p{i} ' = get' p{i} '(c.Handle);'])
Error in ==> add_books at 22
get(conn, 'AutoCommit');
Error in ==> add_call_func>add_addbook_Callback at 103
add_books(handles);
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> add_call_func at 19
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback.
for remove_books ...nothing is happening...no error and nothing displaying also...
Seems there is error in every call back option. are you sure you have the database toolbox? go to matlab command window and type ver, you will find out what toolboxes you have. without the necessary toolbox it will not work.
It would seem fairly unlikely that you have licenses for all of those toolboxes: that would be well over $15000 worth of software.
Your MATLAB version is quite old; it might be fairly difficult to get the software to work with it.
so which version does it require the code to work...all the push buttons in the library fig are showing errors...what is the error but?? and cant it work now?
Sorry I do not know which release is needed to run that software. I do not have the database toolkit, so when I do anything meaningful in the GUI I get errors about the login routine not existing (the routine complained about is part of the database toolkit.)
hey..can u help me in this...what i think is that there is a database connection error..
when i run issue_call_func
then it shows the following error:
??? Error using ==> eval
Undefined command/function 'getAutoCommit'.
Error in ==> database.get at 58
eval(['v.' p{i} ' = get' p{i} '(c.Handle);'])
Error in ==> issue_books at 20
get(conn, 'AutoCommit');
Error in ==> issue_call_func>issue_book_Callback at 124
issue_books(handles);
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> issue_call_func at 19
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback.
>>
I do not have the database toolkit so this is not something I can investigate.

Sign in to comment.

Categories

Tags

Asked:

on 19 Feb 2012

Edited:

on 23 Oct 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!