Respondida
Setting up an array which has a 4x1 matrix in each one of it's cells
X = repmat({zeros(4,1)},10,10)

más de 13 años hace | 1

Respondida
How can I create MAT file?
help imread help save

más de 13 años hace | 1

| aceptada

Respondida
Replacing string variables that satisfy some criteria by other string variables
looping over strrep would do, I presume: A = {...} Anew = {...} for k = 1: ..., Matrix(:,3) = strrep(Mat...

más de 13 años hace | 0

Respondida
Converting 1*4 array into 1*1
Avoid the overhead of converting numbers into strings and back ... Use simple school math and a matrix multiplication: a = ...

más de 13 años hace | 0

Respondida
replacing string variables with others
Short and simple: STRREP a = {'A','b','A','t'} ; strrep(a,'A','xxx') % ans = 'xxx' 'b' 'xxx' 't'

más de 13 años hace | 0

Respondida
How can I select randomly?
Random can be defined in two ways: % A is your original matrix Nrows = size(A,1) ; % number of rows % Option 1: r...

más de 13 años hace | 1

| aceptada

Respondida
Split array values into 2 elements
help rem help floor A = [126126, 138154,137146] B = [floor(A/1000) ; rem(A,1000)] B = B(:).' % for cosmetic pur...

más de 13 años hace | 1

| aceptada

Respondida
How can I compare two logical vectors to a value?
or via De Morgan (http://en.wikipedia.org/wiki/De_Morgan%27s_laws) logi = ~(logix | logiy)

más de 13 años hace | 0

Respondida
how to add constant noise in image in matlab function?
See http://www.mathworks.com/matlabcentral/answers/55532-how-to-add-constant-noise-in-image

más de 13 años hace | 0

Resuelto


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

más de 13 años hace

Respondida
Asking about Susan filter
Have you tried Google ("SUSAN edge detection") ? It will help you finding a lot of information about SUSAN (all capitals as it i...

más de 13 años hace | 0

Respondida
truncating a long for loop
Similar to this? N = Inf ; for k=1:N, if k > 10, break ; end end which will get you a warning: Warning: FOR...

más de 13 años hace | 0

Respondida
How to extend the matrix size by splitting up a column in two columns
A = [1 1 1800 1 ; 2 2 1815 2 ; 3 3 6512 3] C = A(:,3) c2 = rem(C,100) c1 = (C - c2)/100 output = [A(:,[1 2]) c...

más de 13 años hace | 1

Respondida
make column in a matrix: 1,1,1,2,2,2,3,3,3 etc
A(:,2) = ceil((1:size(A,1))/3)

más de 13 años hace | 2

| aceptada

Respondida
Error message in matlab
Most likely there is a space in your name ...

más de 13 años hace | 0

Respondida
Determine the the slope and its uncertainty?
Do you also want to fit an offset? Polyfit does that for you, but you have to tell regress explicitly,. Example: x = 1:10 ;...

más de 13 años hace | 0

| aceptada

Resuelto


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

más de 13 años hace

Respondida
How can I generate the matrix [1 1; 1 2; 1 3 ; 2 1; 2 2; 2 3; 3 1 ; 3 2 ; 3 3] without loops?
COMBN! combn(1:3,2) ans = 1 1 1 2 1 3 2 1 2 2 ...

más de 13 años hace | 0

Enviada


FACTORIALRATIO
Ratio of factorials, as in (a!b!c!...) / (d!e!f!g!...) (version 2.0, oct 2012)

casi 14 años hace | 2 descargas |

5.0 / 5

Enviada


NEXTPERMPOS
the next combination of values in specific positions (extension of PERMPOS)

casi 14 años hace | 2 descargas |

0.0 / 5

Respondida
split a vecor into several parts (of different sizes) to later fill a matrix.
Take a look at MAT2CELL and PADCAT % data V = 1:15 ; sz = [3 5 6 1] ; % lengths % engine C = mat2cell(V(:),sz,1...

casi 14 años hace | 0

Enviada


KTHVALUE (v2.1, jun 2012)
select the k-th smallest element in a (randomized) list

alrededor de 14 años hace | 1 descarga |

5.0 / 5

Resuelto


Reindex a vector
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...

alrededor de 14 años hace

Enviada


TRIPLESTEST
a non-parametric test for asymmetry

alrededor de 14 años hace | 1 descarga |

5.0 / 5
Thumbnail

Resuelto


Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

más de 14 años hace

Resuelto


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

más de 14 años hace

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

más de 14 años hace

Resuelto


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

más de 14 años hace

Resuelto


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

más de 14 años hace

Resuelto


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

más de 14 años hace

Cargar más