Community Profile

photo

Eli Dim


Active since 2015

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Finding the min/max number of consecutive elements in an array
I have an example vector (attached). I need to find the min and max number of consecutive elements in this vector. How can I do ...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Plotting hourly values using datetick
I have a vector of size (1x8424) which has values for the first 8424 hours of year 2014. I want to plot this vector (x-axis I wi...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Call both outputs of a function in a for loop
I have a function VirtualPPDispatch which has one input and 2 outputs: function [gencost, sortedNames] = VirtualPPDi...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Re-writing a loop including strcat in order to reduce computational time
I have the following loop: NameMatrix = []; for i = 1:rows NameMatrix = [NameMatrix; {strcat(char(64+i),...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Read in a plain/text file in Matlab
I have a plain/text file which contains the following information: "Dukovany","Temelin","Prunerov","Pocerady","Chvaletic...

mer än 7 år ago | 2 answers | 0

2

answers

Question


Replace zeros with consecutive numbers in a vectors
I have a large column vector which looks like this: A=[1;2;3;4;5;1;5;6;..................;2305;0;0;0;0] I want to replace ...

mer än 7 år ago | 2 answers | 0

2

answers

Question


How to avoid a numerical problem in a for loop
I have two input files T and dispatch_seq. My code looks at T and sees how many rows of dispatch_seq should be taken. The result...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Delete a row of a cell containing a certain number
I have a large cell array (a part of it I attached). This cell array contains other cells. My problem occurs at rows with conten...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Convert a cell column of strings to doubles
I have a cell column of strings which looks like the attached file. How can I convert the column to double-precision values?

mer än 7 år ago | 3 answers | 0

3

answers

Question


Vertically Concatenate Cells with Same Number of Columns
I have a column of cells (column_data.png) with different number of rows but same number of columns. The cells contain numbers o...

mer än 7 år ago | 2 answers | 0

2

answers

Question


Rounding Vector Entries with zeros after the decimal place to integers
I have a vector T (attached file) which is an input for a function. Row 44 is a problem for me (112.0000). How can I do a loop w...

mer än 7 år ago | 2 answers | 0

2

answers

Question


Appending one cell array to non-zero cells of another
I have a cell array FINAL_OUTPUT < 50x1 cell > and another one called indexing as shown in the attached file. How can I append t...

mer än 7 år ago | 2 answers | 0

2

answers

Question


Outputting cumulative sum for Cell array with strings and numbers
Cell1={ 'A1' 5 'A2' 1 'A3' 2 'A4' 4 'A5' 1 'B1' 2 'B2' 6 'B3' 17 'B4' 8 'B5' 3 'C1' 7 'C2' 8 'D1' 1 . . . }; ...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Adding rows up to a certain value (cell arrays)
I have a cell (curCell_res) which has two columns (column 1 is name and column 2 is the value). I need 230 from column2. This ...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Insert values of arrays in another cell array
I have the following problem. In the attached picture I three columns of cells. My goal is to append the 2nd and 3rd column insi...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Retrieving indexing of a cell
I have the variable NameMatrix < nx5 cell > where the number of columns(5) always stays the same and the number of rows(n) cha...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Split a matrix in rows according to a vector
Hello, If I have a matrix that looks like this: A = [ [1, 0, 0, 5, 10, 5, 100, 300]; [1, 0, 0, 5, 10, 5, 100, 400];...

mer än 7 år ago | 2 answers | 0

2

answers