z8080

0

votes
0

answer
4

views

Finding all occurences of a string within a cell array (itself part of a struc)

I have the following structure dataDens = dens: [1x172 double] level: {1x172 cell} raga: {1x172 cell} within which dataDens.raga consists of (reducing the number of columns below for simplicity) Columns 1 through 3 'Multani' 'Tori' 'Tori' I'd like to find the indices at which 'Tori' appears...
z8080
1

votes
0

answer
241

views

Confidence band around linear least-squares line (Matlab)

I am using the Matlab function lsline to add a linear least-squares line to a scatter plot. I would like to add a 95% confidence band around that fit line, such that it looks like this (plot is made with the python function seaborn): However, lsline returns no fit parameters from which to construct...
z8080
1

votes
1

answer
254

views

Matlab: mix-up of built-in and external functions

Matlab (2015a) is behaving weirdly: a number of builtin functions are not responding as expected. For instance, typing ttest([1 2], [1 2]) results in Error using size Dimension argument must be a positive integer scalar within indexing range. Error in nanstd (line 59) tile(dim) = size(x,dim); Error...
z8080
1

votes
1

answer
130

views

Matlab - Error bars added to column plot instead of regular line plot, and stacked 2x2

I would like to create a 2x2 plot with error bars, where each mean is represented by a column rather than by a marker (data point), something like this: The errorbar function in Matlab seems to not have the option to make columns instead of simple markers, and also no option to stack the four entiti...
z8080
3

votes
0

answer
61

views

Finding user images based on keywords/tags and precise map location

For a given geographical location, defined either as a place-of-interest or as a delineated area on the map, I would like to find user-submitted pictures whose tag matches a certain keyword. For instance, I'd like to find pictures tagged by users with the word 'rainbow', and whose location is within...
z8080
2

votes
1

answer
36

views

Matlab legend for two plots only applies to second plot

I need to plot data of two vectors, and want the data points of each to be shown in a different colour that is explaned in a legend. However, the code below displays only the legend for the second one. What am I doing wrong? for i_plot = 1 : plot_step : N subplot(N, 1, i_plot) h_A = plot(bookmarksA(...
z8080
3

votes
2

answer
17k

views

Youtube ?rel=0 tag no longer working

I was trying to share a Youtube link and wanted the person to just see that clip without any of the irrelevant suggestions that pop up next to it. I knew that adding ?rel=0 (or &rel=0) at the end of the URL used to achieve this, but this doesn't seem to be working anymore. After googling a bit, I fo...
z8080
3

votes
1

answer
2.9k

views

Grouping Figures separately into windows and tabs

I have 4 plots to make, of vectors y1, y2, y3 and y4, all as a function of a vector x. I would like the first two plots to be grouped as tabs within a single Figure window, and the next two plots also grouped as tabs but in a separate window. I tried this code: figure set(0,'DefaultFigureWindowStyle...
z8080
2

votes
1

answer
70

views

Controlling scatterhist bar colors

I was trying to make the bars in my scatterhist plot be of the same color as the markers: x = randn(1,20); y = randn(1,20); myColour = [1 0 0]; % red scatterhist(x, y, 'Color', myColour); mygca = get(gca,'children'); set(mygca,'markerfacecolor', myColour); However, the bars are of a slightly differe...
z8080
2

votes
1

answer
216

views

Matlab plot saved as (vector) EMF but rendered as raster

I have Matlab code that produces an array of subplots that looks like this: When I save this as an EMF file (normally a vector format) and insert in Powerpoint or view with Inkscape, then zoom in closely on the image, it looks pixelated, and clearly made up of a single encapsulated object as opposed...
z8080