Finishing PhD soon.

Vision science; neurophysiology (single unit); sensory-motor feedback and control; control systems; steering & navigation; multisensory integration; top-down bottom-up feedback loop.

Helping others is the greatest learning opportunity.

(I don't reply to personal email messages through matlab central unless they pertain to one of my file exchanges).

University of Rochester, NY

New Bulgarian University, Sofia Bulgaria

Answered

How can I extract values from a histogram (figure)?

If you have access to the script/function that produced the histogram and the input data, you should get the histogram values fr...

How can I extract values from a histogram (figure)?

If you have access to the script/function that produced the histogram and the input data, you should get the histogram values fr...

4 hours ago | 0

Answered

ERROR message when running code

"I have a problem with "subplot" itself." ... "Attempt to execute SCRIPT subplot as a function: subplot(1, 1, 1);" This is a d...

ERROR message when running code

"I have a problem with "subplot" itself." ... "Attempt to execute SCRIPT subplot as a function: subplot(1, 1, 1);" This is a d...

5 hours ago | 0

Answered

fprintf length of vector

fprintf('Length of vector is %d\n', length(V)) The " %d " specifies that the number to be printed is an integer which should al...

fprintf length of vector

fprintf('Length of vector is %d\n', length(V)) The " %d " specifies that the number to be printed is an integer which should al...

5 hours ago | 0

Answered

turning legend off in xline function

Option 1: Use object handles Specity which objects should appear in the legend and produce the legend at the end after all plot...

turning legend off in xline function

Option 1: Use object handles Specity which objects should appear in the legend and produce the legend at the end after all plot...

5 hours ago | 0

Answered

Return back to a specific line

Here's a functional example that you can run or step through in debug mode. The flag 'continueForLoop' determines whether the fo...

Return back to a specific line

Here's a functional example that you can run or step through in debug mode. The flag 'continueForLoop' determines whether the fo...

5 hours ago | 0

Answered

how can i plot a half sine wave plot or a cosine wave which has a origin as a centre ?

"can we plot a sine wave which half wave i.e. positive side only" Yes. Here's a hint. This produces one full cycle of a sin c...

how can i plot a half sine wave plot or a cosine wave which has a origin as a centre ?

"can we plot a sine wave which half wave i.e. positive side only" Yes. Here's a hint. This produces one full cycle of a sin c...

5 hours ago | 0

Answered

how to create black and white checkerboards with different number of squares

The output of checkerboard() contains normalized values where 0 represents black, 1 represents white, and values between represe...

how to create black and white checkerboards with different number of squares

The output of checkerboard() contains normalized values where 0 represents black, 1 represents white, and values between represe...

5 hours ago | 0

Answered

Creating Timetables: Error Message in SampleRate

Here's a link to the 2017b documentation for timetable(). https://www.mathworks.com/help/releases/R2017b/matlab/ref/timetable....

Creating Timetables: Error Message in SampleRate

Here's a link to the 2017b documentation for timetable(). https://www.mathworks.com/help/releases/R2017b/matlab/ref/timetable....

6 hours ago | 2

| accepted

Answered

Read a certain amount of rows from a column of an excel file

Here are a couple option demonstrating how to work with the matrix you've already loaded into matlab. If your data is a cell ar...

Read a certain amount of rows from a column of an excel file

Here are a couple option demonstrating how to work with the matrix you've already loaded into matlab. If your data is a cell ar...

6 hours ago | 0

Answered

How to add zero at the very beginning of my column matrix?

Use a semicolon instead of a comma. The variable 'Eng_Strain' is a column vector so you need to vertically concatenate the zer...

How to add zero at the very beginning of my column matrix?

Use a semicolon instead of a comma. The variable 'Eng_Strain' is a column vector so you need to vertically concatenate the zer...

1 day ago | 0

| accepted

Answered

BoxPlot with datetime in Y-axis?

"How can I draw a boxplot with datetime value in the y axis? " Convert the datetime to numeric and then use datetick() to displ...

BoxPlot with datetime in Y-axis?

"How can I draw a boxplot with datetime value in the y axis? " Convert the datetime to numeric and then use datetick() to displ...

1 day ago | 1

| accepted

Answered

Find rows in matrix A that contain value x, find() fails

This will return a logical vector the same length as the number of rows in your matrix. 'True' values (1) mark rows that have a...

Find rows in matrix A that contain value x, find() fails

This will return a logical vector the same length as the number of rows in your matrix. 'True' values (1) mark rows that have a...

1 day ago | 0

| accepted

Answered

Linearization of points problem

In this case, the error message clearly tells you what the problem is. Error using linearize (line 132) The first input argum...

Linearization of points problem

In this case, the error message clearly tells you what the problem is. Error using linearize (line 132) The first input argum...

1 day ago | 0

| accepted

Answered

Matrix problem with my vectors

"I am tryin to create a vector of angles in incrments of 5 from -5 to 25" angles = -5 : 5 : 25 Result: angles = -5 0...

Matrix problem with my vectors

"I am tryin to create a vector of angles in incrments of 5 from -5 to 25" angles = -5 : 5 : 25 Result: angles = -5 0...

1 day ago | 0

Answered

How do I create more than one plot at a time in a script?

Create the different axes prior to your loops. Then specify which axes should be used for each histogram. Here's an example th...

How do I create more than one plot at a time in a script?

Create the different axes prior to your loops. Then specify which axes should be used for each histogram. Here's an example th...

2 days ago | 0

| accepted

Answered

finding in which row two array has equal values

% Create fake data for the example B = 1:621; A = randi(621, 500000, 1); % Loop through each element of B, return the row...

finding in which row two array has equal values

% Create fake data for the example B = 1:621; A = randi(621, 500000, 1); % Loop through each element of B, return the row...

2 days ago | 1

| accepted

Answered

Indexing different time ranges from a Timetable.

"First is I want to select all times from 11am to 12pm irrespective of the date. " % Make fake data MeasurementTime = (dateti...

Indexing different time ranges from a Timetable.

"First is I want to select all times from 11am to 12pm irrespective of the date. " % Make fake data MeasurementTime = (dateti...

2 days ago | 1

| accepted

Answered

Stop for-loop at the second last column

Here's how to start at the 2nd column and stop at the second to last column for i = 2 : size(a,2)-1 %or for i = 2 : leng...

Stop for-loop at the second last column

Here's how to start at the 2nd column and stop at the second to last column for i = 2 : size(a,2)-1 %or for i = 2 : leng...

2 days ago | 0

| accepted

Answered

I cannot retrieve data from a uitable with app designer

Check out the "ColumnEditable" property:https://www.mathworks.com/help/matlab/ref/matlab.ui.control.tableappd-properties.html I...

I cannot retrieve data from a uitable with app designer

Check out the "ColumnEditable" property:https://www.mathworks.com/help/matlab/ref/matlab.ui.control.tableappd-properties.html I...

2 days ago | 0

| accepted

Answered

print a circular disk onto my graph

Ironically, you can use the rectangle() function with 100% curvature to plot a circle. The position property specifies the lo...

print a circular disk onto my graph

Ironically, you can use the rectangle() function with 100% curvature to plot a circle. The position property specifies the lo...

2 days ago | 1

Answered

Boolean Vector Length Calculation

The vector 'oneCounts' is a list of consecutive 1 counts. It's empty if there are no 1s. tf = [0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 0...

Boolean Vector Length Calculation

The vector 'oneCounts' is a list of consecutive 1 counts. It's empty if there are no 1s. tf = [0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 0...

3 days ago | 0

| accepted

Answered

strcmp with or-condition

You would use ismember() to find the rows of Tab1.Description that match a list of options. ismember(Tab1.Description, {'Gas'...

strcmp with or-condition

You would use ismember() to find the rows of Tab1.Description that match a list of options. ismember(Tab1.Description, {'Gas'...

3 days ago | 0

Answered

how to delete the previous plot obtained using slider in GUIDE

I understood your description as the following: You'll have a reference line that remains constant on the axes. Then you'll ha...

how to delete the previous plot obtained using slider in GUIDE

I understood your description as the following: You'll have a reference line that remains constant on the axes. Then you'll ha...

3 days ago | 0

Answered

subplot with two different x axis

This was a bugger but I finally got it working. It only works when the margins are symmetric. In this example, the left and r...

subplot with two different x axis

This was a bugger but I finally got it working. It only works when the margins are symmetric. In this example, the left and r...

3 days ago | 0

Answered

Find index of a matrix of values into another matrix

If I understood you correctly, you have a matrix "B" and a column vector "A" and you want the identify the columns of B that are...

Find index of a matrix of values into another matrix

If I understood you correctly, you have a matrix "B" and a column vector "A" and you want the identify the columns of B that are...

4 days ago | 0

Answered

How to delete some signal parts ?

Walter 's suggestion would look something like this (below) but for my fake data, few to no outliers were detected. That might ...

How to delete some signal parts ?

Walter 's suggestion would look something like this (below) but for my fake data, few to no outliers were detected. That might ...

4 days ago | 1

Answered

add lines through origin in 3D scatter plot

There is no zline() funciton built into matlab (2019a). Note that xline and yline became available in 2018b. xline and ylin...

add lines through origin in 3D scatter plot

There is no zline() funciton built into matlab (2019a). Note that xline and yline became available in 2018b. xline and ylin...

4 days ago | 0

Answered

How to cluster a dataset having a vector of clustered indeces?

Your data is a matrix of size [10 x 9]. kmeans() identifies the cluster of each row of the matrix so its output will be a vect...

How to cluster a dataset having a vector of clustered indeces?

Your data is a matrix of size [10 x 9]. kmeans() identifies the cluster of each row of the matrix so its output will be a vect...

4 days ago | 0

| accepted

Answered

>40 seconds waiting for Undefined function or variable error 2017b

Apparently when a variable or function is called but not available, matlab searches network locations on the matlab path and if ...

>40 seconds waiting for Undefined function or variable error 2017b

Apparently when a variable or function is called but not available, matlab searches network locations on the matlab path and if ...

7 days ago | 2

| accepted

Answered

Errorbars on scatter plot

Follow this example. If you get stuck, feel free to ask a follow-up question in the comments below. https://www.mathworks.com...

Errorbars on scatter plot

Follow this example. If you get stuck, feel free to ask a follow-up question in the comments below. https://www.mathworks.com...

7 days ago | 0

| accepted