Question

Confidence band around linear least-squares line

I am using lsline in Matlab 2016b to add a linear least-squares line to a scatter plot. I would like to add a 95% confidence ban...

4 years ago | 1 answer | 0

Question

Assigning a value to certain indexed elements of a struc variable

I am trying to assign a certain value to several elements of an indexed structure: indices = 1:3 people(indices).gender ...

4 years ago | 1 answer | 0

Question

Generalising number of factorial input elements of a function

Dear Matlab community, I would like to plot data representing subject-wise scores as beeswarm plots (showing variability acro...

4 years ago | 0 answers | 0

Question

aoctool to do 1-way ANCOVAs and scatter-plots

I have two groups of subjects, each with scores on a memory task and on an IQ test. I would like to check whether there's a sign...

4 years ago | 0 answers | 0

Question

Transition (animation) between two data plots

I'll need to make a fancy presentation of my data and I'm looking for some advice on data visualisation (transition between plot...

4 years ago | 0 answers | 0

Question

Keyboard shortcut to move DataCursor tooltip to previous/next data point

Once I select a data point in my plot using the Data Cursor tool, it would be very useful to be able to switch back and forth be...

4 years ago | 1 answer | 0

Question

Suitability of aoctool for 1-way ANCOVA and scatter-plot

I have two groups of subjects, each with scores on a memory task and on an IQ test. I would like to check whether there's a sign...

4 years ago | 0 answers | 0

Question

Using aoctool for a 1-way ANCOVA (+plot)

I have two groups of subjects, each with scores on a memory task and on an IQ test. I would like to check whether there's a sign...

4 years ago | 2 answers | 0

Question

Plotting a single time series with double y axes, differently labelled

I would like to plot a time series and have the two y axes (left and right) labelled differently (say, in two different language...

4 years ago | 3 answers | 0

Question

Confusing documentation for analysis of variance (ANOVA)

Reading the documentation for Matlab's repeated-measures ANOVA, I noticed two things that didn't make sense to me (I am reasonab...

5 years ago | 1 answer | 1

Answered

Variable highlighting sometimes doesn't work (Editor)

caused by a return command I had in my script somewhere, that made some lines non-reachable

Variable highlighting sometimes doesn't work (Editor)

caused by a return command I had in my script somewhere, that made some lines non-reachable

5 years ago | 1

| accepted

Question

Controlling the amount of horizontal jitter/offset for a stacked bar graph

A bargraph with stacked/grouped bars will have the horizontal positions of these bars slightly offset from their standard indice...

5 years ago | 0 answers | 0

Question

Removing the zero that precedes the decimal point

I would like to have numbers between 0 and 1 be displayed such as .64 instead of 0.64, i.e. omitting the initial zero. Since ...

5 years ago | 3 answers | 0

Question

Variable highlighting sometimes doesn't work (Editor)

With some variables, clicking on them in the Editor does not highlight other occurrences of that same variable within the curren...

5 years ago | 1 answer | 1

Question

Data Cursor tool shows value close (but not equal) to actually plotted value, not a rounding issue

I have a series of subplots each of which plots blue data points (representing values of 1D vectors) at corresponding x location...

5 years ago | 0 answers | 0

Question

Defining&visualising 3-or-more-dimensional arrays using the Variables/Workspace window

I'd like to use the Variables/Workspace window to visually define a 3D array consisting of N matrices, by pasting the values of ...

5 years ago | 1 answer | 0

Question

Mixed-effects model for response data (fitlme)

I have preference ratings (integers from 1-to-7) for k=80 stimuli, obtained from N=30 subjects. I want to use a mixed-effects mo...

5 years ago | 0 answers | 0

Question

hist3 not returning expected output (weird range for indices etc)

I was trying to use hist3 to visually display a two-dimensional distribution, however the function behaves unexpectedly. I expec...

5 years ago | 1 answer | 0

Question

hist3 not returning expected output

I was trying to use hist3 to visually display a two-dimensional distribution, however the function behaves unexpectedly. I thoug...

5 years ago | 0 answers | 0

Question

colorbar to vary brightness level given a certain color hue

I use the following code to produce these types of 2D histograms, one for each of several conditions: matrix = [ratin...

5 years ago | 2 answers | 0

Question

stem plot with bars that don't go through zero

I'm trying to achieve a plot that looks like <https://upload.wikimedia.org/wikipedia/commons/8/8f/NYW-confidence-interval.svg th...

5 years ago | 3 answers | 0

Question

2D distribution/histogram's center of mass

I have a bunch of 2D histograms showing the relative dependency of two variables X and Y, under several conditions. Each histogr...

5 years ago | 0 answers | 0

Question

Legend/colorbar for scatterplot with colour-coded subject-wise markers

I am simplifying my problem to make it easier to answer. Say I have ratings on two measures, x and y, from N subjects. I would l...

5 years ago | 1 answer | 0

Question

Setting font size separately for x&y axes

I am using the Property Editor in Matlab 2016a to customise my plot for publication. I would like to increase the font size of m...

5 years ago | 1 answer | 0

Question

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

5 years ago | 1 answer | 0

Question

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

5 years ago | 1 answer | 0

Question

Averaging multi-dimensional arrays across several dimensions at once

Assume I have a 5-dimensional array X, and I want to compute the mean value (a scalar) of its elements across several dimensions...

5 years ago | 3 answers | 0

Question

Help Matlab understand where a (to-be-folded) code section begins and ends

Hello, I would like certain sections (rows) in my Matlab script to be foldable as a section code (cell). These rows do not ne...

5 years ago | 0 answers | 0

Question

Beginnning of file considered as code section

In my Matlab preferences I only have Sections enabled under Code Folding, so that I can fold cells (code sections). Even so, the...

5 years ago | 1 answer | 0