pamela sulis
Followers: 0 Following: 0
Feeds
질문
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년 초과 전 | 답변 수: 4 | 0
4
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 2 | 0
2
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 2 | 0
2
답변질문
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년 전 | 답변 수: 2 | 0
2
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
'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년 전 | 답변 수: 0 | 0
0
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 1 | 0
1
답변질문
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년 전 | 답변 수: 1 | 0