Community Profile

photo

Sim


Last seen: Today Con actividad desde 2019

Statistics

All
  • Explorer
  • First Submission
  • Thankful Level 5
  • First Review
  • First Answer
  • Revival Level 1

Ver insignias

Content Feed

Ver por

Pregunta


calculate the euclidean distance among all the pairs of nodes and use those resulting distances as the edges weights of the graph
Given the positions of nodes in a graph, i.e. x and y coordinates of each node, is there any compact way to calculate the eucl...

10 días hace | 1 respuesta | 0

1

respuesta

Pregunta


A simple way to find (in a cell array) rows that, once flipped, are duplicates of other rows?
A simple way to find (in a cell array) rows that, once flipped, are duplicates of other rows? E.g. in this example a = [ ...

alrededor de 2 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


Get shortest paths and distances among nodes without loop for (and possibly in a faster way)
How to get shortest paths and distances among nodes (selected from a list) without a loop for, and possibly in a faster way than...

alrededor de 2 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


How to request user input to press Esc or Enter ?
How to request user input to press Esc or Enter ? % this is a pseudo-code I wrote just to give an idea about what I am trying t...

alrededor de 2 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


Is it possible to use vertcat with dot notation?
EDITED Is it possible to use vertcat with dot notation? This is an example once I extract names from Excel files contained in a...

alrededor de 2 meses hace | 3 respuestas | 0

3

respuestas

Pregunta


Find the value which is repeated in each row of a matrix (without loop for)
In each row of the following matrix, one of the values is repeated. For example, in the first row, the value 523 is repeated twi...

alrededor de 2 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


A very fast way to convert numbers into datetime ?
Is there any faster way then what showed in the following example to convert numbers into datetime ? % Input: time = [ 2.02210...

alrededor de 2 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


Which rows of a 2-column array contain elements of 1-column array.
When I look for the elements of 1-column array, a, inside a 2-column array, b, I would like to know which rows of b contain the ...

2 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


What is the fastest way to export a large matrix of numbers from MATLAB to Excel (preferably as .xlsx) ?
What is the fastest way to export a large matrix of numbers from MATLAB to Excel (preferably as .xlsx) ? It looks like there ar...

3 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


A very fast way to find elements and their indices? (Is ismember fast?)
A very fast way to find elements and their indices? (Is ismember fast?) This would be my example: % input: create arrays "a"...

3 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


A very fast way to (i) concatenate and (ii) calculate the difference of elements?
A very fast way to (i) concatenate and (ii) calculate the difference of elements ? Here below my case / example: a1 = dateti...

3 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


A very fast way to sort datetime (in "ascend" mode)?
A very fast way to sort datetime (in "ascend" mode)? Here an example: a = datetime([ '2022-10-27 00:22:50.000' '202...

3 meses hace | 3 respuestas | 0

3

respuestas

Pregunta


Is there any way to see if the functions I am using in a script/code are included in toolboxes or in the basic Matlab ?
Is there any way to see if the functions I am using in a script/code are included in toolboxes or in the basic Matlab ? The bes...

3 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


Are the top-ranked Matlab users working for MathWorks, or do they have another job ?
Are the top-ranked Matlab users working for MathWorks, or do they have another job ?

3 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


How to use dbscan for durations ?
How can I use dbscan for time durations ? A = duration({'00:01:01' '00:00:53' '00:00:55' '00:00:54' '00:...

3 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


How to cluster data in a histogram ?
How to cluster data in a histogram ? Desired output Input A = duration({'00:01:01' '00:00:53' '00:00:55...

3 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


Avoid a "loop for" to add multiple "datetime" elements to a cell array
Given the matrix "a" % (1) create the cell array / matrix "a" a = cell(3,3); % (2) add the first elements to the cell a...

3 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


Add new "datetime" elements to an existing cell array (matrix)
What I have so far: a = cell(3,3); index = [1 1 2 1 3 3]; b = datetime({'00:01:35' '00:01:1...

3 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


code vectorization: assign numbers or datetime/durations to cell arrays, without any loop
Here following I am trying to assign numbers or datetime/durations to a cell array, without any loop. In one case the result i...

4 meses hace | 1 respuesta | 0

1

respuesta

Respondida
difference of datetimes using the "diff" function
ah.... probably this one ? >> diff(a,1,2) ans = 8×1 duration array 00:04:11 00:01:09 00:01:24 00:15:...

4 meses hace | 0

Pregunta


difference of datetimes using the "diff" function
I would like to find the temporal difference between the elements in the first (left) column and the elements in the second (rig...

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


compact way to plot "duration" elements, with different colors
Do you know a compact way to plot a set of duration elements in different colors, without the loop for ? % input (set of durati...

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


histogram of datetimes with customisable bin width
How to plot a histogram of (differences of) datetimes, with a customizable bin width, such as 1 minute ? This is my attempt, bu...

4 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


writetable for a double entry table
When I write a table with a double entry as a csv file.... labels_1 = {'FirstName' 'Height' 'Weight' 'BloodPressure'} labels_2...

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


How to create a double entry table ?
How to create a double entry table ? Here below an example:

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


convert exp number to datetime
Hi, I have this number that I would like to convert into datetime.. I am not sure about which function to use and how.. any sugg...

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


Compact way to plot data with relative colors and legend
Is there any way to plot data with relative colors and legend in a more compact way than this one ? Note: to remove duplicates ...

4 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


compact way to calculate euclidean distance among points
What is a compact way to calculate the euclidean distance among point "a" and the four points "b" ? % Input: a = [0,0]; % x_...

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


A compact way to find max in one column with a condition on the second column
Given a = [35 -1 21 1 11 2]; I want the max in the first column, but the max cannot be that one where ther...

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


Automatic change of legend's arguments
Let's consider this example: labels = {'A','B','C'}; hold on for i = [1 2 3] h(i) = plot(rand(10,1)); end legend([h(1)...

4 meses hace | 1 respuesta | 0

1

respuesta

Cargar más