Top 5% contributor
I have a pcolor plot that I want to set the color limits on. My code is
Asked 4 years ago
I want to extract a 2x2 matrix from each iteration of a for loop. Normally I would use something like
I want to run an if loop with 2 conditions, but I can't see an "and-if" equivalent.
*and y2<y1* ...
I have an array composed of pairs of variables,
X=[a1 a2 b1 b2 c1 c2..]
and I want to modify each PAIR by a sma...
I have a program that (for what I've done so far) takes a long time to run (~4s per loop). In the final version of the co...
I have 2 large matrixes (2048x2048), and have taken one away from the other to get a 'difference' matrix. I want to quant...
I have an array x=(y1,y2) and I want to add copy the values in the array and add them to the end of the array, such as
Never mind, I solved the problem this way:
randomiser = randperm(length(layer));
Answered 4 years ago
I have a 2x10 matrix and I want to select a random element from each row. I have found how to select random elements from...
I want to use a matrix as the input of a for loop, and reference different pairs of indices in the matrix as the variable for ea...
I'm running code on 2 machines, 1 laptop and 1 desktop. I have an array that comes out of a loop, 'answer1', and the when...
I have an array of MxN numbers, and I want to rearrange it so that the numbers are all in one column:
1 2 4 5
3 6 7 8...
I'm doing a basic simulated annealing experiment and I want to assign a probability to decide whether a variable change i...
I have one loop embedded inside another and want to extract the innermost value for each change in both the inner loop an...
I have an array 'layer' that I want to randomise and use in a for loop, in the randomised order.
I want to randomise the elements in a 1-D array. I can't use randperm as the elements are non-integer values. Any ideas?
I have an array of n elements, let's say for example:
[0 1 2 3 4 5]
I want to move the position of one of the eleme...
Asked 2 years ago
I want to use fminsearch to find the minimum of 2 variables, but I don't understand how the fminsearch function works in ...
I know this is a long shot, but has anyone tried talkinf to a Newport Agilis-P Controller using Matlab? The device uses a...
I've been using
rms = sqrt((A - B)^2))
How dissimilar are these equations?
Join the conversation