Community Profile

photo

Adam Danz


University of Rochester

Last seen: Today Active 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

Statistics

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

View badges

Content Feed

Answered
Obtaining the Gaussian equation for a distribution
This demo creates a noisy gaussian with unknown random parameters and then fits the data using lsqnonlin. 1. Create noisy gaus...

5 hours ago | 0

| accepted

Answered
save multiple gui window in appdesigner
In the m-file, before creating the first figure, store a list of pre-existing figures. Hint: findobj(0,'type','figure') After c...

6 hours ago | 0

Answered
Creating a cell for each plot grid
At first I would like to display an empty graph spaced by 2. For this purpose both axes have value from 0 to 10 stepped by 2. ...

6 hours ago | 0

Answered
combining 4 csv files with and without headers
You can use outerjoin to join the first 2 tables into 1 table. It's not entirely clear how you're indexing the 3rd table into t...

20 hours ago | 0

Answered
Goodness of fit , residual plot for fminbnd fitting
See matlab's documentation on goodness of fit. You can plot the residuals using, figure() tiledlayout(2,1) nexttile ste...

1 day ago | 1

Answered
Trying to shift/recenter map and data
You can wrap your longitudinal values to [-180,180] using wrapTo180() which requires the mapping toolbox. Or you could use wrap...

1 day ago | 0

| accepted

Answered
How to customise legend?
A clean and efficient approach is to assign the display names to the scatter objects and then specify the handles to include in ...

2 days ago | 0

| accepted

Answered
How can I set a minimum window size for an app developed in app designer?
Set the minimum size as an app property named minSize defined by 1x2 vector describing the minimum [width, height] (see how to d...

2 days ago | 0

| accepted

Answered
Splitapply: Returning multiple output values
Use arrayfun instead. A = array2table(rand(100,1)); A.Properties.VariableNames{1} = 'Row1'; A.Row2 = rand(100,1); B = [1:1:1...

1 month ago | 2

Answered
if and switch statement
To answer your question, you would use case num2cell(1:50) But a switch/case is not the optimal method in this context. What...

1 month ago | 1

| accepted

Answered
How to draw perpendicular line from scatter points in 2-D plot
How to plot horizontal and vertical lines from axes to data point clf() ax = gca(); hold(gca,'on') x=[0:0.02:2]; y=sin...

1 month ago | 0

| accepted

Answered
How do I rename each individual item in a column in one function?
Create a list of the new names within a cell array and then use deal to distribute the list to the label fields. Demo: D.tria...

1 month ago | 0

Answered
It's showing Unrecognized function or variable 'paddedsize'. Error in Untitled (line 7) PQ = paddedsize(size(footBall)); error
paddedsize is not a Matlab function. A quick google search resulted in these two leads that may be helpful to identify that f...

1 month ago | 0

Answered
Naming output excel-file via edit field in Appdesigner
> I know i can access the string of the edit field via the command 'app.DateinameEditField.Value', but how can I connect it to ...

1 month ago | 0

| accepted

Answered
How to find the difference in values present in each row of two cell arrays of same size.
I want to find the difference between A and B. Set up a loop that runs isequal(A,B) on pairs from cell array A and B. A = {1...

1 month ago | 0

| accepted

Answered
Find distance and total number of overlapping points in a figure
The points are overlapping because of the marker size and the data resolution set by the axis limits. If you zoom in or use sma...

1 month ago | 0

| accepted

Answered
Run a function erverytime a new Datatip is selected (Callbacks for datatips)
You can set the UpdateFcn of datacursormode. The function will execute every time a datatip is added. You can do anything you ...

1 month ago | 1

Answered
How to write an automatic function based on the median of data to form groups of data.
% Create demo data : nxm matrix with 1 box per column rng('default') data = rand(100,15) + [1.0 1.3 0.8 0.95 1.02 1.05 1.08 ...

1 month ago | 1

| accepted

Answered
In matlab app designer, how can we connect two or three app.mlapp?
<https://www.mathworks.com/help/matlab/creating_guis/creating-multiwindow-apps-in-app-designer.html Creating multi-window apps i...

1 month ago | 0

Answered
Sending Emails with MATLAB
You probably have to re-enable the feature in your email account (more info for gmail). If you're using gmail, the link to en...

1 month ago | 0

| accepted

Answered
plot and left axis off
Turn off right-y-axis This solution is similar to another answer provided a few days ago. It uses yyaxis to add a second, inde...

1 month ago | 0

Answered
I want better packed sphere
This file exchange submission offers a method of uniform sampling along the surface of a sphere. After looking at the documenta...

1 month ago | 0

| accepted

Answered
How to display subscript for ColumnName of UITable in Design App?
If you're willing to use a different subscript letter, you can use one of the available unicode subscripts (a,e,h,i,j,k,l,m,n,o,...

2 months ago | 0

Answered
condition on random generated data
> if row value 1 > 0.5 and column value 1> 0.6 than print true else false It sounds like you are only interested in assessin...

2 months ago | 0

| accepted

Answered
Zero correlation coefficient, example
This answer explains why NaN values may appear in correlations. Make sure your inputs avoid those errors. If you have trouble...

2 months ago | 0

Answered
Show the value of uislider
> i saw others use callback and label... and other ways. But none of these work. Well, they do work, that's what people use tho...

2 months ago | 0

| accepted

Answered
How to save an axes into an matlab figure after plotting through button down function?
I created a GUIDE-based GUI containing the two functions you mentioned and was able to reproduce the problem (in the future, you...

2 months ago | 0

| accepted

Answered
find index in a matrix without 'find' function
find() is the quickest way to return the subscript indices of non-zero elements of a matrix but it's quicker to do so without us...

2 months ago | 0

Answered
How to change to different colors for a button in MATLAB in the middle of the program execution.
> I want to continously change the color of a button in program until a user presses it An efficient method that will work in ...

2 months ago | 0

Answered
How to create and export a GIF with uifigure?
Since the animation is not controlled within a loop, I think you're stuck with using 3rd party screen recorders. I recommend sc...

2 months ago | 0

| accepted

Load more