Email: feel free to contact me regarding my shared files on the file exchange. I don't do free consulting outside of the forum so if you have a Matlab question, post the question to the forum and you may email me the link to the question.

About me: Finishing PhD soon on topics related to vision science; neurophysiology; sensory-motor feedback and control; control systems; steering & navigation; multisensory integration; top-down bottom-up feedback loop.

"If I had only one hour to save the world, I would spend fifty-five minutes defining the problem, and only five minutes finding the solution." -Albert Einstein

"An expert is a person who has made all the mistakes that can be made in a very narrow field." -Niels Bohr

"If you are not embarrassed by the first version of your product, you've launched too late" - Reid Hoffman

Answered

Multiple legends on Axes in App Designer?

Only one legend can be associated with a pair of axes. When a second legend is assigned to axes, it replaces the first one. I...

Multiple legends on Axes in App Designer?

Only one legend can be associated with a pair of axes. When a second legend is assigned to axes, it replaces the first one. I...

etwa 8 Stunden ago | 0

Answered

Binned bivariate colormap(let the colors indicate the average of third properties for the bins

The idea is to bin the x and y values and to compute the mean of z values within each bin. Those data can be used in histogram2...

Binned bivariate colormap(let the colors indicate the average of third properties for the bins

The idea is to bin the x and y values and to compute the mean of z values within each bin. Those data can be used in histogram2...

etwa 13 Stunden ago | 1

| accepted

Answered

changing interactionplot font size

Assuming no other text objects exist in the figure, figHandle = interactionplot(___) txtHandles = findobj(figHandle,'type','t...

changing interactionplot font size

Assuming no other text objects exist in the figure, figHandle = interactionplot(___) txtHandles = findobj(figHandle,'type','t...

etwa 14 Stunden ago | 0

| accepted

Answered

Writing titles and x/y labels inside a for loop and if-statements

Another problem is that you're not providing axis handles so all of the graphics commands are being applied to the same axes. H...

Writing titles and x/y labels inside a for loop and if-statements

Another problem is that you're not providing axis handles so all of the graphics commands are being applied to the same axes. H...

2 Tage ago | 0

Answered

How can I put a symbol (~) above a letter?

An alternative to using LaTeX to represent a diacritical character in a text object is to use a combining character to join a gl...

How can I put a symbol (~) above a letter?

An alternative to using LaTeX to represent a diacritical character in a text object is to use a combining character to join a gl...

2 Tage ago | 0

Answered

Scatterhist: width of Boxplot

> I'd like the width of the left boxplot to be the same as the height boxplot below the scatter plot [in scatterhist] Key point...

Scatterhist: width of Boxplot

> I'd like the width of the left boxplot to be the same as the height boxplot below the scatter plot [in scatterhist] Key point...

3 Tage ago | 0

Answered

Tiled layout with boxplot and 'Padding', 'none'

Why this is happening The boxplot function uses a local function setLabelappdata() to adjust the axes' OuterPosition, PositionC...

Tiled layout with boxplot and 'Padding', 'none'

Why this is happening The boxplot function uses a local function setLabelappdata() to adjust the axes' OuterPosition, PositionC...

3 Tage ago | 0

Answered

Is it possible to have larger (than 16-by-16) pointer size?

> Is there anyway that I can make the pointer larger than 16-by-16? Update: Starting in r2016b PointerShapeCData can be 16x16 o...

Is it possible to have larger (than 16-by-16) pointer size?

> Is there anyway that I can make the pointer larger than 16-by-16? Update: Starting in r2016b PointerShapeCData can be 16x16 o...

4 Tage ago | 1

Answered

How do I find built in sounds?

See Example Audio Data toward the bottom of this list. help audiovideo To find the location of a file, which chirp.mat

How do I find built in sounds?

See Example Audio Data toward the bottom of this list. help audiovideo To find the location of a file, which chirp.mat

4 Tage ago | 0

| accepted

Answered

Is it possible to Plot a Music Visualizer?

If you search the internet for "matlab audio analysis" you'll see very many relevant hits across many platforms. Plus, there's ...

Is it possible to Plot a Music Visualizer?

If you search the internet for "matlab audio analysis" you'll see very many relevant hits across many platforms. Plus, there's ...

4 Tage ago | 0

Answered

Binning a 3D scatter plot

3D density plot demos Here's an assortment of 3D density visualizations though there are many other ways to visualize 3D densit...

Binning a 3D scatter plot

3D density plot demos Here's an assortment of 3D density visualizations though there are many other ways to visualize 3D densit...

4 Tage ago | 0

| accepted

Answered

change color in uilable

The FontColor property of uilabel affects the entire label. There is no built-in method of coloring parts of labels. As a wo...

change color in uilable

The FontColor property of uilabel affects the entire label. There is no built-in method of coloring parts of labels. As a wo...

4 Tage ago | 0

| accepted

Answered

Order of legends in stacked bar plot

Stacked bars are stacked upward. That means the bottom layer of bars show column 1 of the input matrix and the top later of bar...

Order of legends in stacked bar plot

Stacked bars are stacked upward. That means the bottom layer of bars show column 1 of the input matrix and the top later of bar...

4 Tage ago | 0

Answered

xlim listener for zoom reset and linkaxes strange behavior

Starting in r2021a, you can supply a LimitsChangedFcn function the x-axes (or any of the x/y/z axes). This callback function ov...

xlim listener for zoom reset and linkaxes strange behavior

Starting in r2021a, you can supply a LimitsChangedFcn function the x-axes (or any of the x/y/z axes). This callback function ov...

5 Tage ago | 1

Answered

readjusting Y limits on subplots

Another approach is to use linkaxes to link the y-axis limits of all subplots. When combined with axis tight, that y-axis range...

readjusting Y limits on subplots

Another approach is to use linkaxes to link the y-axis limits of all subplots. When combined with axis tight, that y-axis range...

5 Tage ago | 0

Highlighted

New in r2021a: LimitsChangedFcn

*New in r2021a, |<https://www.mathworks.com/help/matlab/ref/matlab.graphics.axis.decorator.numericruler-properties.html#bun6izd-...

5 Tage ago | 2

Answered

How to apply a colormap to rgb image ?

As the error message indicates, for the syntax colormap(target,map), target is an axis handle but you're not supplying an axis h...

How to apply a colormap to rgb image ?

As the error message indicates, for the syntax colormap(target,map), target is an axis handle but you're not supplying an axis h...

6 Tage ago | 1

| accepted

Answered

I am wondering if this a no output no input function. If it is not what type of function is it?

Functions do not have to have inputs or outputs. For example, this function below searches for invisible figures and makes th...

I am wondering if this a no output no input function. If it is not what type of function is it?

Functions do not have to have inputs or outputs. For example, this function below searches for invisible figures and makes th...

6 Tage ago | 0

Answered

Use two colormaps on 3D figure.

Follow this demo. The colorbar ranges approximately from -6 to 8 and the transition between Winter and Summer colormaps happens...

Use two colormaps on 3D figure.

Follow this demo. The colorbar ranges approximately from -6 to 8 and the transition between Winter and Summer colormaps happens...

6 Tage ago | 1

| accepted

Answered

Resorting Rows in a Table with Panel Data

See sortrows. If there are any problems implementing that function, show us what you've got and we can help straighten it out...

Resorting Rows in a Table with Panel Data

See sortrows. If there are any problems implementing that function, show us what you've got and we can help straighten it out...

6 Tage ago | 0

| accepted

Answered

App designer - how to use numpad instead of number keys?

Place a break point at the top of the UIFigureKeyPress function. Press a numpad key and look at the value of event.Key to deter...

App designer - how to use numpad instead of number keys?

Place a break point at the top of the UIFigureKeyPress function. Press a numpad key and look at the value of event.Key to deter...

6 Tage ago | 1

| accepted

Answered

How to add spaces between bars on a histogram

> I would like to add a space between each bar of the histogram, with x axis of the graph being integer numbers. Sounds like yo...

How to add spaces between bars on a histogram

> I would like to add a space between each bar of the histogram, with x axis of the graph being integer numbers. Sounds like yo...

6 Tage ago | 1

| accepted

Answered

Constant subplot size and variable figure size

I used to use that file exchange function and it has been very useful but tiledlayout is now the better option. Here's a summar...

Constant subplot size and variable figure size

I used to use that file exchange function and it has been very useful but tiledlayout is now the better option. Here's a summar...

6 Tage ago | 0

Answered

how to zoom on a figure with multiple axes

Multiple axes with same axis limits If the xlim and ylim properties are the same between both axes, use linkaxes or linkprop to...

how to zoom on a figure with multiple axes

Multiple axes with same axis limits If the xlim and ylim properties are the same between both axes, use linkaxes or linkprop to...

6 Tage ago | 0

| accepted

Answered

Return variables or elements with similar corresponding values

I'm currious what you searched for. Are you looking for a Matlab function that reads in an excel file that has two columns of d...

Return variables or elements with similar corresponding values

I'm currious what you searched for. Are you looking for a Matlab function that reads in an excel file that has two columns of d...

6 Tage ago | 0

| accepted

Answered

Saving figure as a image

Comparing the two png files in one of your previous comments shows an upper y axis in one figure that doesn't exist in the secon...

Saving figure as a image

Comparing the two png files in one of your previous comments shows an upper y axis in one figure that doesn't exist in the secon...

6 Tage ago | 0

| accepted

Answered

Why do I keep getting this error message?

>Why do I keep getting this error message? (T(j+1,i-1)*-lamda)+(T(j+1,i)*(1+2*lamda))+(T(j+1,i+1)*-lamda)= dt*q_x(i-1)+T(j,i);...

Why do I keep getting this error message?

>Why do I keep getting this error message? (T(j+1,i-1)*-lamda)+(T(j+1,i)*(1+2*lamda))+(T(j+1,i+1)*-lamda)= dt*q_x(i-1)+T(j,i);...

11 Tage ago | 0

Answered

How to write repeating questions

I assume you're using input to prompt users to respond. This is the least robust, most error-prone method of getting informatio...

How to write repeating questions

I assume you're using input to prompt users to respond. This is the least robust, most error-prone method of getting informatio...

11 Tage ago | 1

| accepted

Answered

How to Merge Color using "Area" Command?

You can use a patch object with interpolated face color. This example in the documentation shows how to do this. Once you g...

How to Merge Color using "Area" Command?

You can use a patch object with interpolated face color. This example in the documentation shows how to do this. Once you g...

11 Tage ago | 0

Answered

Graph Legend not picking up third plot marker

There are multiple objects with the green asterisk and they are higher up in the uistack than the red squares. Since you're prov...

Graph Legend not picking up third plot marker

There are multiple objects with the green asterisk and they are higher up in the uistack than the red squares. Since you're prov...

11 Tage ago | 0