資源簡介
香農編碼、霍夫曼編碼比較的matlab源代碼,對香農編碼、霍夫曼編碼進行了比較明確的比較。

代碼片段和文件信息
function?varargout?=?code(varargin)
%?CODE?M-file?for?code.fig
%??????CODE?by?itself?creates?a?new?CODE?or?raises?the?existing
%??????singleton*.
%
%??????H?=?CODE?returns?the?handle?to?a?new?CODE?or?the?handle?to
%??????the?existing?singleton*.
%
%??????CODE(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?CODE.M?with?the?given?input?arguments.
%
%??????CODE(‘Property‘‘Value‘...)?creates?a?new?CODE?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?code_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?code_OpeningFcn?via?varargin.
%
%??????*See?GUI?Options?on?GUIDE‘s?Tools?menu.??Choose?“GUI?allows?only?one
%??????instance?to?run?(singleton)“.
%
%?See?also:?GUIDE?GUIDATA?GUIHANDLES
%?Edit?the?above?text?to?modify?the?response?to?help?code
%?Last?Modified?by?GUIDE?v2.5?26-May-2011?20:58:04
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@code_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@code_OutputFcn?...
???????????????????‘gui_LayoutFcn‘??[]??...
???????????????????‘gui_Callback‘???[]);
if?nargin?&&?ischar(varargin{1})
????gui_State.gui_Callback?=?str2func(varargin{1});
end
if?nargout
????[varargout{1:nargout}]?=?gui_mainfcn(gui_State?varargin{:});
else
????gui_mainfcn(gui_State?varargin{:});
end
%?End?initialization?code?-?DO?NOT?EDIT
%?---?Executes?just?before?code?is?made?visible.
function?code_OpeningFcn(hobject?eventdata?handles?varargin)
%?This?function?has?no?output?args?see?OutputFcn.
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?varargin???command?line?arguments?to?code?(see?VARARGIN)
%?Choose?default?command?line?output?for?code
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?code?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?code_OutputFcn(hobject?eventdata?handles)?
%?varargout??cell?array?for?returning?output?args?(see?VARARGOUT);
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?Get?default?command?line?output?from?handles?structure
varargout{1}?=?handles.output;
function?edit1_Callback(hobject?eventdata?handles)
%?hobject????handle?to?edit1?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?Hints:?get(hobject‘String‘)?returns?contents?of?edit1?as?tex
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????18640??2011-05-26?21:02??香農-哈弗曼\code.asv
?????文件??????14474??2011-05-26?21:14??香農-哈弗曼\code.fig
?????文件??????18640??2011-05-26?21:03??香農-哈弗曼\code.m
?????文件???????1158??2011-05-26?20:30??香農-哈弗曼\coding_xn.m
?????文件???????3075??2011-05-26?20:30??香農-哈弗曼\huffman.m
?????文件?????????69??2011-05-26?20:30??香農-哈弗曼\說明.txt
?????目錄??????????0??2011-05-28?17:18??香農-哈弗曼
-----------?---------??----------?-----??----
????????????????56056????????????????????7
評論
共有 條評論