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

How to get the same pixel points in an image using Euclidean Distance when the image is scaled up or down?

Think of the line that connects two points P & Q as the hypotenuse of a right triangle where the length of leg-1 is the x-distan...

How to get the same pixel points in an image using Euclidean Distance when the image is scaled up or down?

Think of the line that connects two points P & Q as the hypotenuse of a right triangle where the length of leg-1 is the x-distan...

alrededor de 4 horas ago | 0

Answered

Why does using normxcorr2 slow down my code seriously?

The normxcorr2 function is the bottleneck of processing speed in your code consuming 49% of the total processing time however, y...

Why does using normxcorr2 slow down my code seriously?

The normxcorr2 function is the bottleneck of processing speed in your code consuming 49% of the total processing time however, y...

1 día ago | 1

| accepted

Submitted

Draw randomly centered circles of various sizes

Set the range of radii, density, and other parameters to create a plot that draws randomly centered polygons with or without ove...

2 días ago | 24 downloads |

Answered

Change font size in column headings in App table

As of r2020a, the fontsize of VariableNames and RowNames cannot be altered. However, the r2020a release includes a larger an...

Change font size in column headings in App table

As of r2020a, the fontsize of VariableNames and RowNames cannot be altered. However, the r2020a release includes a larger an...

2 días ago | 1

Answered

How can i change the colours of segmentation on a chart pie?

Unforunately the pie() function does not allow you to directly specify the face color of each wedge as inputs. Here are two wa...

How can i change the colours of segmentation on a chart pie?

Unforunately the pie() function does not allow you to directly specify the face color of each wedge as inputs. Here are two wa...

3 días ago | 0

| accepted

Answered

How to plot pie chart in Matlab GUI using buttons?

Hint: "Labels" is not the same as "labels". Variable names are case sensitive.

How to plot pie chart in Matlab GUI using buttons?

Hint: "Labels" is not the same as "labels". Variable names are case sensitive.

3 días ago | 0

| accepted

Answered

Improving readability of Matlab graph

Method 1: remove some X|YTickLabels Add these lines to then end of your code after setting the axis limits and axis ticks. The...

Improving readability of Matlab graph

Method 1: remove some X|YTickLabels Add these lines to then end of your code after setting the axis limits and axis ticks. The...

4 días ago | 0

| accepted

Answered

I am not sure how to do this coding, can you please help!!

Since this is your assignment, I'll give you hints. I can give more hints if needed but you'll need to leave a comment showing ...

I am not sure how to do this coding, can you please help!!

Since this is your assignment, I'll give you hints. I can give more hints if needed but you'll need to leave a comment showing ...

6 días ago | 0

| accepted

Answered

imuSensor - why is the acceleration negated, when calculating the total acceleration?

Acceleration due to gravity is always negative. For example, if a falling object is affected only by gravity, its acceleration ...

imuSensor - why is the acceleration negated, when calculating the total acceleration?

Acceleration due to gravity is always negative. For example, if a falling object is affected only by gravity, its acceleration ...

6 días ago | 0

Submitted

copyUIAxes

Copies UIAxes to a new figure and recreates the legend and colorbar if they exist. Most UIAxes properties are copied, too.

7 días ago | 74 downloads |

Answered

Where are the default font settings for sgtitle?

sgtitle doesn't appear to use the default fontsize properties I tested: DefaultAxesFontSize, DefaultTextFontSize, DefaultUicontr...

Where are the default font settings for sgtitle?

sgtitle doesn't appear to use the default fontsize properties I tested: DefaultAxesFontSize, DefaultTextFontSize, DefaultUicontr...

7 días ago | 0

Answered

select 20 percent between two values

Use y = randsample(n,k) to select k random elements from a vector 1:n. % recordingList is an array that contains all of your re...

select 20 percent between two values

Use y = randsample(n,k) to select k random elements from a vector 1:n. % recordingList is an array that contains all of your re...

7 días ago | 0

Answered

How to change file extension via matlab?

This shows how to List all files in a given directory with the extension .out Copy the file and rename the extention .txt De...

How to change file extension via matlab?

This shows how to List all files in a given directory with the extension .out Copy the file and rename the extention .txt De...

7 días ago | 0

Answered

Changing Variable from logical to double

"How change Fx type from logical to double" FxDlb = double(Fx); alternatively, FxDlb = Fx * 1; % or FxDlb = Fx + 0;

Changing Variable from logical to double

"How change Fx type from logical to double" FxDlb = double(Fx); alternatively, FxDlb = Fx * 1; % or FxDlb = Fx + 0;

7 días ago | 0

| accepted

Answered

Trying to concentrate a cell containing tables

Summary of comments under the question: 1) Remove the datetime column from each table. T_noDT = cellfun(@(T){T(:,2:end)}, c) ...

Trying to concentrate a cell containing tables

Summary of comments under the question: 1) Remove the datetime column from each table. T_noDT = cellfun(@(T){T(:,2:end)}, c) ...

8 días ago | 0

| accepted

Answered

Error when using (plotting) one m file data into another m file.

(Comment copied to answers section). There could be several problems and if the same variable name is used in multiple scripts...

Error when using (plotting) one m file data into another m file.

(Comment copied to answers section). There could be several problems and if the same variable name is used in multiple scripts...

8 días ago | 0

Answered

How can I clear stuck help popups?

Note: This answer does not address the problem of stuck function hints and other pop-up messages internal to Matlab. It address...

How can I clear stuck help popups?

Note: This answer does not address the problem of stuck function hints and other pop-up messages internal to Matlab. It address...

8 días ago | 1

Answered

How can i plot a 3D waterfall ?

What does your code look like that produces the 2D plot? If the entire matrix is the 1st and only input to waterfall(), it shou...

How can i plot a 3D waterfall ?

What does your code look like that produces the 2D plot? If the entire matrix is the 1st and only input to waterfall(), it shou...

8 días ago | 0

| accepted

Answered

alternate to using "find" to determine indices?

"Is there a way to determine their indices using logical indexing...?" Yes, and logical indexing is usually a better way to ind...

alternate to using "find" to determine indices?

"Is there a way to determine their indices using logical indexing...?" Yes, and logical indexing is usually a better way to ind...

8 días ago | 0

| accepted

Answered

put the fit messenge on text box

Assuming your textbox handle is handles.textbox, and c is the cfit object, cText = evalc('c'); handles.textbox.Max = 2; % t...

put the fit messenge on text box

Assuming your textbox handle is handles.textbox, and c is the cfit object, cText = evalc('c'); handles.textbox.Max = 2; % t...

8 días ago | 1

| accepted

Answered

How to make this truck move across the bridge in an animation?

First of all, nice lorry (slow-clap). Here's how to make it drive forward along the x axis. You could add a Y-component of m...

How to make this truck move across the bridge in an animation?

First of all, nice lorry (slow-clap). Here's how to make it drive forward along the x axis. You could add a Y-component of m...

9 días ago | 0

| accepted

Answered

varfun for a cell array?

I didn't quite get the last part of your description but this should get you started. If you have trouble completing your goal,...

varfun for a cell array?

I didn't quite get the last part of your description but this should get you started. If you have trouble completing your goal,...

9 días ago | 0

| accepted

Answered

Modify a plot in a for loop

The idea is to collect all of the line object handles. I've also restructured your code; see the inline comments for details. ...

Modify a plot in a for loop

The idea is to collect all of the line object handles. I've also restructured your code; see the inline comments for details. ...

9 días ago | 1

| accepted

Answered

How to use bar function?

See the Display Groups of Bars example in the documentation. If you have any problems setting that up, provide your data and co...

How to use bar function?

See the Display Groups of Bars example in the documentation. If you have any problems setting that up, provide your data and co...

9 días ago | 1

| accepted

Answered

How to check for repeated values in a matrix?

If you're working with integers, check for repeated values using unique() repeatsTF = numel(a) == numel(unique(a)); However, ...

How to check for repeated values in a matrix?

If you're working with integers, check for repeated values using unique() repeatsTF = numel(a) == numel(unique(a)); However, ...

9 días ago | 1

| accepted

Answered

Input Argument type double

The update variable in your code is equal to 1 and is entered as the 2nd input to the clusterer but it doesn't fulfill the requi...

Input Argument type double

The update variable in your code is equal to 1 and is entered as the 2nd input to the clusterer but it doesn't fulfill the requi...

9 días ago | 0

| accepted

Answered

Using the drop down box in app designer

Problems: 1. You've got 3 variables named "value" and they all have the same value which is equal to the last of those variable...

Using the drop down box in app designer

Problems: 1. You've got 3 variables named "value" and they all have the same value which is equal to the last of those variable...

9 días ago | 0

Answered

Insufficient number of outputs from right hand side of equal sign to satisfy assignment.

To address your question, an anonymous function only returns a single output. So, x = PID(. . .) % This is fine, it retu...

Insufficient number of outputs from right hand side of equal sign to satisfy assignment.

To address your question, an anonymous function only returns a single output. So, x = PID(. . .) % This is fine, it retu...

9 días ago | 0

Answered

Help with 2D plot from a matrix

Continuing from the comments under the question. Using imagesc, you can change the tick labels using set(gca, 'XTick', 1:3, ...

Help with 2D plot from a matrix

Continuing from the comments under the question. Using imagesc, you can change the tick labels using set(gca, 'XTick', 1:3, ...

10 días ago | 0

Answered

Representing certain range of X axis using a single tick in MATLAB plot

Two options X = [1,2,3,4,5,6,7]; Y = [10,10,10,10,20,30,40]; xIdx = [1,5,6,7]; bar(X(xIdx), Y(xIdx)) ax = gca(); ax.XT...

Representing certain range of X axis using a single tick in MATLAB plot

Two options X = [1,2,3,4,5,6,7]; Y = [10,10,10,10,20,30,40]; xIdx = [1,5,6,7]; bar(X(xIdx), Y(xIdx)) ax = gca(); ax.XT...

11 días ago | 1

| accepted