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:...

5 months ago | 0

Question

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...

5 months ago | 1 answer | 0

### 1

Question

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...

5 months ago | 1 answer | 0

### 1

Question

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...

5 months ago | 2 answers | 0

### 2

Question

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...

5 months ago | 1 answer | 0

### 1

Question

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

5 months ago | 1 answer | 0

### 1

Question

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...

5 months ago | 1 answer | 0

### 1

Question

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 ...

6 months ago | 2 answers | 0

### 2

Question

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_...

6 months ago | 1 answer | 0

### 1

Question

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...

6 months ago | 1 answer | 0

### 1

Question

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)...

6 months ago | 1 answer | 0

### 1

Question

How to calculate the average radius of a boundary in Matlab ?
How to calculate the average radius of a boundary in Matlab ? % Example rng('default') x = rand(30,1); y = rand(30,1); plot...

6 months ago | 1 answer | 0

### 1

Question

Compact way to calculate the centroid of a boundary of a set of points
Is there any compact way to calculate the centroid of a boundary of a set of points ?

6 months ago | 1 answer | 1

### 1

Question

Error with clusterDBSCAN.discoverClusters
I was trying to run the Examples: Display Cluster Hierarchy, but I got an error. Any idea on how to solve it ? Here the cod...

6 months ago | 1 answer | 0

### 1

Question

Is there any implementation of the KMD clustering in Matlab ?
In Choose Cluster Analysis Method I do not see the KMD clustering (core) clusters. Is there any implementation of the KMD clust...

6 months ago | 1 answer | 0

### 1

Question

In "scatter"-related legends, how to make larger symbols ?
I tried to adapt the Adam Danz's solution for customising the legend properties related to a "plot", to, instead, the legend pro...

7 months ago | 1 answer | 0

### 1

Question

how to remove/kill the figure produced with colormap
how to remove/kill the figure produced with colormap colormap('parula')

7 months ago | 1 answer | 0

### 1

Question

San-serif \mathsf and \textsf are not supported when using interpreter latex (in Matlab R2022a)
When I run the following example, in which I use (1) \mathsf (2) \textsf and (3) interpreter latex together, plot(rand(3,10)); ...

7 months ago | 0 answers | 0

### 0

Question

How can I select the "Neue Helvetica" instead of the default "Helvetica" as "fontname" ?
How can I select the "Neue Helvetica" instead of the default "Helvetica" as "fontname" ? Currently I have the following: >> g...

7 months ago | 1 answer | 0

### 1

Question

How to show the variable name instead of its value in a plot's text, when using "syms", "text" and "latex" functions
Question: By using both syms, latex and text functions/tools (as in the example here below), how can I show the variable name in...

7 months ago | 2 answers | 0

### 2

How to "automatically" show an equation, written in the matlab editor, as a text on a plot
@Star Strider why did you delete your solution ? syms x % x = 1 : 10 ; a = 0.5 ; y = exp(-a*x); % equation to show inside t...

7 months ago | 1

Question

How to "automatically" show an equation, written in the matlab editor, as a text on a plot
%Input x = 1 : 10; a = 0.5; y = exp(-a*x); % equation to show inside the plot plot(x,y) % Desired Output Note 1: my ...

7 months ago | 5 answers | 0

### 5

Line incorrectly connects data points in a loglog plot
a = sortrows(a,[1 2]) loglog(a(:,1),a(:,2))

7 months ago | 0

| accepted

Question

Line incorrectly connects data points in a loglog plot
Given the array "a.mat" here attached, if I plot it, i.e. plot(a(:,1),a(:,2)) I get this picture Instead, if I plot it in a...

7 months ago | 1 answer | 0

### 1

Question

Customise axis ticks and ticks labels with exponential notation
How can I customise both axes to get this figure, with this exponential notation ?

8 months ago | 1 answer | 0

### 1

Question

How to avoid "NaT" when converting a cell into datetime ? (Or: how to add missing parts of datetime ?)
How to avoid "NaT" when converting a cell into datetime ? (Or: how to add missing parts of datetime ?) a = [ {'14-Jul-20...

8 months ago | 1 answer | 0

### 1

Question

How to find the most dominant frequency(ies) of time series that include datetime ?
How can I find the most dominant frequency(ies) of this time series that includes datetime ? a = { '17-Jun-2021 12:00:00',...

8 months ago | 0 answers | 0

### 0

Question

How to find the frequencies of a time series which contain datetime ?
How to find the frequencies of a time series which contain datetime, as in the following example ? (Note: I did not find such a...

8 months ago | 2 answers | 0

### 2

Question

A compact way to remove empty rows in a cell array matrix ?
A compact way to remove empty rows in a cell array matrix, as the following one? >> a a = 8×2 cell array {'22-Ju...

8 months ago | 1 answer | 0