Groups
Sign in
Groups
MathTools
Conversations
About
Send feedback
Help
MathTools
Contact owners and managers
1–22 of 22
Mark all as read
Report group
0 selected
Hiho
, …
anon
4
1/9/17
Conversion between Euler angles and rotation matrix --- Matlab code
This code is buggy. Compare to http://nghiaho.com/uploads/code/rotation_matrix_demo.m On Friday,
unread,
Conversion between Euler angles and rotation matrix --- Matlab code
This code is buggy. Compare to http://nghiaho.com/uploads/code/rotation_matrix_demo.m On Friday,
1/9/17
Haifeng GONG
8/30/10
Save a Matlab figure without showing it
Sometimes, we need to save a Matlab figure without showing it. For example, if we use Matlab via ssh,
unread,
Save a Matlab figure without showing it
Sometimes, we need to save a Matlab figure without showing it. For example, if we use Matlab via ssh,
8/30/10
Haifeng GONG
5/26/10
Get list of files in a directory and its subdirectories
function fileList = getAllFiles(dirName) dirData = dir(dirName); %# Get the data for the current
unread,
Get list of files in a directory and its subdirectories
function fileList = getAllFiles(dirName) dirData = dir(dirName); %# Get the data for the current
5/26/10
Liang Wang
5/19/10
Re: Digest for mathtools@googlegroups.com - 4 Messages in 4 Topics
Good. Thank you for sharing. 2010/5/20 <mathtool...@googlegroups.com> Today's Topic
unread,
Re: Digest for mathtools@googlegroups.com - 4 Messages in 4 Topics
Good. Thank you for sharing. 2010/5/20 <mathtool...@googlegroups.com> Today's Topic
5/19/10
Haifeng GONG
5/26/10
List all functions called in a piece of code
profile on % your code comes here p = profile('info'); flag = zeros(length(p.FunctionTable),
unread,
List all functions called in a piece of code
profile on % your code comes here p = profile('info'); flag = zeros(length(p.FunctionTable),
5/26/10
Haifeng GONG
5/19/10
Switching current figure by name silently
function hr = get_figure(name) % If we switch current figure in a loop, Matlab brings the figure to
unread,
Switching current figure by name silently
function hr = get_figure(name) % If we switch current figure in a loop, Matlab brings the figure to
5/19/10
Haifeng GONG
5/19/10
KL Divergence
function v = kldivergence(hp, hq) v = sum(hp.* log( (hp+1e-6)./(hq+1e-6) ) ); if v<0 v=0; end --
unread,
KL Divergence
function v = kldivergence(hp, hq) v = sum(hp.* log( (hp+1e-6)./(hq+1e-6) ) ); if v<0 v=0; end --
5/19/10
Haifeng GONG
5/19/10
Max 2d for Matlab
function [Val, Ind1, Ind2]=max2d(Mat); %-------------------------------------------------------------
unread,
Max 2d for Matlab
function [Val, Ind1, Ind2]=max2d(Mat); %-------------------------------------------------------------
5/19/10
Haifeng GONG
5/19/10
Save Matlab figure as shown exactly
figure('Name', 'fig name', 'Position', [185 55 766 887]); % draw code here
unread,
Save Matlab figure as shown exactly
figure('Name', 'fig name', 'Position', [185 55 766 887]); % draw code here
5/19/10
Hiho
4/10/08
Tiling images on axis -- Matab code
%This is a useful function for tiling images on axis function tileimages(pc, ccount, rcount, w, h) if
unread,
Tiling images on axis -- Matab code
%This is a useful function for tiling images on axis function tileimages(pc, ccount, rcount, w, h) if
4/10/08
Hiho
3/31/08
List of popular MathTools
Open Source FreeMat http://freemat.sourceforge.net/ Maxima http://maxima.sourceforge.net/ Scilab http
unread,
List of popular MathTools
Open Source FreeMat http://freemat.sourceforge.net/ Maxima http://maxima.sourceforge.net/ Scilab http
3/31/08
Hiho
3/31/08
MathTools Chinese FAQ
############################################################################# # 数学工具FAQ # # MathTools
unread,
MathTools Chinese FAQ
############################################################################# # 数学工具FAQ # # MathTools
3/31/08
Hiho
3/31/08
Fitting histogram
binnum = 262; binsize = (max(points)-min(points)/binnum *ones([1 binnum]); mbinsize = mean(binsize);
unread,
Fitting histogram
binnum = 262; binsize = (max(points)-min(points)/binnum *ones([1 binnum]); mbinsize = mean(binsize);
3/31/08
Hiho
3/31/08
Compact subplot
function compact_subplot(nrow, ncol, np) %This function produce more compact subplot figures. c = rem
unread,
Compact subplot
function compact_subplot(nrow, ncol, np) %This function produce more compact subplot figures. c = rem
3/31/08
Hiho
2/8/08
Re: Ref counting and mex programmin
In matlab, when we do A = B, A and B will point to the same matrix. The copy is postponed to the
unread,
Re: Ref counting and mex programmin
In matlab, when we do A = B, A and B will point to the same matrix. The copy is postponed to the
2/8/08
Hiho
10/28/07
Matlab code example for PCA
Most useful Matlab command list: Visualization: plot, scatter, scatter3, quiver, quiver3, image, hist
unread,
Matlab code example for PCA
Most useful Matlab command list: Visualization: plot, scatter, scatter3, quiver, quiver3, image, hist
10/28/07
Hiho
10/28/07
TexMacs and LED
TeXmacs (www.texmacs.org) is an application for scientific writing, which can produce beautiful
unread,
TexMacs and LED
TeXmacs (www.texmacs.org) is an application for scientific writing, which can produce beautiful
10/28/07
Hiho
10/28/07
View this page "MathTools"
Dear all, I am now do something to improve our group. Click on http://groups.google.com/group/
unread,
View this page "MathTools"
Dear all, I am now do something to improve our group. Click on http://groups.google.com/group/
10/28/07
jianti...@gmail.com
3/16/07
数学之美 系列一 -- 统计语言模型
转载 Google 科学家吴军写的《数学之美》系列文章,介绍数学在信息检索和自然语言处理中的主导作用和奇妙应用。 发表者: 吴军, Google 研究员前言也许大家不相信,数学是解决信息检索和自然语言
unread,
数学之美 系列一 -- 统计语言模型
转载 Google 科学家吴军写的《数学之美》系列文章,介绍数学在信息检索和自然语言处理中的主导作用和奇妙应用。 发表者: 吴军, Google 研究员前言也许大家不相信,数学是解决信息检索和自然语言
3/16/07
haifen...@gmail.com
12/18/06
Boost library and matrices
The boost C++ library (http://www.boost.org) prodives a multi-dimensional array library: multi_array,
unread,
Boost library and matrices
The boost C++ library (http://www.boost.org) prodives a multi-dimensional array library: multi_array,
12/18/06
Haifeng Gong
6/2/05
2 useful matlab function
valist=whos; flist=dir('*.*'); -- :-)
unread,
2 useful matlab function
valist=whos; flist=dir('*.*'); -- :-)
6/2/05
Haifeng Gong
6/2/05
Clear all variables except a specified variable in matlab
allvars = whos; for ii=1:length(allvars) if( ~strcmp(allvars(ii).name , 'vartokeep' )
unread,
Clear all variables except a specified variable in matlab
allvars = whos; for ii=1:length(allvars) if( ~strcmp(allvars(ii).name , 'vartokeep' )
6/2/05