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 display repeated sequence of answer of conversion in a single msgbox?

Demo: msg = {'First line','Second line', 'Third line'}; msgbox(sprintf('%s\n',msg{:})) Ignore the appearance of the msgbox ab...

How to display repeated sequence of answer of conversion in a single msgbox?

Demo: msg = {'First line','Second line', 'Third line'}; msgbox(sprintf('%s\n',msg{:})) Ignore the appearance of the msgbox ab...

environ 9 heures ago | 0

Answered

How to insert a Data Cursor on a specif location from command ?

Update: as of r2019b you can use datatip(__) to programmatically place a data tip. Demo: fig = figure(); ax1 = subplot(1,2...

How to insert a Data Cursor on a specif location from command ?

Update: as of r2019b you can use datatip(__) to programmatically place a data tip. Demo: fig = figure(); ax1 = subplot(1,2...

environ 10 heures ago | 0

Answered

How to set data cursor to max value programically?

Update: as of r2019b you can use datatip(__) to programmatically place a data tip. Demo: fig = figure(); ax1 = subplot(1,2...

How to set data cursor to max value programically?

Update: as of r2019b you can use datatip(__) to programmatically place a data tip. Demo: fig = figure(); ax1 = subplot(1,2...

environ 11 heures ago | 0

Submitted

getDataTips - Get data tip text and handles

Extract data tip text and handles.

environ 13 heures ago | 2 downloads |

Answered

clusterization of data in 1-D vector

There are lots of alternatives. Input A is a vector of 1s and 0s. n is minimum number of 0s between 1s separate groups of 1s....

clusterization of data in 1-D vector

There are lots of alternatives. Input A is a vector of 1s and 0s. n is minimum number of 0s between 1s separate groups of 1s....

2 jours ago | 0

| accepted

Answered

Mean of Normal Distribution

"Is there any way to apply the function to all columns?" Yes, use varfun(), assuming the table contains all numeric values. mu...

Mean of Normal Distribution

"Is there any way to apply the function to all columns?" Yes, use varfun(), assuming the table contains all numeric values. mu...

2 jours ago | 1

| accepted

Answered

Topography in a pcolor graph

The types of graphics objects that can be plotted to geographic axes are limited. For wind velocity, quiver arrows would be nic...

Topography in a pcolor graph

The types of graphics objects that can be plotted to geographic axes are limited. For wind velocity, quiver arrows would be nic...

2 jours ago | 0

| accepted

Answered

Binning/Sorting 3D data sets

Excluding reading-in the data (first line), this entire solution takes about 0.25 seconds which is 845 times faster than the ori...

Binning/Sorting 3D data sets

Excluding reading-in the data (first line), this entire solution takes about 0.25 seconds which is 845 times faster than the ori...

2 jours ago | 0

| accepted

Answered

While loop problems finding lowesst value

"I dont understand whats wrong with my code" Let's go line-by-line. odd = rem(x, 2) ~= 0 Odd numbers are whole numbers. rem...

While loop problems finding lowesst value

"I dont understand whats wrong with my code" Let's go line-by-line. odd = rem(x, 2) ~= 0 Odd numbers are whole numbers. rem...

2 jours ago | 0

Answered

How do you store input to a list?

Store responses in a cell array n = 5; %number of questions you're asking response = cell(n,1); ecprompt='Counts of Equati...

How do you store input to a list?

Store responses in a cell array n = 5; %number of questions you're asking response = cell(n,1); ecprompt='Counts of Equati...

2 jours ago | 0

Answered

Boxplot with multiple figures

Turn the first input into a vector, boxplot([HAL; one2three],group); % ^ or use a matrix without a grouping variab...

Boxplot with multiple figures

Turn the first input into a vector, boxplot([HAL; one2three],group); % ^ or use a matrix without a grouping variab...

2 jours ago | 0

| accepted

Answered

How to get index and color matrix from Data cursor

"Is there a way to get the index and color matrix to the workspace?" Method 1: use getDataTip getDataTip is a function on the...

How to get index and color matrix from Data cursor

"Is there a way to get the index and color matrix to the workspace?" Method 1: use getDataTip getDataTip is a function on the...

2 jours ago | 1

| accepted

Answered

Function requires more inputs

"I need MatLab to sum the w values one at a time until it reaches the last and 5th w value" B = cumsum(w) "...as well as multi...

Function requires more inputs

"I need MatLab to sum the w values one at a time until it reaches the last and 5th w value" B = cumsum(w) "...as well as multi...

3 jours ago | 0

Answered

if it is greater than 75 percent missing data

Here's an approach you can apply to your data, % Create a table of year-month-day-hour-min-second-rain data with some of the h...

if it is greater than 75 percent missing data

Here's an approach you can apply to your data, % Create a table of year-month-day-hour-min-second-rain data with some of the h...

3 jours ago | 0

Answered

How to created a dashed box around a specific set of data on a plot

Use rectangle('Position',pos) to draw a rectangled within a subplot. The labels in subplot #6 are not appearing because you're...

How to created a dashed box around a specific set of data on a plot

Use rectangle('Position',pos) to draw a rectangled within a subplot. The labels in subplot #6 are not appearing because you're...

3 jours ago | 0

Answered

Tiledlayout issues: colorbar title and spacing

"At first, it seemed like a good solution to some of the difficulties with subplot, but I'm finding it comes with it's own diffi...

Tiledlayout issues: colorbar title and spacing

"At first, it seemed like a good solution to some of the difficulties with subplot, but I'm finding it comes with it's own diffi...

6 jours ago | 0

| accepted

Answered

Scatterhist function not allowing for boxplot on the y-axis to stay

It looks like you're trying to add a boxplot to the y-historgram axes. Recall that the y-histogram in scatterhist is reversed. ...

Scatterhist function not allowing for boxplot on the y-axis to stay

It looks like you're trying to add a boxplot to the y-historgram axes. Recall that the y-histogram in scatterhist is reversed. ...

7 jours ago | 0

Answered

How to put a boxplot on a scatterplot/histogram?

scatterhistogram() is its own class and does not provide access to its axes. Instead, use the older scatterhist(). It's output...

How to put a boxplot on a scatterplot/histogram?

scatterhistogram() is its own class and does not provide access to its axes. Instead, use the older scatterhist(). It's output...

7 jours ago | 0

Answered

Data points in regression with different colors and shapes

Since you collapsed M into a column vector using M(:) and Y apparently has the same size and shape, then your linear model has 1...

Data points in regression with different colors and shapes

Since you collapsed M into a column vector using M(:) and Y apparently has the same size and shape, then your linear model has 1...

7 jours ago | 0

| accepted

Answered

How to display data on plot without overlapping displayed data.

You could rotate the text to 45 degrees (or any angle) using text(___, 'rotation',45)

How to display data on plot without overlapping displayed data.

You could rotate the text to 45 degrees (or any angle) using text(___, 'rotation',45)

7 jours ago | 1

| accepted

Answered

Avoiding loops in bootstrap

Bootstrapping is an iterative process. Even if you use a method that doesn't require you to write a loop, the functions you're ...

Avoiding loops in bootstrap

Bootstrapping is an iterative process. Even if you use a method that doesn't require you to write a loop, the functions you're ...

8 jours ago | 0

Answered

How to remove the sec from the time when Timetable writing to .txt file?

Convert timetable to table using T = timetable2table(TT) Convert the duration column using S = seconds(X) Write that table usi...

How to remove the sec from the time when Timetable writing to .txt file?

Convert timetable to table using T = timetable2table(TT) Convert the duration column using S = seconds(X) Write that table usi...

8 jours ago | 0

| accepted

Answered

How do you mark and extract an area from an imagesc-figure?

"I would like to manually mark a certain area and extract the data within this area." There's a few things you could do. Check...

How do you mark and extract an area from an imagesc-figure?

"I would like to manually mark a certain area and extract the data within this area." There's a few things you could do. Check...

8 jours ago | 1

Answered

Plotting only the year of a column vector with full date

Use xtickformat or datetick Demo: dt = datetime(1999,01,01) + days(1:100:5000); y = rand(size(dt)); ax = gca(); plot...

Plotting only the year of a column vector with full date

Use xtickformat or datetick Demo: dt = datetime(1999,01,01) + days(1:100:5000); y = rand(size(dt)); ax = gca(); plot...

8 jours ago | 0

| accepted

Answered

what is the value for L2 regularization coeff, by default,while training?

I think you're looking for the L2Regularization Solver Option.

what is the value for L2 regularization coeff, by default,while training?

I think you're looking for the L2Regularization Solver Option.

8 jours ago | 0

Answered

how to make intervals in a bar graph

For continuous intervals Since your intervals are continuous, you should be using histogram() instead of bar(). histogram('Bi...

how to make intervals in a bar graph

For continuous intervals Since your intervals are continuous, you should be using histogram() instead of bar(). histogram('Bi...

8 jours ago | 0

Answered

Does Ctrl+C interrupt after executing all commands in a line?

Q1 & Q2 & Q3: No. If ctrl+c is pressed before that line is executed or perhaps even while that line is executed it will be int...

Does Ctrl+C interrupt after executing all commands in a line?

Q1 & Q2 & Q3: No. If ctrl+c is pressed before that line is executed or perhaps even while that line is executed it will be int...

9 jours ago | 0

| accepted

Answered

change the lines' widths in a stem plot, without changing the markers edges widths?

Method 1: Set markers separately x = 1:10; y = [2 5 4 1 2 4 1 8 1 2]; figure() stem(x,y,'b-','LineWidth',3,'Marker','none') ...

change the lines' widths in a stem plot, without changing the markers edges widths?

Method 1: Set markers separately x = 1:10; y = [2 5 4 1 2 4 1 8 1 2]; figure() stem(x,y,'b-','LineWidth',3,'Marker','none') ...

9 jours ago | 0

Answered

Error using table2array -- Input argument must be a table.

I don't see a question. Apparently app.UITable.Data isn't a table. This can happen when the data are from the same class. In...

Error using table2array -- Input argument must be a table.

I don't see a question. Apparently app.UITable.Data isn't a table. This can happen when the data are from the same class. In...

9 jours ago | 0

Answered

how to assign colour to a double plot by clicking on graph in UIAxes appdesinger Matlab (R2020a)?

Line color can be changed when the figure is in Edit-plot mode by right-clicking on the line which shows the lines context menu ...

how to assign colour to a double plot by clicking on graph in UIAxes appdesinger Matlab (R2020a)?

Line color can be changed when the figure is in Edit-plot mode by right-clicking on the line which shows the lines context menu ...

9 jours ago | 1

| accepted