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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

Risolto


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

oltre 13 anni fa

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

oltre 13 anni fa | 1

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

oltre 13 anni fa | 1

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 1

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

oltre 13 anni fa | 4

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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 0

Inviato


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

oltre 13 anni fa | 2169 download |

0.0 / 5

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

oltre 13 anni fa | 1

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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 1

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

quasi 14 anni fa | 1

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

quasi 14 anni fa | 3

Risposto
sort and sortrow differences
help sort help sortrows

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 1

| accettato

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

quasi 14 anni fa | 0

| accettato

Risposto
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

quasi 14 anni fa | 1

| accettato

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

Carica altro