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

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 0

| aceptada

Respondida
The advantages of MATLAB over other programing languges for Image Processing
# flexibility # documentation

alrededor de 13 años hace | 0

Respondida
OUTLIERS and DUMMY VARIABLEs
See my answer on CSSM: http://www.mathworks.nl/matlabcentral/newsreader/view_thread/330636

alrededor de 13 años hace | 0

Resuelto


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

alrededor de 13 años hace

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

alrededor de 13 años hace | 1

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

alrededor de 13 años hace | 1

Respondida
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),[...

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 1

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

alrededor de 13 años hace | 4

Respondida
use of the below statements....
Matlab comes with great help help newsom help minmax help double help reshape ...

alrededor de 13 años hace | 1

| aceptada

Respondida
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, ....

alrededor de 13 años hace | 0

Enviada


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

alrededor de 13 años hace | 2 descargas |

0.0 / 5

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

más de 13 años hace | 1

Respondida
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)

más de 13 años hace | 1

| aceptada

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

más de 13 años hace | 0

Respondida
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'))

más de 13 años hace | 1

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 1

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

más de 13 años hace | 3

Respondida
sort and sortrow differences
help sort help sortrows

más de 13 años hace | 0

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

más de 13 años hace | 0

Respondida
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]...

más de 13 años hace | 1

| aceptada

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

más de 13 años hace | 0

| aceptada

Respondida
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

más de 13 años hace | 1

| aceptada

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

más de 13 años hace | 0

Respondida
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)...

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

| aceptada

Respondida
passing lots of variables between function efficiently?
Why not simply pass (part of) the structure around those functions?

más de 13 años hace | 0

Cargar más