Réponse apportée
Building matrix using vectors?Easy question.
Your question suggests you have a cell array with vectors, so you can/should make use of comma-separated list expansion. If all ...

presque 13 ans il y a | 0

Réponse apportée
Nonlinear regression in case of many fits
First, note this x = [1 6 9] x.^-1/3 x.^(-1/3) (x.^-1)/3 Then, you do not need to store z and w. Here is a more...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
The advantages of MATLAB over other programing languges for Image Processing
# flexibility # documentation

presque 13 ans il y a | 0

Réponse apportée
OUTLIERS and DUMMY VARIABLEs
See my answer on CSSM: http://www.mathworks.nl/matlabcentral/newsreader/view_thread/330636

presque 13 ans il y a | 0

A résolu


Negative matrix
Change the sign of all elements in given matrix.

presque 13 ans il y a

Réponse apportée
How to find column and row indexes of items that are +-inf or Nan ?
Using ISFINITE is fine. You just have to negate the outcome Here is a small example, showing all the steps: M = [1 Inf 3...

presque 13 ans il y a | 1

Réponse apportée
Normalizing by means of zero-mean
The problem is with the values you pass to IMSHOW. So, first read the help of imshow carefully doc imshow To fix this in...

presque 13 ans il y a | 1

Réponse apportée
How to replace values?
Here's a one-liner: values = [0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1] values(max(min(bsxfun(@plus,reshape(find(values==1),[...

presque 13 ans il y a | 0

Réponse apportée
How to convert cell to matrix
Here is a suggestion C = {[1 2 ;3 4],[11 12 13].',100:106} % a cell array % make sure all elements are column vectors ...

presque 13 ans il y a | 1

Réponse apportée
Getting rows that correspond to second occurrence of a value
x(strfind([1 diff(x(:,1)).']==0,[0 1])+1,2)

presque 13 ans il y a | 4

Réponse apportée
use of the below statements....
Matlab comes with great help help newsom help minmax help double help reshape ...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
MATLAB command for Union of an arbitrary collection of sets
Here is a possible solution: function U = munion (varargin) % MUNION - union of multiple sets % U = UNION(S1,S2,S3, ....

presque 13 ans il y a | 0

A soumis


Sylvester Matrix
SYLVESTER - Sylvester matrix of two polynomials (v3.0, june 2013)

environ 13 ans il y a | 2 téléchargements |

0.0 / 5

Réponse apportée
How to pick next value from vectors?
To do this for multiple values, take a look at my function NEARESTPOINT: <http://www.mathworks.com/matlabcentral/fileexchange...

plus de 13 ans il y a | 1

Réponse apportée
How to pick next value from vectors?
Here is one approach: v = [0.1 0.23 0.4 0.52 0.56 1.1] idx = find(v >= 0.5,1,'first') v(idx)

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
how to replace characters into digits
Here is a simpler approach than looping over REGEXPREP or STRREP: seqIn = 'ACGTTGCA' % input sequence letters = 'ACG...

plus de 13 ans il y a | 0

Réponse apportée
How to put strings inside the cell of an array continously ?
Or hide the for-loop all together: x = 1:10 NM = cellstr(num2str(x(:),'%d.png'))

plus de 13 ans il y a | 1

Réponse apportée
Given a vector, how to pair them by nearest?
What do you mean by ' _pair them by nearest_ '? Do you want to *SORT* the values? Otherwise, can you give a small example of ...

plus de 13 ans il y a | 0

Réponse apportée
Matching certain characters of strings
I seems that only the last character of the string is of importance: LIST = {'140111','140aa4','999cc3','123ZZ1','145xxx'} ...

plus de 13 ans il y a | 0

Réponse apportée
How can I repeat each element of a vector different times and store them in a new vector
Wayne pointed you to a run-length decoder/encoder. Things become more simple if every element is to be repeated the same numb...

plus de 13 ans il y a | 1

Réponse apportée
diffrence of vector element and addition element- wise
A = [1 2 3 98 99 102]; BB = [A(1) A(2:numel(A))*5]

plus de 13 ans il y a | 3

Réponse apportée
sort and sortrow differences
help sort help sortrows

plus de 13 ans il y a | 0

Réponse apportée
Plot for two range of x
Or still separate them in different graphic objects: x1 = [0:0.01:1] ; y1 = x1./5; x2 = [2:0.01:3] ; y2 ...

plus de 13 ans il y a | 0

Réponse apportée
how can i extrapolate the last value of a matrix?
You have to define a *model* first. As an example, assume you have data points (time, value) like this: Time = [1 3 6 7 8]...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Find vector elements that sum up to specific number
NCHOOSECRIT is now available, so: vect = [2 5 7 10] num = 17 answer = nchoosecrit(vect, @(x) sum(x)==num) See: <ht...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
can any one tell what does step command do in this prog
try help step doc step type step to get more info of this function

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Find vector elements that sum up to specific number
For a small number of elements in vect, you can try this vectorized approach: vect = [2 5 7 10] num = 17 V = nch...

plus de 13 ans il y a | 0

Réponse apportée
Error when inputting function.
I assume you did put that code in the editor and saved it as an m-file which you called from the command line (or from a script)...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Maximum occurrence of a number
The value that occurs most is called the mode. See <http://en.wikipedia.org/wiki/Mode_(statistics)> This function is availabl...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
passing lots of variables between function efficiently?
Why not simply pass (part of) the structure around those functions?

plus de 13 ans il y a | 0

Charger plus