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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

Solved


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

13 years ago

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

13 years ago | 1

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

13 years ago | 1

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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 4

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

13 years ago | 1

| accepted

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

13 years ago | 0

Submitted


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

13 years ago | 2 downloads |

0.0 / 5

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

13 years ago | 1

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

13 years ago | 1

| accepted

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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 3

Answered
sort and sortrow differences
help sort help sortrows

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 1

| accepted

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

13 years ago | 0

| accepted

Answered
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

13 years ago | 1

| accepted

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 0

Load more