Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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....

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 1

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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 ...

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

Beantwortet
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...

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 2

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

etwa 15 Jahre vor | 1

Beantwortet
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. ...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 1

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 5

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

etwa 15 Jahre vor | 0

Mehr laden