Community Profile

photo

Adam Danz


Last seen: Today

University of Rochester

2.078 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
Figuring out the most fitting prefix for a vector dataset
There are no axis labels on the histogram so I'm not sure what it represents. If it represents a distribution of y-values for t...

alrededor de 22 horas ago | 0

Answered
UIFigure limit Menu Bar in App Designer
No-can-do. Even if you set app.UIFigure.Clipping = 'off'; At least as of r2020a (and the foreseeable future) the components...

alrededor de 22 horas ago | 0

Answered
How to scale the range of a custom colormap correctly?
Use caxis(limits) to scale the colormap limits of the axes. I also recommend including the optional axis handle input (see docu...

alrededor de 23 horas ago | 0

Answered
Sample dataset can not be found at matlab R2016b
That dataset was released after r2016b. If you need to use that dataset, you'll need to upgrade your version of Matlab. The dat...

alrededor de 23 horas ago | 1

| accepted

Answered
Calculate mean of row for multiple files
" I have multiple .txt files, and each one has 30 rows and 1 column. " First you need the paths or the file names to each text ...

alrededor de 23 horas ago | 0

Answered
changing YLabel position and outerposition
Source of the problem (scroll down for solution) TL;DR: Changing the position of the y-axis label triggers an axis resize that ...

alrededor de 23 horas ago | 1

Answered
Rounding date time to nearest half hour wihtin a table
If your datetime values are stored in a cell array, first convert them to a datetime array using, datetimeValues = [datetimeCe...

2 días ago | 0

Answered
To find the rms value
My bet is that you have a variable in the worksapace named "abs" which overrides Matlab's abs() function. When you run the li...

2 días ago | 0

Answered
Colorbar - Ticklabel with variables
If the colorscale in the axes is logarithmic, you can't set the lower axis limit of the colorbar to 0. You could try, and it wo...

2 días ago | 1

| accepted

Answered
regroup identical coordinate pair
[~, unqIdx] = unique([X(:), Y(:)], 'rows','stable'); R_X = X(unqIdx); R_Y = Y(unqIdx);

2 días ago | 0

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

3 días ago | 0

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

3 días ago | 0

| accepted

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

7 días 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...

7 días 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 ...

7 días 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...

7 días 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...

7 días 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.

7 días ago | 81 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...

8 días 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<...

8 días 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...

8 días 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 ...

8 días 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 ...

8 días 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...

8 días ago | 0

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

8 días 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...

8 días ago | 0

| accepted

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

9 días 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...

9 días ago | 0

Submitted


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

9 días ago | 6 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...

11 días ago | 0

| accepted

Load more