Community Profile

photo

Adam Danz


University of Rochester

1,417 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
Can I remove outlier lines from a large plot?
It's important to define what constitutes as outlier prior to finding a solution for a few reasons. Without a definition you'r...

2 hours ago | 0

Answered
How to replace a column in a table with different values?
You were close. Use curly brakets and input a column vector. B{:,1} = (1:13).'; % or B.y1 = (1:13).'; Note that th...

5 hours ago | 2

| accepted

Answered
writematrix, writetable, writecell not working?
writematrix() was released in r2019a. You are using r2018b which is why that function is not defined. Here are links to the ...

8 hours ago | 0

Answered
Subtracting Vector from a Matrix
"How do I substract b from each row of a and put in a new matrix c?" As long as the number of columns in b matches the number o...

8 hours ago | 0

Answered
How to make 3D-line plots (Sine Wave)?
Since this seems like homework, my solution below shows how to produce the figure but you'll need to adapt it to comply with the...

8 hours ago | 1

Answered
Variable assigns value but wont plot
Instead of this line, plot(i,ui,'b') define a marker type plot(i,ui,'bo') %or b. b^ bs etc.... The reason the first line do...

18 hours ago | 0

| accepted

Answered
How to find cell position in a column based on sum of column.
B(1,:) = sum(A); B(2,:) = B(1,:)/2; B(3,:) = sum(cumsum(A)<=B(2,:)); % sanity check % Checks that the cumulative sums o...

18 hours ago | 1

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

21 hours ago | 0

| accepted

Answered
GUI stops after initialization code
The problem The "visible" property of your GUI figure was set to "off" which means the GUI was initialized properly, you just c...

21 hours ago | 0

| accepted

Question


AnnotationPane handle appearing in GUIDE GUIs with Panel-Axes in r2019b
I recently started using the r2019b release and noticed that an additional hidden handle is included in GUIs created in GUIDE if...

21 hours ago | 1 answer | 0

1

answer

Answered
AnnotationPane handle appearing in GUIDE GUIs with Panel-Axes in r2019b
Solution to editing the GUI in GUIDE When changing some properties of the GUI in GUIDE, an error dialog will appear preventing ...

21 hours ago | 0

Submitted


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

21 hours ago | 0 downloads |

Thumbnail

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 fid = fopen('m...

21 hours ago | 2

| accepted

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

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

1 day ago | 2

| accepted

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

1 day 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'...

1 day ago | 1

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

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

3 days 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?" ...

3 days ago | 0

| accepted

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

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

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

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

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

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

5 days 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(); ...

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

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

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

6 days ago | 1

Load more