Answered

Matlab data type inconsistence for cursor.data when running matlab code in MCR and Matlab studio

I no longer have access to the database toolbox, but it sounds like it could be related to the preference you have set for the "...

Matlab data type inconsistence for cursor.data when running matlab code in MCR and Matlab studio

I no longer have access to the database toolbox, but it sounds like it could be related to the preference you have set for the "...

plus de 9 ans ago | 0

Answered

undefined function 'corrplot

It looks like it was added in 2012A. I dont think there is anywhere to download just one function, too many dependencies, best t...

undefined function 'corrplot

It looks like it was added in 2012A. I dont think there is anywhere to download just one function, too many dependencies, best t...

plus de 9 ans ago | 1

Answered

Report Generator and standalone GUI - no workspace

Its been some years (and several releases) since I tried this, but I do recall being able to succesfully compile a GUI that incl...

Report Generator and standalone GUI - no workspace

Its been some years (and several releases) since I tried this, but I do recall being able to succesfully compile a GUI that incl...

plus de 9 ans ago | 1

Answered

Optimizing the 'drawnow' function for an oscillating circle

What are you doing in your function "circle"? If you are calling a function like "plot" over and over again, that is creating...

Optimizing the 'drawnow' function for an oscillating circle

What are you doing in your function "circle"? If you are calling a function like "plot" over and over again, that is creating...

plus de 9 ans ago | 1

Answered

Random Number Generator, lower numbers have higher chance

If you have a recent version of MATLAB (2012A) and the Statistics Toolbox check out the function "datasample" with the optional ...

Random Number Generator, lower numbers have higher chance

If you have a recent version of MATLAB (2012A) and the Statistics Toolbox check out the function "datasample" with the optional ...

plus de 9 ans ago | 0

Answered

Which MATLAB function is the best for building a decision tree with the CART algorithm?

I believe they are using the same algorithms. "classregtree" has been around for quite some time, "ClassificationTree.fit" is sy...

Which MATLAB function is the best for building a decision tree with the CART algorithm?

I believe they are using the same algorithms. "classregtree" has been around for quite some time, "ClassificationTree.fit" is sy...

plus de 9 ans ago | 0

Answered

Combine two different matrices to create one new matrix of all matrix combinations

To generate all combinations of K and M, check out the file exchange function "allcomb": < http://www.mathworks.com/matlabcent...

Combine two different matrices to create one new matrix of all matrix combinations

To generate all combinations of K and M, check out the file exchange function "allcomb": < http://www.mathworks.com/matlabcent...

plus de 9 ans ago | 0

Answered

Excel: Column Headers & Dates

The latest version of MATLAB (2012A) seems to have some better support. I havent personally played with this yet though. If y...

Excel: Column Headers & Dates

The latest version of MATLAB (2012A) seems to have some better support. I havent personally played with this yet though. If y...

plus de 9 ans ago | 0

Answered

data fitting starting from a coupled system of differential equations

I would start by figuring out how to simulate the system for some fixed values of K1, K2, etc. and sample this numerical solutio...

data fitting starting from a coupled system of differential equations

I would start by figuring out how to simulate the system for some fixed values of K1, K2, etc. and sample this numerical solutio...

plus de 9 ans ago | 0

Answered

ismember structure?

I like to use "intersect" for this, though "ismember" could do the trick similarly. I like intersect because I dont have to assu...

ismember structure?

I like to use "intersect" for this, though "ismember" could do the trick similarly. I like intersect because I dont have to assu...

plus de 9 ans ago | 0

Answered

correlation coefficient between cells

Something like this will help you find the index of where 'Y2007' shows in each cell of "Year": K>> find( strcmp(Year{1},'Y...

correlation coefficient between cells

Something like this will help you find the index of where 'Y2007' shows in each cell of "Year": K>> find( strcmp(Year{1},'Y...

plus de 9 ans ago | 0

Answered

Arithmetic to Functional Converter

Are you just trying to evaluate algebraic statements provided in string format? If so, try "eval": >> a = 4 a = ...

Arithmetic to Functional Converter

Are you just trying to evaluate algebraic statements provided in string format? If so, try "eval": >> a = 4 a = ...

plus de 9 ans ago | 0

Answered

How to show date on xaxis

datetick once you get used to "datetick", this may be helpful as well: <http://www.mathworks.com/matlabcentral/fileexchang...

How to show date on xaxis

datetick once you get used to "datetick", this may be helpful as well: <http://www.mathworks.com/matlabcentral/fileexchang...

plus de 9 ans ago | 0

| accepted

Answered

Mutex for Increment in Matlab Parfor?

Be careful using if statements without matching elses inside parfor loops. Ive experienced some strange behaviour in both 2011a ...

Mutex for Increment in Matlab Parfor?

Be careful using if statements without matching elses inside parfor loops. Ive experienced some strange behaviour in both 2011a ...

plus de 9 ans ago | 1

Question

ranking (ordering) values with repeats

Hello Community, Im hoping some of you have a clever solution to this problem. Im looking for fast and efficient way to rank ...

plus de 9 ans ago | 5 answers | 3

Answered

Synthesizing a piano sound

Very cool assignment. Look at something like this to get an idea on how to come up with an envelope: <http://www.mathworks...

Synthesizing a piano sound

Very cool assignment. Look at something like this to get an idea on how to come up with an envelope: <http://www.mathworks...

plus de 9 ans ago | 0

Answered

Matlab Builder NE exception with supposedly toolbox support?

I dont think you've run into any incompatabilities - just a bug. "Data_EGCITest.mat" is a mat file used by the egcitest funct...

Matlab Builder NE exception with supposedly toolbox support?

I dont think you've run into any incompatabilities - just a bug. "Data_EGCITest.mat" is a mat file used by the egcitest funct...

plus de 9 ans ago | 0

Answered

MCR executable different than original code

Whenever I run into errors like this using objects in a deployed appllication, I try the fix described here: http://www.mathw...

MCR executable different than original code

Whenever I run into errors like this using objects in a deployed appllication, I try the fix described here: http://www.mathw...

plus de 9 ans ago | 0

Answered

GATool to solve Assignment Problem

<http://www.mathworks.com/help/releases/R2011a/toolbox/optim/ug/bqt8msp.html>

GATool to solve Assignment Problem

<http://www.mathworks.com/help/releases/R2011a/toolbox/optim/ug/bqt8msp.html>

plus de 9 ans ago | 0

Answered

Addition of time series' values in array

The double level of "." indexing could cause an issue, but if it was just single level this trick might work: >> foo(1).dat...

Addition of time series' values in array

The double level of "." indexing could cause an issue, but if it was just single level this trick might work: >> foo(1).dat...

plus de 9 ans ago | 0

Answered

xlsread converting TRUE to 1

Interesting - I never ran into this before but just reproduced it myself. I dont think the issue is with MATLAB, but with Excel....

xlsread converting TRUE to 1

Interesting - I never ran into this before but just reproduced it myself. I dont think the issue is with MATLAB, but with Excel....

plus de 9 ans ago | 0

Answered

Using interp1 to find values of parabolic data.

It's been awhile since Ive done this, but I think you can get what you are looking for directly from the ode solvers using "even...

Using interp1 to find values of parabolic data.

It's been awhile since Ive done this, but I think you can get what you are looking for directly from the ode solvers using "even...

plus de 9 ans ago | 0

Solved

Cell joiner

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

plus de 9 ans ago

Solved

Pattern matching

Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

plus de 9 ans ago

Solved

Fibonacci sequence

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

plus de 9 ans ago

Solved

How to find the position of an element in a vector without using the find function

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

plus de 9 ans ago

Solved

Swap the input arguments

Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

plus de 9 ans ago