photo

German Preciat Gonzalez


Université de Luxembourg

Actif depuis 2016

Followers: 0   Following: 0

Message

Statistiques

  • Thankful Level 3

Afficher les badges

Feeds

Afficher par

Question


How to select the indices of two arrays that satisfy two conditions using cellfun (no loops or ifs)?
Let's say I have two arrays: A = {'one(1)', 'two(1)', 'three(2)', 'four(2)', 'five(1)'}; B = {'One', 'TWo', 'thrEE', 'Four...

plus de 6 ans il y a | 1 réponse | 0

1

réponse

Question


how to add and sort a cell with a string in a cell array in order to replace or add a cell with respect the last word of the cell?
I did this using a lot of lines and I was wondering if you could recommend me a better way to do it. I have a predefined ce...

presque 7 ans il y a | 1 réponse | 0

1

réponse

Question


How to add information in a figure already created
Imagine that I have a function like this function somethingPlotted = plotSomething(x, y) somethingPlotted = plot(x,y)...

presque 7 ans il y a | 1 réponse | 0

1

réponse

Question


if is possible to cancel a process if matlab take too much time to perfom the process?
I have a for loop to analyse data, for i=:length(data) task(data(i)); end but for example, if data has a length o...

plus de 7 ans il y a | 2 réponses | 0

2

réponses

Question


How to obtain the indexes of numbers in a cell array with mixed data?
I have different cell arrays like: cellArray1={'PGD',[23095],[5226],[NaN],[NaN]}; cellArray2={[12342],[NaN],[NaN],[NaN],[N...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


How to obtain a numeric vector with the position of elements of an array regarding another array?
I have many pairs of arrays (one is the reference and other a with the same elements but with different position) and I need a n...

plus de 7 ans il y a | 2 réponses | 0

2

réponses

Question


How to substitute numbers in a string with repeated strings?
I have many different strings with different numbers with this format: str='A + 2 B -> D + 3 E'; I would like to replace...

plus de 7 ans il y a | 3 réponses | 0

3

réponses

Question


How to use cellfun in only cells with numbers or how to create a csv file with different elements (numbers and strings)?
I have a big cell array (22002x12) with multiple elements (strings and numbers) and I want to convert them to a CSV file but obv...

plus de 7 ans il y a | 3 réponses | 0

3

réponses

Question


It is posible to write a script with many functions and call these functions?
I have to write a very large script with a lot of functions within the script. Instead of having functions as a separated files ...

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


how to reduce the information contained in each field in a struct array?
I have a very big struct array which can be summarized in something like this: A = [0 0 0 0 0 0; ...

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


How to add text in a bar in a multiple bar plot?
Hi all, I have a matrix M like this: M = [99.0000 93.0000 65.0000 95.0000 97.0000 97.0000; 84.0000 95.0...

presque 8 ans il y a | 2 réponses | 0

2

réponses

Question


How to solve an equation of the form A (matrix) x(vector) = b(vector) and a constant c where I have to find x and c, and x is only positive?
Hi, I have a matrix A A =[1 1 2 2 0 0; 1 1 2 2 0 0; 0 0 0 1 0 0; 0 0 0 1 0 0; 3 0 0 0 0 0; ...

presque 8 ans il y a | 2 réponses | 0

2

réponses

Question


How to add new lines after some specific characters for a big string (1M)?
Hi, I have a string of ~1M characters, I need to add new lines after some strings BUT under certain conditions so for exam...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


how calculate percentage with a vector and a matrix with nan elements?
I have a vector V where each element of V is bigger than zero, and a matrix M where each row represent data, each column the so...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


How to create comparison matrices "comparing" arrays from an struct array with 4 columns and N rows?
I have data from 4 different sources in a form of arrays inside a struct array. I want to compare which arrays are the same and ...

plus de 8 ans il y a | 2 réponses | 0

2

réponses

Question


How to create comparison matrices "comparing" strings from 6 different data sources?
I have data from 4 different sources in a form of strings. I want to compare which strings are the same and if they are not equa...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


How to create a matrix with the data of a comparison, upper triangular the percentage of similarity and lower triangular the times that were compared?
I have a matrix with N rows and 4 columns. Each row represent a comparison of a file between different sources, columns repres...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


how to extract the names of all the files with an specific extension content in different directories and omit the name if is repeated?
If I want all the name of the files with an extension .jpg in different directories so far I use this: dir1='~/dir1' dir...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


How to compare multiple strings and assign values to the comparison?
I have data from 6 different sources in a form of strings. I want to compare which strings are the same. So if I have: d...

plus de 8 ans il y a | 4 réponses | 0

4

réponses

Question


How to find dependent column vectors of a matrix for a given column vector?
For example if I have a matrix m where: m=[1 2 3 4; ... 1 5 3 6; ... 1 7 3 8]; if I put as an input column 1...

plus de 8 ans il y a | 2 réponses | 0

2

réponses

Question


how can I generate different vectors with the all the unique combinations of numbers inside a one vector?
Hi, If i have a vector a like: a=[1 2 3 4]: how can I generate different vectors with the all the unique combinations...

plus de 8 ans il y a | 1 réponse | 0

1

réponse