photo

pamela sulis


Active since 2015

Followers: 0   Following: 0

Statistics

  • Thankful Level 4

View badges

Feeds

View by

Question


how many times a string is present in a cell array
I have the array a={'2';'23';'231';'2312';'23121';'231213';'3';'31'} and the cell array b={'2' '21' '' '' '' '' '';...

8 years ago | 4 answers | 0

4

answers

Question


find how many times sequences are present in a string array
Hi! I have S={1;[1 631];[1 631 618];[1 631 618 574];[1 631 618 574 608];631;[631 618];[631 618 574]} and T={'1' '5...

8 years ago | 1 answer | 0

1

answer

Question


find the index of the rows that have all 1
Hi, I have a matrix A= [ 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 ...

8 years ago | 1 answer | 0

1

answer

Question


Compare vectors and save the values
Hi! I have T=[1 1;1 2;1 3;1 4;256 2;259 2;263 2;268 2;315 2;330 3;335 3;336 2;337 2;338 2;339 2;340 2;345 2;345 3;349 2;35...

8 years ago | 1 answer | 0

1

answer

Question


Compare strings of different dimensions
Hi! I have the string s1 and s2 s1={'1' '631' '618' '574' '678'} s2={'1' '596' '674' '' '';'674' '631' '1' '631' '1';...

8 years ago | 1 answer | 0

1

answer

Question


how to find subsequences
Hi! I have a={'1' '631' '618' '574' '678'} and I want to find all possible sequences: {'1'} {'1' '631'} {'1...

8 years ago | 1 answer | 0

1

answer

Question


how to automate the count of consecutive values in a cell array
Hi! I have a cell array with this values a={'2' '3' '4' '5'; '2' '2' '3' '1'; '2' '2' '2' '1';'1' '2' '3' '3'; '1' '2' '3' ...

8 years ago | 1 answer | 0

1

answer

Question


how to count the number of consecutive values
Hi! I have Location(1,4).loc that is a 137x19 cell array. I want to find the number of time that first column have value '674...

8 years ago | 1 answer | 0

1

answer

Question


add colums in a cell array of strings
Hi, I have the cell array Location(1,4).locID, attached, and I want to trasform it: I want that every row have 19 colums (19 i...

8 years ago | 1 answer | 0

1

answer

Question


Trasform number in strings
Hi! I want to trasform [674 631 1 10 144] in {'674' '631' '1' '10' '144'}, I have tried to use num2str but it...

8 years ago | 1 answer | 0

1

answer

Question


Error: Subscripted assignment dimension mismatch.
Hi, I have a struct semanticTrajCompact: after traspose the content in every cell of semanticTrajCompact(1,4).locID, I want to...

8 years ago | 1 answer | 0

1

answer

Question


Compact the values in a string
Hi! I have a string '641 617 674 674 631 631 631 631 654 629 625 625 673 674': I want to delete duplicate. Ex '641 617 67...

8 years ago | 1 answer | 0

1

answer

Question


delete columns in a struct array
Hi! I have a struct array E <1x9 struct>, attached, and I want to delete the columns of each struct that correspond to []: e...

8 years ago | 1 answer | 0

1

answer

Question


Is it possible to use 'numel' in nested struct?
Hi! I use numel in a nested struct: for i=1:9 for j=1:size(E(1,i).bcd,2) for jj=1:numel(E(1,i).bcd{1,j...

8 years ago | 1 answer | 0

1

answer

Question


How to compare numeric strings
have a problem to find the similarity of two patterns. I use LCS of this two pattern to represent their longest common part. For...

9 years ago | 1 answer | 0

1

answer

Question


How can I split a string?
Hi, I have this string '0231563972' and i want to split it, put a space between the number: '0 2 3 1 5 6 3 9 7 2'. Can you give ...

9 years ago | 1 answer | 0

1

answer

Question


How to optimize a code to find postfix in a sting
Hi! I have a cell 106x1 of strings 'TrajCompact'. In every string I want to find all the prefix that are combination of (0,1,2,3...

9 years ago | 2 answers | 0

2

answers

Question


Compare values of array of matrix 5x5x106
Hi! I have a array of logical matrix 5x5x106 (attached file): I want to compare every logical matrix with the others to fin...

9 years ago | 1 answer | 0

1

answer

Question


Find prefix and postfix in a string
Hi! I have a cell array (106x1) of strings, I want to find a prefix in every string and, after find the postfix, count the numbe...

9 years ago | 1 answer | 0

1

answer

Question


How to create a semantic graph in matlab?
Hi! I want to create a semantic tree using matlab, can you give me some suggest to begin? Thanks

9 years ago | 1 answer | 0

1

answer

Question


If this value of 5x5 cell with vectors [106x1] are different to zeroes,count them e put the count in a matrix.
I have matchcounts (5x5)cell, every cell has a vector of double [106x1]. The vectors of double have zeros and non zero values. I...

9 years ago | 1 answer | 0

1

answer

Question


Optimization code to avoid the repeating of the same expression
Hi! There is a method to compact this expressions? matchstarts_00(k) = regexp(TrajCompact(k,1), '0.+?0'); %for '00' matc...

9 years ago | 2 answers | 0

2

answers

Question


Error: Conversion to double from cell is not possible
Hi! Can you help me to understand why I have this error? Matrix(5,1)={sum(matchcounts_ab,1) sum(matchcounts_ba,1) sum(match...

9 years ago | 2 answers | 0

2

answers

Question


How to compact a string?
Hi! I have a sting 'aaaaaaabccccbbbdcccccaaaa' and I want to trasform it in 'abcbdca': I want to have only one of the consecuti...

9 years ago | 1 answer | 0

1

answer

Question


Find char consecutive in a string
Hi! I have this string stringa={stringa1; stringa2; stringa3; stringa4}; stringa1='{a(abc)(ac)d(cf)}'; stringa2='{(a...

9 years ago | 1 answer | 0

1

answer

Question


compare the value of two matrix
Hi! I have a problems with this code: for k=1:5 for i=1:size(A(1,k).a,1) for j=1:size(dateAll(1,k).date,1...

9 years ago | 1 answer | 0

1

answer

Question


'Out of memory problems'
Hi! Matlab give me problem 'Out of memory'; I try different solutions: - Give higher priority to Matlab.exe task - Increas...

9 years ago | 0 answers | 0

0

answers

Question


Improper assignment with rectangular empty matrix
Hi! I have a struct s, I want inizialize dateAll with a matrix of zeros different for every loop I try this two codes: 1) ...

9 years ago | 1 answer | 0

1

answer

Question


Trasform an array of structs with string in an array of structs with numbers
Hi, I have a array of struct: for every struct I want to trasform sting into number with the function datevec and at the end I w...

9 years ago | 1 answer | 0

1

answer

Question


Undefined function 'eq' for input arguments of type 'struct'
Hi! I create this code in which s is a struct if(s(1,1)==[]) i=i+1; end I have an error: 'Undefined function 'eq...

9 years ago | 1 answer | 0

1

answer

Load more