1. https://www.mathworks.com/matlabcentral/fileexchange/6626-passive-mode-ftp-in-matlab?focused=5174243&tab=function에서 프로그램을 다운받는다

2. matlab prompt에 'which ftp'라고 입력하여 built-in ftp함수가 있는 폴더를 알아낸다.

나의 경우엔,

C:\Program Files\MATLAB\R2016a\toolbox\matlab\iofun\@ftp\ftp.m  % ftp constructor

3. C:\Program Files\MATLAB\R2016a\toolbox\matlab\iofun 로 이동하여 @ftp라는 폴더를 복사하여 임의의 폴더에 저장한다. e.g., C:\myWork\myFunctions\@ftp

 

4. matlab prompt에 아래와 같이 입력하여 path를 저장한다

       addpath('C:\myWork\myFunctions')
       savepath

5. PassiveFTP/connect.m 을 'C:\myWork\myFunctions/@ftp/private/'에 복사한다

6. PassiveFTP/active.m dataMode.m  ftp.m  pasv.m 을 'C:\myWork\myFunctions/@ftp/에 복사한다.

 

7. matlab을 종료했다가 다시 실행한 후, rehash toolboxcache을 입력한다.

 

8.

myFTP = ftp('ftp.mathworks.com')
    pasv(myFTP)
    dataMode(myFTP)  % this command simply shows the current mode

    you can return to normal/active mode by issuing the command
    active(myFTP)

 

 

 

 

 

 

 

 

 

 

 

Posted by uniqueone
,

Image Processing and Computer Vision Examples
https://www.mathworks.com/examples/product-group/matlab-image-processing-and-computer-vision?s_eid=PSM_gen

'Matlab > Source Code' 카테고리의 다른 글

Passive Mode FTP in MATLAB  (0) 2017.04.04
Top 10 most popular MATLAB & Simulink file downloads from last year  (0) 2017.03.18
random forest using matlab  (0) 2017.03.12
Some Matlab Code  (0) 2017.03.07
plot standard deviation and mean  (0) 2017.02.08
Posted by uniqueone
,
Here's a list of the Top 10 most popular MATLAB & Simulink file downloads from last year. How many have you used? http://ow.ly/ygSn30a0rMo
Posted by uniqueone
,

 https://www.kaggle.com/c/titanic/discussion/6288

 

Hello,

 

Here's a matlab code to dowload the data and try some random forests with k-fold validation. Extensive test on the numbers of trees and mtry suggest default parameters are fine and the model robust to changing these hyperparameters (including the k for k-fold).

 

Two questions please:

1) do you see why the performance are so different for train and test set? k-fold cross validation suggest the model should get 0.82, but on the test set it gets 0.74, which is below 0.82 minus 3 SD (computed through 30 random repetitions). Does this sound likely or would you guess it indicates a bug somewhere?

 

2) I'm trying to set the random generator so as to make my prediction deterministic, however something sucks. Matlab random generators seems to behave fine (namely, A=rand(3,2) produces the very same numbers again and again), but overall the model still produce random predictions. I suspect the mex files don't rely on the random generator setted by matlab. Do you see a way to deal with this issue?  

 

Regards,

 

PS:

The train.csv and test.csv are assumed to be in a folder "data", with all *.m in its parent file. In addition to the three first attached files (get_titanic... and pred.m), one need to get the mex and m file available through:

https://code.google.com/p/randomforest-matlab/downloads/list

(if your system fits mine, you can probably just take the attached files)

 

Posted by uniqueone
,
http://people.cs.uchicago.edu/~dinoj/matlab/

 

 

 

Some Matlab Code

This collection of Matlab code is brought to you by the phrases "caveat emptor" and "quid quid latine dictum sit, altum videtur", and by the number 404.

Wrapper Code for LIBSVM

batchtest.m : Runs batches of train+test tasks using LIBSVM (Chang & Lin 2000), including model selection for the RBF kernel. Uses svmlwrite.m (by Anton Schwaighofer) and getcm.m. If you ask for class probability estimates, you will also need readprobest.m.

nfolds.m : Combines makefolds.m and batchtest.m

readprobest.m : Reads class probability estimates output when you use the "-b" option with LIBSVM.

splitbysomething.m : Like batchtest, but allows you to create different classifiers for different partitions of all the data. It requires the function ispartition.m.

General Machine Learning

makefolds.m : creates indices of train and test sets for each of n folds for deterministic cross-validation.

makesplits.m : partitions a vector by its values. makefolds could be made shorter if it made calls to makesplits, but I'm not going to change that (now).

getcm.m : Gets confusion matrices, accuracy, precision, recall, F-score, from actual and predicted labels.

precrec.m : Produces precision-recall and ROC curves given true labels and real-valued classifier output. Only for binary classifiers. Uses getcm.

choosebestscore.m : Chooses highest score (given precomputed scores) of elements in sequences.

revhmm.m : Does Viterbi decoding given posteriors.

Manifold Stuff

KADRE.zip : Kick-ass dimensionality reduction (versions of Laplacian Eigenmaps and Isomap that use the Cover Tree algorithm to create the nearest neighbor graph... covertree code only works on linux)

Speech Stuff

makepitchtier.m : creates PitchTier file (for Praat) given measurement times and values.

Visualization / Partiview

Ndaona : package for producing partiview files for interactive 3d or 3d+time models

partiviewangles.m Calculates coordinates Rx and Ry required by Partiview to position a camera. (Very useful.... but use tfm.pl instead.)

Sequence Data

For a description of the SEQ (and FLAT) formats that I use to store data for sequential classification, see my Sequential Data / Classification page.

seqread.m : reads from a file with SEQ data to a SEQ Matlab structure.

seqread.m : writes to a file with SEQ data from a SEQ Matlab structure.

seq2flat : converts from a SEQ Matlab structure to a FLAT Matlab structure.

seqkeepcols.m : converts from a SEQ Matlab structure to another SEQ Matlab structure but with only selected columns.

Tone Recognition

For a description of the PWS (Phrase-Word-Syllable) format that I use to store data for tone recognition, see my Tone Recognition page.

pws2textgrid.m : creates Praat-formatted TextGrid files, with three tiers for Phrase, Word, and Syllable, of a PWS structure (or a cell array thereof).

textgrid2pws.m : reads Praat-formatted TextGrid files into a PWS structure. Good for replacing automatic alignments with manually corrected alignments. (Remember to press SHIFT while doing the manual alignment so that boundaries across different tiers remain aligned!)

'Matlab > Source Code' 카테고리의 다른 글

Top 10 most popular MATLAB & Simulink file downloads from last year  (0) 2017.03.18
random forest using matlab  (0) 2017.03.12
plot standard deviation and mean  (0) 2017.02.08
matlab dist function  (0) 2017.01.17
matlab de2bi source code  (0) 2017.01.17
Posted by uniqueone
,

https://www.mathworks.com/matlabcentral/answers/10428-standard-deviation-and-mean

 

https://www.mathworks.com/help/matlab/ref/errorbar.html

 

Hello everybody,

I have 36 values of mean and their standard deviation. 12 values falls between 38 to 45, another 12 values falls between 53 to 60 and another 12 values fall between70 to 75. I just want to show in a graph clearly the mean values and their standard deviation. I tried so many but none of them are really clear bcoz, I have values like 43.77, 43.10, 43.5... some close values.. how can I do that.. help me

 

 

----------------------------------------------------------

 

You can use errorbar:

% The data

Y = [rand(12,1)*7 + 35; rand(12,1)*7 + 53; rand(12,1)*5 + 70];

% The standard deviations

E = rand(36,1)*10 + 3;

% Mean values with error bars

errorbar(Y,E,'x')

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'Matlab > Source Code' 카테고리의 다른 글

Top 10 most popular MATLAB & Simulink file downloads from last year  (0) 2017.03.18
random forest using matlab  (0) 2017.03.12
Some Matlab Code  (0) 2017.03.07
matlab dist function  (0) 2017.01.17
matlab de2bi source code  (0) 2017.01.17
Posted by uniqueone
,

dist_func.m

 

matlab dist function

'Matlab > Source Code' 카테고리의 다른 글

Top 10 most popular MATLAB & Simulink file downloads from last year  (0) 2017.03.18
random forest using matlab  (0) 2017.03.12
Some Matlab Code  (0) 2017.03.07
plot standard deviation and mean  (0) 2017.02.08
matlab de2bi source code  (0) 2017.01.17
Posted by uniqueone
,

de2bi1.m

matlab de2bi source code

'Matlab > Source Code' 카테고리의 다른 글

Top 10 most popular MATLAB & Simulink file downloads from last year  (0) 2017.03.18
random forest using matlab  (0) 2017.03.12
Some Matlab Code  (0) 2017.03.07
plot standard deviation and mean  (0) 2017.02.08
matlab dist function  (0) 2017.01.17
Posted by uniqueone
,