Rank: 287 based on 352 downloads (last 30 days) and 8 files submitted
photo

Matt Dunham

E-mail
Company/University
Xprt Integration
Lat/Long
49.26, -123.25

Personal Profile:

http://ca.linkedin.com/pub/matt-dunham/75/185/47a


 

Watch this Author's files

 

Files Posted by Matt Dunham View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Mar 2010 Screenshot graphViz4Matlab Display a directed or undirected graph in a Matlab figure window. Author: Matt Dunham specialized, plotting, graph, directed graph, undirected graph, graphviz 37 6
  • 4.71429
4.7 | 7 ratings
04 Feb 2010 Screenshot Matlab 2008a Advanced Tutorials This is a series of Matlab 2008a Tutorials on topics such as the new Object Oriented System Author: Matt Dunham whitepaper, article, paper, tutorial, 2008a, object oriented progr... 22 0
16 Oct 2008 Screenshot compileAndRun Easily compile and run a matlab function for significant speed improvements. Author: Matt Dunham compile, compiled matlab, eml, emlmex, mex, speed up tricks 5 1
  • 5.0
5.0 | 1 rating
25 Aug 2008 Screenshot Figure Window Organization Automatically organize figure windows on the screen Author: Matt Dunham figures, organize, display, windows, grid 11 3
25 Aug 2008 Screenshot Toolbox Dependency Report Generate a visual report of the files in your project that depend on a toolbox Author: Matt Dunham path, directories, files, deptool, file dependency, report 12 1
  • 3.0
3.0 | 1 rating
Comments and Ratings by Matt Dunham View all
Updated File Comments Rating
02 May 2010 MATLAB Goto Statement The one and only. Author: Husam Aldahiyat

Comments like Bruno's anger me. The author clearly states that is for 'entertainment' only. I for one will look at this function for ideas on solving related problems. Often efficiency is not a major issue when writing meta tools to analyze code, etc.

05 Mar 2010 serialize Create matlab code from a variable Author: Jøger Hansegård

It would be nice if it also serialized function handles - the following changes would do the trick.

elseif isa(v, 'function_handle')
val = serializehandle(v);

function val = serializehandle(v)
val = sprintf('str2func(''%s'')', func2str(v));
end

03 Mar 2010 serialize Create matlab code from a variable Author: Jøger Hansegård

This is fantastic - exactly what I was looking for. Thanks

Comments and Ratings on Matt Dunham's Files View all
Updated File Comment by Comments Rating
21 Dec 2014 Matlab Weka Interface Matlab interface for Weka Classifiers Author: Matt Dunham Asdrubal Lopez Chau

There is a problem with the source code I sent (some days ago). I am working on it.

19 Dec 2014 Matlab Weka Interface Matlab interface for Weka Classifiers Author: Matt Dunham Asdrubal Lopez Chau

Complete example:

clc
clear
%Load from disk
fileDataset = 'cm1.arff';
myPath = 'C:\Users\Asdrubal\Google Drive\Respaldo\DoctoradoALCPC\Doctorado ALC PC\AlcMobile\AvTh\MyPapers\Papers2014\UnderOverSampling\data\Skewed\datasetsKeel\';
javaaddpath('C:\Users\Asdrubal\Google Drive\Respaldo\DoctoradoALCPC\Doctorado ALC PC\AlcMobile\JarsForExperiments\weka.jar');
wekaOBJ = loadARFF([myPath fileDataset]);
%Transform from data into Matlab
[data, featureNames, targetNDX, stringVals, relationName] = ...
weka2matlab(wekaOBJ,'[]');
%Create testing and training sets in matlab format (this can be improved)
[tam, dim] = size(data);
idx = randperm(tam);
testIdx = idx(1 : tam*0.3);
trainIdx = idx(tam*0.3 + 1:end);
trainSet = data(trainIdx,:);
testSet = data(testIdx,:);
%Trasnform the training and the testing sets into the Weka format
testingWeka = matlab2weka('testing', featureNames, testSet);
trainingWeka = matlab2weka('training', featureNames, trainSet);
%Now evaluate classifier
import weka.classifiers.*;
import java.util.*
wekaClassifier = javaObject('weka.classifiers.trees.J48');
wekaClassifier.buildClassifier(trainingWeka);
e = javaObject('weka.classifiers.Evaluation',trainingWeka);
myrand = Random(1);
plainText = javaObject('weka.classifiers.evaluation.output.prediction.PlainText');
buffer = javaObject('java.lang.StringBuffer');
plainText.setBuffer(buffer)
bool = javaObject('java.lang.Boolean',true);
range = javaObject('weka.core.Range','1');
array = javaArray('java.lang.Object',3);
array(1) = plainText;
array(2) = range;
array(3) = bool;
e.crossValidateModel(wekaClassifier,testingWeka,10,myrand,array)%U
e.toClassDetailsString

04 Oct 2014 Matlab Weka Interface Matlab interface for Weka Classifiers Author: Matt Dunham mike

I am new to matlab.
I ve just downloaded weka toolkit because i want to load data from arff file.
How do i use loadARFF function in my script? can i find more info and examples somewhere?

08 Sep 2014 Matlab Weka Interface Matlab interface for Weka Classifiers Author: Matt Dunham chen

Hi, Jing Wang, I have met the same problem with you. Have you solved the problem? Please help me, thank you!

08 Jul 2014 View Class Inheritance Hierarchy View inheritance hierarchy of a Matlab OO project Author: Matt Dunham Daniel Golden

Broken in Matlab 2014b (preview). I updated the code to ignore class parents that begin with "matlab."; see https://gist.github.com/drdan14/49bb6eade8540aecf7d9

Contact us