Frage


Unable to read datetime with format "0600 UTC OCT 25"
When I import data from a kml file using readtable, it stores the date and time in a string array called Name formatted like thi...

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


stem plot line width inconsitencies
I can't understand why I can't set the line width consistently with the stem plot. I am plotting four subplots in a loop and th...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


readtable with datetime, format problem
I continue to struggle with datetime, having spent years using datenum. I'm using readtable to read in a .csv file that has bee...

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


Convert array of numbers to an array of padded strings
I have an array of numbers to convert to an array of strings. >> stanums = 7:12; >> stastrings = string( stanums ); stanums =...

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Beantwortet
Determine adjacent points in a logical matrix
Thanks everyone. I knew it would be trivial, but I don't have much experience with manipulating 2D arrays.

etwa ein Jahr vor | 0

Frage


Determine adjacent points in a logical matrix
I have a 2-D matrix of logical values, eg 000000000 010000000 000000000 000000000 000000000 000001000 000000000 00000000...

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


Can I draw a section of a polar plot?
Is it possible to draw only part of a polar plot? That is, when the centre of the plot is outside the viewed plot. I have a plo...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Scatter plot with variable symbol size - it's not linear
I'm trying to use the feature in the scatter plot where the symbol size is proportional to a variable and it seems that the scal...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Extracting arrays from a structure - different number of array elements
I am having problems extracting arrays from a structure that I created. One of the fields returns a different number of values. ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


How can I line up plot edges in subplots?
I want to use subplots to show three orthogonal views of 3D data (latitude,longitude and depth). I need the plots to line up wit...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


mapshow - I can't seem to plot a geoTIFF
I'm trying to plot a geoTIFF image using mapshow. The file seems fine. >> georasterinfo(filename) ans = RasterInfo with ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Problem adding text to plot, background color doesn't work properly
I have encountered a problem using text to put labels inside a plot. I set the background colour to white. This works when I wri...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Merging strings in a table
I'm trying to merge two columns in a table. I tried this: L = readtable( fileLog ); L2 = mergevars(L,["Var2","Var3"]); But th...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


Convert numeric 2D array to array of orders of values
I have an array of numbers, like this: positions = 14 25 65 20 16 15 17 16 14 26 46 ...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Problems reading datetimes with readtable
I have a bunch of text files with dates and times. Some of them are like this (there is a space at the end of each line): 2022...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Calculate spectrogram with logarithmic-spaced frequencies
After some more research, I think it's impossible to do what I want with the spectrogram function. I think it only works with a ...

fast 2 Jahre vor | 0

| akzeptiert

Frage


Calculate spectrogram with logarithmic-spaced frequencies
I'm trying to calculate a spectrogram where the frequencies are logarithmicaly spaced, instead of the usual linear. I think my ...

fast 2 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


Error in script using copylink
I have a matlab script that runs as a cron job on Linux. A few days ago, the script started failing. I traced it to the copylink...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


yyaxis 'right' - can I have tick marks on both sides?
I'm creating a figure to illustrate data availability/quality. It's one plot with no subplots. See attached. I add a small plot...

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Simple interactive plot with variable time axis
I have a plot containing three subplots, all of which have date/time as the x axis. Whats the easiest way of making this plot i...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Calcuating equally-spaced sums from unevenly-spaced time-series data
I need to create an equally-spaced vector of values which are the sums from a vector of unequally-spaced values. More specifica...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I add an index value to an array value?
I have an array of reals, like this. 0.1 0.1 0.1 0.1 0.2 0.2 0.2 0.2 0.1 0.2 0.3 0.4 How can I add the horizontal i...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Default date format for plot tick labels
Is it possible to set a default format for datetick labels? Sometimes MATLAB gives me "mm/dd" when I prefer "dd/mm". I could e...

mehr als 2 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


Readtable gives unusual results reading data from a text file.
I'm trying to read a lot of text files using readtable. All the files have 7 columns of data, although the last column is usuall...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Testing for a string in a cell array in a structure
I want to find the matches to a string in a cell array of strings which is part of a structure. Strcmp works when I give it th...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


spectrogram - auto settings for zlim are too wide
Using the spectrogram function, the zlim settings that are created automatically seem to be too wide for my data. The resulting ...

fast 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


datenum on array of values - specifying the format
I can't seem to specify the format for datenum when I passi an array of values. Here is a snippet of my code: formatIn = 'dd/m...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Reading dates/times from a text file
I want to read all the dates and times from a text file into an array of serial date numbers. I've always done this in the past...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


exportgraphics: adding a margin
Is it possible to add a margin to figures saved using the exportgraphics function? It crops a tad too tightly for my needs.

mehr als 3 Jahre vor | 4 Antworten | 6

4

Antworten

Frage


How can I correct for gaps in an supposedly evenly spaced array
I have two one-dimensional arrays, data and datim, the latter containing date values. These are large arrays containing a days w...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden