Community Profile

photo

Adam Danz


University of Rochester

1 411 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

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

View details...

Contributions in
View by

Answered
How to find strings in a very large array of data?
[This answer has been reorganized following the discussion in the comment section under the question] Method 1 (fastest) fid =...

ungefär 4 timmar ago | 0

Answered
Reading greek letters!
[continued from comment section under the answer] If you're just referencing single greek letters, you could use the double() v...

ungefär 6 timmar ago | 0

| accepted

Answered
How can I see if data fit a specified curve?
There are several ways to classify your data into the three groups: 1) random, 2) y=x, and 3) y=1/x. I tend to favor low-level...

ungefär 7 timmar ago | 1

Answered
Changing font size of all axes labels
Idea 1: put all shared name-value properties into a cell array For sets of name-value pairs that will be assigned to several ob...

ungefär 9 timmar ago | 1

| accepted

Answered
Change matrix values on the basis of a heatmap
"I want to to crop the heatmap manually by using a binary mask (createMask, drawpolygon) to extract important parts." This won'...

ungefär 10 timmar ago | 0

Submitted


Patch for annotationPane errors in GUIDE
A patch to the problem of editing GUIs in GUIDE in r2019b (and later?)

en dag ago | 0 downloads |

Thumbnail

Answered
Export colors of hist3 boxes in an array
After creating the bivariate histrogram with hist3(), call the function again with the same inputs but this time, store the firs...

2 dagar ago | 0

| accepted

Answered
Unrecognized function or variable 'getIpOptions'.
The file getIpOptions.m should be stored in the directory identified below. Run this line of code which should open the directo...

2 dagar ago | 0

Answered
Anyone that can find what is wrong about the function?
"if I want to be able to run the function (by clicking "Run"), how do I need to change my function to be able to achive this?" ...

2 dagar ago | 0

| accepted

Answered
AnnotationPane errors on Guide
Are you referring to the problem described here? If so, TMW is aware of this bug but since GUIDE GUIs will be phased out, I'm n...

2 dagar ago | 0

Answered
matlab 2019b - bug in data tips accuracy
The values reported in the datatips are accurate, judging from the png image. Precision seems to be the issue, not accuracy. N...

3 dagar ago | 1

| accepted

Answered
Traversing Text Document Matlab
Reading from word doc Here's the general approach to reading a Microsoft word document. directory = 'C:\Users\AOC\Documents\M...

3 dagar ago | 0

Answered
How to enable data tips?
The optional input to datacursormode() is a figure handle, not an axis handle. Data cursor mode has only recently been supporte...

4 dagar ago | 0

Answered
Plotting missing data in different colour
years=[1;2;3;4;5;6;7;8;9;10]; price1=[1;1;1;2;3;4;5;6;7;10]; price2=[2;2;2;3;4;5;6;7;8;11]; price3=[1.5;1.5;1.5;nan;2;nan;6;7...

4 dagar ago | 1

| accepted

Answered
reset the counter in for loop
You cannot alter the for-loop counter. Here's an alternative that continually asks the user for a vector of positive numbers un...

4 dagar ago | 0

Answered
Marking x intercepts on graph
Method 1: solve equation for y=0 Use the Symbolic Math Toolbox to solve for y=0; see inline comments for details. % Solve for ...

4 dagar ago | 1

| accepted

Answered
save GUI fig by name from edit text
Place this code in a callback function designed to save the figure. See inline comments for details. newFig = figure(); ...

5 dagar ago | 0

| accepted

Answered
yyaxis not working in app designer.
The problem A warning is thrown when clicking on UIAxis objects that were plotted with yyaxis. To recreate the problem: % (in...

5 dagar ago | 1

| accepted

Answered
How to automatically shift a graph back
If you don't have access to xcorr() you can easily set up a loop the circularly shifts signal-2 one unit at a time and computes ...

5 dagar ago | 1

| accepted

Answered
List of built-in data sets, please
I started a list of built-in mat files and a brief description of their variables (r2019b). Since numeric variables are fairly ...

5 dagar ago | 1

Answered
How to convert arrays out of cells
Generating variables within a loop involves dynamic variable naming which should be avoided at all cost. Instead, since your ar...

5 dagar ago | 0

Answered
Error bar with CI 95 on bar graph
Here's an anonymous function that computes the 95% CI based on the tinv method which requires that your data approximately form ...

6 dagar ago | 0

Answered
Allow user to draw a line using mouse
If you have the image processing toolbox, use drawline(). Something will have to trigger the function such as a button press or...

6 dagar ago | 0

| accepted

Answered
Draw diagonals of rectangle
If you're looking for a function, check out interconnections() rectPos = [1 2 5 6]; %[left, bottom, width, height]; intercon...

6 dagar ago | 0

| accepted

Submitted


interconnections
Produce lines that interconnect all coordinates.

6 dagar ago | 2 downloads |

Thumbnail

Answered
Random display of 'even' or 'odd'
Here are the 5 steps you need to take. Since this is your assignment, this answer isn't complete. Each step shows what you nee...

6 dagar ago | 0

| accepted

Answered
Link axes with different Y-Scales
Currently (r2019b) the UI stack cannot be controlled with yyaxis axes which always results in right-axis objects at the top of t...

6 dagar ago | 0

| accepted

Answered
how do bins in histograms work?
What you're describing sounds like a bar chart rather than a histogram. 1000 bars is quite a lot of bars. data = logical(randi...

7 dagar ago | 0

| accepted

Answered
Merging table rows, keep all columns
% Read in the data files = {'RESULTS_SAMP1.CSV', 'RESULTS_SAMP2.CSV'}; %Full paths are always better T1 = readtable(files{1},...

7 dagar ago | 0

| accepted

Answered
How i can change the x-axis labels and ticks like that
If you're using Matlab r2019b or later, you can use tiledlayout() to create your subplots (see examples in that link). For earl...

7 dagar ago | 0

| accepted

Load more