Respondida
Principle Component Analysis
If your data are in the matrix |X| and |ndim| is the number of attributes you want to retain, then you can use [residuals,r...

alrededor de 15 años hace | 0

| aceptada

Respondida
Searching the contents of a file with items in a second file
The file reading is fine (except that it would be better to use len1 = length(A) len2 = length(B) so that |len1| and |len2...

alrededor de 15 años hace | 0

Respondida
Linear programming otimization table error
Yes, this ominous-sounding message just means that the optimal solution has been reached. If you don't like it, you could use |o...

alrededor de 15 años hace | 0

| aceptada

Respondida
Characters linear search
You can use <http://www.mathworks.com/help/techdoc/matlab_prog/br04bw6-98.html#br1zm43-1 cell arrays> and <http://www.mathworks....

alrededor de 15 años hace | 0

| aceptada

Respondida
How to add a title and logo to a figure with multiple plots?
The title part is easy enough. Just download <http://www.mathworks.com/matlabcentral/fileexchange/7772-suplabel suplabel> from t...

alrededor de 15 años hace | 1

Respondida
loop error
You're creating T on each iteration of the loop. Remove T = cell(a,L); and put T = cell(N-L*4,L); above |for a=1...

alrededor de 15 años hace | 0

| aceptada

Respondida
Genetic Algorithm
The first thing you need is to read in the data using |xlsread| and put it in the variable |Measured_data|. Then you can create ...

alrededor de 15 años hace | 0

Respondida
Publish function code
I haven't found an easy way to do this, and I hope someone else can improve on my answer. Here's my approach, which requires som...

alrededor de 15 años hace | 0

| aceptada

Respondida
creating GUI for my program
You can find a list of resources for learning how to use GUIs at <http://blogs.mathworks.com/steve/matlab-gui-programming-resour...

alrededor de 15 años hace | 0

Respondida
increase size of uitable dynamically
Here is a simple example of a function that will create a table with a blank row and add rows as you go. I have chosen to add a ...

alrededor de 15 años hace | 0

Respondida
Overload get(0, 'MonitorPositions')
The underlying code is Java. You could try looking in the <http://undocumentedmatlab.com/ Undocumented Matlab site>.

alrededor de 15 años hace | 1

Respondida
Overload get(0, 'MonitorPositions')
If the code is positioning windows, maybe you can follow the advice of <http://www.mathworks.com/support/solutions/en/data/1-324...

alrededor de 15 años hace | 1

Respondida
generating the list of permutations
See <http://www.mathworks.com/help/techdoc/ref/perms.html All possible permutations>.

alrededor de 15 años hace | 0

| aceptada

Respondida
Expected value in matlab?
In general, no. It depends on the statistical distribution for these numbers (see, for example, <http://en.wikipedia.org/wiki/Ex...

alrededor de 15 años hace | 2

Respondida
Overload get(0, 'MonitorPositions')
Judging by the documentation for <http://www.mathworks.com/help/techdoc/ref/rootobject_props.html Root properties>, MATLAB does ...

alrededor de 15 años hace | 1

Respondida
error for Index exceeds matrix dimensions
You just need to replace those round brackets by curly ones: for k=1:length(X0); %X0 is a 1xN cell,N is an unknown number. ...

alrededor de 15 años hace | 0

Respondida
problem solving a partial differential equation using pdepe
The problem is that you use global variables in your functions without declaring them in your command window first. Put globa...

alrededor de 15 años hace | 0

| aceptada

Respondida
Multicollinearity / Collinearity Problem
<http://www.mathworks.com/products/statistics/demos.html?file=/products/demos/shipping/stats/plspcrdemo.html Partial Least Squar...

alrededor de 15 años hace | 1

Respondida
fsolve with three anonymous functions
The full message is ??? Error using ==> lsqfcnchk at 117 FUN must be a function or an inline object; or, FUN may be a cell a...

alrededor de 15 años hace | 0

Respondida
Writing "this" class' properties?
I'm just guessing at what you're trying to do, but here is a different version of your method: function y=ChangeProperties(th...

alrededor de 15 años hace | 1

| aceptada

Respondida
Help with basic code
Here is some code that solves the problem and also illustrates an important programming principle: when you create a function, i...

alrededor de 15 años hace | 1

| aceptada

Respondida
Help with basic code
@Susan, thank you for formatting the code nicely. I wish more people would in their questions! I notice your function doesn't ...

alrededor de 15 años hace | 0

Respondida
Email retrieval through Matlab
Check out <http://www.mathworks.com/matlabcentral/newsreader/view_thread/296074 this previous discussion>.

alrededor de 15 años hace | 1

Respondida
Textures for bar plots
<http://www.mathworks.com/matlabcentral/fileexchange/30733-hatchfill Hatchfill>, from the File Exchange, finds the patch objects...

alrededor de 15 años hace | 0

Respondida
Linear programming (having upper and lower limit)
I assume that the above code is not working because you don't have the <http://www.mathworks.com/products/optimization/ Optimiza...

alrededor de 15 años hace | 0

Respondida
Direction of display of loop
How about this? t = linspace(0,2*pi); x = cos(t)*sqrt(5); y = sin(t)*sqrt(5/2); plot(x,y); hold on quiver(x(1),y(1),x(2...

alrededor de 15 años hace | 0

| aceptada

Respondida
Anyone listening for a particular event?
@Joan, This is an interesting problem! I don't know what the ideal solution is, but maybe you could create three classes: |subsc...

alrededor de 15 años hace | 1

| aceptada

Respondida
integrating discontinuous function
Did you define your symbolic variables first? syms a x y p You'll need to give a numeric value for |p| or else |int| won't b...

alrededor de 15 años hace | 0

Respondida
Efficiently converting a 3d matrix to a 2d matrix
You can do it with cell arrays: Acell = num2cell(A,[1 2]); % put each page of A into a cell Acell = reshape(Acell,size(A,3),1...

alrededor de 15 años hace | 5

Respondida
Goal Seeking
If you have the Symbolic Toolbox, <http://www.mathworks.com/help/toolbox/optim/ug/fgoalattain.html fgoalattain> will do it.

alrededor de 15 años hace | 0

Cargar más