Community Profile

photo

darksideofthemoon101


Active since 2011

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


matlab and newport agilis controllers
Hi, I know this is a long shot, but has anyone tried talkinf to a Newport Agilis-P Controller using Matlab? The device uses a...

11 years ago | 1 answer | 0

1

answer

Question


move element in array
Hi, 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...

12 years ago | 2 answers | 1

2

answers

Question


clim in pcolor plot
Hi, I have a pcolor plot that I want to set the color limits on. My code is pcolor(X,Y,f(data)) shading interp bu...

13 years ago | 2 answers | 0

2

answers

Question


extract matrix from for loop
Hi, I want to extract a 2x2 matrix from each iteration of a for loop. Normally I would use something like for loop=1:1:1...

13 years ago | 2 answers | 0

2

answers

Question


code running differently on 2 machines
Hi, 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...

13 years ago | 1 answer | 0

1

answer

Question


and if in matlab?
Hi, I want to run an if loop with 2 conditions, but I can't see an "and-if" equivalent. Eg: if 0<x<1 *and y2<y1* ...

13 years ago | 2 answers | 0

2

answers

Question


array rearrangement
Hi, 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...

13 years ago | 1 answer | 0

1

answer

Question


array muddle problem
Hi, 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...

13 years ago | 2 answers | 0

2

answers

Question


assigning probability
Hi, I'm doing a basic simulated annealing experiment and I want to assign a probability to decide whether a variable change i...

13 years ago | 1 answer | 0

1

answer

Question


extracting values from embedded for loops
Hi, I have one loop embedded inside another and want to extract the innermost value for each change in both the inner loop an...

13 years ago | 1 answer | 0

1

answer

Question


program runtime question
Hi, 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...

13 years ago | 2 answers | 0

2

answers

Answered
RMS error of matrices
I've been using rms = sqrt((A - B)^2)) How dissimilar are these equations?

13 years ago | 0

Question


RMS error of matrices
Hi, I have 2 large matrixes (2048x2048), and have taken one away from the other to get a 'difference' matrix. I want to quant...

13 years ago | 2 answers | 0

2

answers

Question


add array to end of itself n times
Hi, 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 ...

13 years ago | 1 answer | 1

1

answer

Question


for loop with non-linear input
Hi, I have an array 'layer' that I want to randomise and use in a for loop, in the randomised order. layer=0.05:0.0025:0...

13 years ago | 1 answer | 0

1

answer

Answered
randomise array with non-integer values
Never mind, I solved the problem this way: X=0.05:0.0025:0.15; randomiser = randperm(length(layer)); X=X(randomiser);...

13 years ago | 0

| accepted

Question


randomise array with non-integer values
Hi, 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? ...

13 years ago | 1 answer | 0

1

answer

Question


random elements from specific rows in matrix
Hi, 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...

13 years ago | 2 answers | 0

2

answers

Question


Can I use a for loop to access different pairs in a matrix?
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...

13 years ago | 2 answers | 0

2

answers

Question


fminsearch with 2 variables - help please!
Hi, I want to use fminsearch to find the minimum of 2 variables, but I don't understand how the fminsearch function works in ...

13 years ago | 1 answer | 0

1

answer