Community Profile

### University of Rochester

2,068 total contributions since 2014

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

View details...

Contributions in
View by

How do I create a multi-line tick label for a figure using MATLAB 7.10 (R2010a)?
A more modern approach to setting multiple rows tick labels. Recent releases of Matlab have made it easier to set multiple rows...

17 hours ago | 0

How to add a table beneath a plot?
The rows of the table are actually additional x-tick labels. There are several ways to plot a table under the axes but the cl...

17 hours ago | 0

How to plot two different styles of confidence intervals in looped subplots?
The line below from your code is plotting 30 lines for each axis. plot(ci,'LineWidth',1,'Color', [0 0 0.5],'LineStyle','--');...

5 days ago | 0

| accepted

How can i create a code which accept the 'peaks' of a quadrilateral and then give me the area of it?(without polyarea)
Follow this algorithm. There's a link toward the top of that page that shows how to implement the algorithm in JavaScript. Inc...

5 days ago | 0

str2double conversion error
You're witnessing floating point roundoff error. In short, an infinite range of numbers must be represented in a finite number ...

5 days ago | 1

| accepted

Colormap - contourf scaling and color distribution
Here are the changes I suggest you make. Lines that have been commented-out are lines you don't seem to need. The key change...

5 days ago | 0

| accepted

Handles in GUIDATA desappear when placed in 'CreateFcn'
"This is my first GUI and my first program so maybe this is not the best approach." Correct :) You've definitely invested so...

5 days ago | 1

| accepted

Submitted

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

Missing dates in a dataset and filling in for them.
Convert your table to a timetable. Then use retime() to fill in missing dates on a daily basis. The columns will be filled wi...

6 days ago | 0

Is there any other way to set range in if- else statement?
Explanation of the error 0<45<2 is the interpretted as (0<45)<2 or, simplifed to 1<2 where 1 is TRUE. Solution if 0<m && m<...

6 days ago | 2

increasing the fontsize of the y-label tickmarks on a dendrogram/tree
Your y-labels aren't really tick labels. They are text objects. You need to store their handles and set their fontsize directl...

6 days ago | 1

| accepted

How is "quartely" defined in the function retime?
According to Wiki, In Gregorian calendar: First quarter, Q1: 1 January – 31 March (90 days or 91 days in leap years) Second ...

6 days ago | 0

| accepted

Inserting a randomized array into a for loop
No need for the conditional statements. Use indexing instead. Indexing is the life and blood of Matlab. XA = [5 6 2 6 5 3 3 ...

6 days ago | 0

Can I join with 1 variable and 1 value as "keyword"?
isMatch = dateMatches && ismember(T.Country, {'Austria','Belgium'}); Replace dateMatches with your date-matching code that pro...

6 days ago | 0

classifing output inot category
isGood = score > 17; % isBad?

6 days ago | 0

| accepted

only accept odd numbered input arguments
nargin counts the number of input arguments for a function. mod(x,2) returns 1 when x is odd. if mod(nargin,2)~=1 error...

6 days ago | 0

| accepted

Find the average in a window of random variables
Matlab has movmean() but it I don't think it can move by groups of n elements. This demo below computes a moving average for va...

7 days ago | 0

| accepted

share data between 2 uifigure in app designer version 2017
Here's the page you're looking for in Matlab's documentation. https://www.mathworks.com/help/matlab/creating_guis/share-data-a...

7 days ago | 0

Submitted

gif2avi
Converts GIF images to AVI (or MP4) video files.

Multiple Z axes in a 3d plot
Matlab does not have a method of plotting in 3D with two z-axes. To make the task even more difficult, there is no ZAxisLocati...

8 days ago | 0

| accepted

How to find factorial(c) of an array of numbers?
N must be an array of real non-negative integers. To troubleshoot that error message, let's go through the list of possibilitie...

8 days ago | 0

| accepted

How to add a column with all rows have the same data in a table?
Demo % Create table T = table([1;2;3;4],'VariableNames',{'Data'}); % Create date vector data = datetime('now') + (1:4)'; ...

9 days ago | 0

| accepted

How to convert a GIF file to a AVI file?
I've written a function that converts GIF --> AVI based on Walter's 2018 answer. Download gif2avi() gif2avi(file) will convert...

9 days ago | 1

| accepted

How to add 3rd Y-axis at right side?
Follow this example of creating 3 y-axes with two on the left and one on the right. To set the duplicate axes on the right side...

9 days ago | 0

| accepted

I want to import image on app designer with drop down button
Your error message tells you exactly what you need to do. "Specify a UIAxes as the value for 'Parent'." It looks like you're ...

9 days ago | 0

| accepted

Plotting Chart With 2 X Axes and 2 Y Axes
In the example plot provided in the question, the x axis is the same for both pairs of axes. To use a left and right axes with ...

9 days ago | 0

| accepted

error while using Remote desktop access
This is a Windows 10 error not associated with Matlab. The error may be occuring on the remote compute or an interaction betwee...

9 days ago | 0

| accepted

Pop up menu condition push button
Each of the popup menus should have a callback function that checks the selection of all 4 popup menus. Use a conditional state...

13 days ago | 0

Setting X-Axis with Text Labels
Try this. If it doesn't work, please elaborate. set(gca,'XTick',1:6,'XTickLabel',Tools) I assume Tools is the cell array of ...

15 days ago | 0

| accepted