Community Profile

photo

Sherwin


Last seen: alrededor de 1 mes ago
26 total contributions since 2016

Sherwin's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


Error using PARFOR: Index exceeds the number of array elements
Hi, I'm using a parfor loop in my GA algorithm. After some time of running this error pops up: Error using distcomp.remotepar...

alrededor de 2 meses ago | 1 answer | 0

1

answer

Question


Playing an Internal Beep at the end of a run (without speakers)
Hi, Is there a command that can produce internal beeping sound at the end of a run? I mean the beeping sound that you can hear ...

alrededor de 2 meses ago | 0 answers | 0

0

answers

Question


How to save specific rows of a Cell Array?
Hi, I have a cell array O which stores the output of an iterative algorithm. After each 1000 iteration, I want to save the l...

3 meses ago | 1 answer | 0

1

answer

Question


Is there an online remote server that I can run my code on?
Hi, I have a GA code that takes a long time to converge (4-5 days). I want to know if there is an online remote server that I ca...

7 meses ago | 2 answers | 0

2

answers

Answered
Errors without any explanations
For anyone having the same problem, as one of the commenters indicated, this only happens in Live Scripts. Running the code as s...

8 meses ago | 0

| accepted

Question


Errors without any explanations
When I run my codes on MATLAB 2020a, I get erros without any explanations. There is just a red circle with a white exclamation m...

8 meses ago | 1 answer | 0

1

answer

Question


How to use vectors instead of loops?
Hi, I am new to coding and I seem to be using too many loops/cells which significantly slows down my codes. I want to define a...

8 meses ago | 0 answers | 0

0

answers

Question


How can I make this code faster?
<</matlabcentral/answers/uploaded_files/66372/SA.png>> Hi, I have a cell array, like the attached image, named SA. In ea...

más de 4 años ago | 1 answer | 0

1

answer

Question


How can I place a cell array in another cell array using 'find'?
Hi, I have a 50x1 cell array (A = cell(50,1)), each cell has a 4x960 matrix(all elements are 0 or 1) in it, I want to this for...

más de 4 años ago | 1 answer | 0

1

answer

Question


How can I sort a cell array according to one column's order?
Hi, I have a cell array of (50, 2), each cell in the first column contains a 4x960 matrix but the cells in the second column ar...

más de 4 años ago | 1 answer | 0

1

answer

Question


How can I show equality in cell arrays?
Hi, I have an array like this: P = cell (50 , 5); each cell in the first column of this array is a 4x960 matrix with 0/1...

más de 4 años ago | 1 answer | 0

1

answer

Question


Why do I get an index error?
Here in this part of my code r3 = randi([1 N],[G 1]); for i = 1:G ch = ceil(r3(i,1)/3840); [r, c] = ind2sub([4 960],...

más de 4 años ago | 3 answers | 0

3

answers

Question


Why do I get subscript indices error?
Hi, I have a code like this, r2 = randi([2 64]); [m, n] = ind2sub([4 16],r2); n = (n-1)*60; CH1(m:end,n:...

más de 4 años ago | 1 answer | 0

1

answer

Question


How does 'break' work?
Hi, I need to know what happens after "break"? what does the loop skip to? I need it to skip to "for i = 1:50" and start from a ...

más de 4 años ago | 2 answers | 0

2

answers

Question


How to show a column of a cell array
Hi, I have a cell array, the first column is made up of 50 cell of 4x960, but the rest of the columns are 50 cells of 1x1, ...

más de 4 años ago | 1 answer | 0

1

answer

Question


Cumulative sum of cell array column
Hi I have this cell array and I need to get the cumulative sum of column 7. Please help. A = Columns 1 through 3 ...

más de 4 años ago | 2 answers | 0

2

answers

Question


How to count the values with a specific condition in different cells of an array?
<</matlabcentral/answers/uploaded_files/61614/Array.png>> Hi, I have an array that consists of cells with different lengths. ...

más de 4 años ago | 0 answers | 0

0

answers

Question


How can I import Excel data in a cell array?
Hi, I have a cell array as I coded here: tt = cell (4,1); for i = 1:4 tt {i,1} = cell (16,1); for j = 1:16 ...

más de 4 años ago | 2 answers | 0

2

answers

Question


How can I import Excel data in a cell array?
hi, I have a cell array as I

más de 4 años ago | 1 answer | 0

1

answer

Question


How can I have the cumulative sum of the returned values of a function as a vector?
I want to have the cumulative sum of the returned values of AB function in a loop...I want the cumulative sum of the returned va...

más de 4 años ago | 1 answer | 0

1

answer

Question


How can I use FIND to extract the indices of 1 elements in a 0/1 matrix?
I only have some 0/1 matrices and they are generated randomly. How can I define X like this: (please see Matrix image) The fi...

más de 4 años ago | 1 answer | 0

1

answer

Question


2 IF loops inside of a FOR loop!
Hi, I have 2 IF loops inside of a FOR loop. for z = 1:spot_length; if minichrom(1,z) == 0 ...

más de 4 años ago | 1 answer | 0

1

answer

Question


How can I have n randomly generated vectors?
Hi, I want to generate n random vectors. The problem is I put it in the loop and the vector is being replaced in every run, bu...

más de 4 años ago | 2 answers | 0

2

answers

Question


Would you please help me to correct this code?
Hi, I want to generate a 4*12 matrix that consists of 0 and 1 elements only that each row is divided into 2 sections with 6 el...

más de 4 años ago | 1 answer | 0

1

answer

Question


How can I generate a random binary matrix under some conditions?
Hi, I want to generate a 4*960 binary matrix but there are some conditions. For example in row 1, in the first 60 elements, maxi...

más de 4 años ago | 2 answers | 0

2

answers

Question


How can I code my variable length chromosomes for GA?
Hi, I need to code my chromosomes in a way that each chromosome consists of several string (I'm not sure if this is possible, I...

más de 4 años ago | 2 answers | 0

2

answers