Community Profile

photo

Adam Danz


Last seen: Today

University of Rochester

2,067 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

Contact

Adam Danz's Badges

  • Personal Best Downloads Level 4
  • Explorer
  • Ace
  • Thankful Level 3
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • 12 Month Streak
  • Revival Level 3
  • Knowledgeable Level 4
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
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','--');...

2 days ago | 0

| accepted

Answered
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...

2 days ago | 0

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

2 days ago | 1

| accepted

Answered
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...

2 days ago | 0

| accepted

Answered
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...

2 days ago | 1

| accepted

Answered
Place grid on top of patches
You can create horizontal lines for each y tick using yline() Execute these lines of code after creating your patches. You can...

2 days 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.

2 days ago | 76 downloads |

Thumbnail

Answered
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...

3 days ago | 0

Answered
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<...

3 days ago | 2

Answered
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...

3 days ago | 1

| accepted

Answered
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 ...

3 days ago | 0

| accepted

Answered
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 ...

3 days ago | 0

Answered
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...

3 days ago | 0

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

3 days ago | 0

| accepted

Answered
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...

3 days ago | 0

Answered
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...

4 days ago | 0

| accepted

Answered
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...

4 days ago | 0

Submitted


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

5 days ago | 5 downloads |

Thumbnail

Answered
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...

6 days ago | 0

| accepted

Answered
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...

6 days ago | 0

| accepted

Answered
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)'; ...

6 days ago | 0

| accepted

Answered
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...

6 days ago | 1

| accepted

Answered
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...

6 days ago | 0

| accepted

Answered
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 ...

6 days ago | 0

| accepted

Answered
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 ...

6 days ago | 0

| accepted

Answered
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...

6 days ago | 0

| accepted

Answered
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...

10 days ago | 0

Answered
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 ...

12 days ago | 0

| accepted

Answered
keep the index of removed array in cell
What's the rule for matching values of S to M? For example, row 11 of M contains 2 and 5 which are both listed in S{4} but the ...

14 days ago | 0

| accepted

Answered
Valid_date function
"I am having some troubles with the logical operators in "day"." That doesn't give us enough background infomation to know what...

14 days ago | 0

Load more