Question


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

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

1

réponse

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

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

1

réponse

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

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

1

réponse

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

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

2

réponses

Réponse apportée
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...

plus de 3 ans il y a | 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 ...

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

5

réponses

Réponse apportée
Line incorrectly connects data points in a loglog plot
a = sortrows(a,[1 2]) loglog(a(:,1),a(:,2))

plus de 3 ans il y a | 0

| A accepté

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

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

1

réponse

Question


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

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

1

réponse

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

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

1

réponse

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

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

0

réponse

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

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

2

réponses

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

plus de 3 ans il y a | 1 réponse | 1

1

réponse

Question


Store cell arrays composed of datetimes and numbers
Description & Goal. I have several cell arrays composed of datetimes "dt" and numbers/values "n", similar to this one: [cellstr...

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

1

réponse

Question


A compact way to find single digit numbers (i.e. numbers between 0 and 9) and replace them with two digit numbers
A compact way to find single digit numbers (i.e. numbers between 0 and 9) and replace them with two digit numbers ? For example...

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

2

réponses

Réponse apportée
A compact way to extract a date from a filename and transform it into a datetime
found it: s = '20210317'; datetime(s, 'InputFormat', 'yyyyMMdd') which gives this: ans = datetime 17-Mar-2021

plus de 3 ans il y a | 0

| A accepté

Question


A compact way to extract a date from a filename and transform it into a datetime
A compact way to extract a date from a filename and transform it into a datetime ? E.g. from '20210317.csv' to ans = date...

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

1

réponse

Réponse apportée
How to convert a graph / edges list into a shapefile (.shp) ?
@Christine Tobler Since I did not understand exactly how to perform the steps you suggested... % Matlab graph --> geolineshape ...

plus de 3 ans il y a | 0

Question


How to convert a graph / edges list into a shapefile (.shp) ?
How to convert a graph / edges list into a shapefile (.shp) ? Here an example of graph "G", built up with Matlab: s = [1 1 2 2...

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

2

réponses

Question


How to cluster lines ?
How to cluster lines ? Here below an example: x = [1 1 2 3 4 5 6 7 1 1 2 3 3 4 4 5 15 15 15 16 16 16 17 18 20...

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

1

réponse

Question


How do I label the bars in my histogram with the function "histogram" ?
In a similar thread a user asked: How do I label the bars in my histogram? However, that person mentioned the function hist, in...

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

1

réponse

Question


find rows in a matrix where all the elements (of those rows) are not NaN
How to finds rows in "a" where both elements of those rows (2 in this case) are numbers and not "NaN" ? a = [ NaN Na...

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

3

réponses

Réponse apportée
Compact way to extract day and hour from a datetime / datestrings format ?
Thanks a lot @Voss, your code does what I need... In my case, I did in this way and it works: t = datetime(time_array); % I fou...

plus de 3 ans il y a | 0

Question


Compact way to extract day and hour from a datetime / datestrings format ?
I have a cell array including datetime / datestrings data, i.e. days and hours. Here following, I show two examples related to...

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

2

réponses

Question


Suggestions on how to detect anomalies in around 200k time series, maybe with deep learning, maybe in a fast way?
I have tried Time Series Anomaly Detection Using Deep Learning, with just a few thousands of time series, but it is very slow......

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

2

réponses

Réponse apportée
Find cycles in an undirected graph
Hey @Matt J! hope this message finds you well! I am back to my post after a while :-) ... I have a quite silly question..... I ...

plus de 3 ans il y a | 0

A soumis


Unique function for rows with switched elements
Find unique rows in a 2-element matrix, when rows have switched elements. E.g. when row "1 5" and row "5 1" are both present.

plus de 3 ans il y a | 1 téléchargement |

0.0 / 5

Réponse apportée
A (possibly compact) way to find (1) unique rows, when rows have switched elements, (2) rows with switched elements, and (3) indices of rows with switched elements
This is my solution and I have created the corresponding File Exchange if interested! a = [1 2 4 5 5 1 2 1 ...

plus de 3 ans il y a | 0

| A accepté

Question


A (possibly compact) way to find (1) unique rows, when rows have switched elements, (2) rows with switched elements, and (3) indices of rows with switched elements
I have a 2-column matrix and I would need to find the following quantites, possibly in a compact way: unique rows, even when th...

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

3

réponses

Question


different locations of y-axes and ylabels in subplots
I have 4 subplots and I would like to have: all the 4 ylabel texts (here called as "first", "second", "third" and "fourth") pe...

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

1

réponse

Charger plus