Community Profile

photo

Adam Danz


University of Rochester

1,492 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 filter a cell array filled with strings?
This will return a logical array the same size as 'A' where TRUE values indicate elements of A that meet the following requireme...

8 hours ago | 1

| accepted

Answered
Change bar colors based on date
The only place in your data where I see moon phase is in column F of your spreadsheet and only the first month is indicated. Th...

8 hours ago | 0

Answered
How can I put a display that shows changing variables in a plot?
Use h=text(. . .) to create the text object and then update the handle as needed. Here's a demo clf() axh = axes(); h = te...

8 hours ago | 0

Answered
How can I use Textbox input from GUI in a separate script?
"I want to use the input of the textbox of my gui which i have created with guide, in a seperate Matlab script" There are sever...

8 hours ago | 0

Answered
Why is format long providing a strange result?
It's because of the way you're combing two variables in the output display. Look at the last iteration of your 2nd for-loop. ...

8 hours ago | 0

Answered
Swapping entries in column of table
I'm not sure why you're using string characters instead of numbers but I'll assume you have a reason for that. Here's how to ide...

8 hours ago | 0

Answered
What does the 'imfuse' output mean?
Regarding the line of code Fused = imfuse(Image3, Image4, 'falsecolor'); For the falsecolor method, by default, Fused is a com...

8 hours ago | 1

Answered
STROOP TEST- COGENT
The handle to the text object and the handle to the "square" (not sure what you mean here, it could be a rectangle object, a pat...

8 hours ago | 0

Answered
On Startup: function name warning
None of the toolboxes are crashing - those are just warnings that you've got two functions with the same name. Don't delete a...

9 hours ago | 0

Answered
Correct way to detect Zero crossing
The entire function can be replaced with y = I<1e-8; which will return a logical (true | false). If you want a double (1 |...

9 hours ago | 0

Answered
moving scroll index in a ui figure
TL;DR: Don't waste your time, it's not currently possible in AppDesigner (r2019b). Programmatically scrolling to a specific r...

12 hours ago | 1

| accepted

Answered
Error using speech2text
Hmmm..... it still looks like you're not using the most recent version. In this section of your error stack Error in speech2...

12 hours ago | 0

Answered
UIFigure Keyboard control update
"I am looking for an approach on how to provide the input control for the uifigure" Idea 1: add buttons to your App One approa...

13 hours ago | 1

| accepted

Answered
How can I save a figure within app designer?
update: try out copyUIAxes() from the file exchange copyUIAxes() recreates a UIAxes in a new figure. It copies the UIAxes child...

14 hours ago | 2

Answered
User input has to be a natural number between 1 to 15
Simply add the mod() part to your while requirement. mod(x,1)==0 checks that x is an integer. I also clarified the instrutio...

1 day ago | 1

| accepted

Answered
Cut timetable data following certain conditions
Well, that took a little more time than I anticipated! Here's a demo with inline comments explaining the details. I added a...

1 day ago | 0

Answered
How can i write recursive function using midpoint equation 3d coordinate system?
This solution creates an anonymous function midPointFcn() that receives two inputs A and B which are both (x,y,z) coordinates of...

1 day ago | 0

Answered
App missing in example file
The example requires the Phased Array System Toolbox as is explained in the set up section of the example. A similar (or exac...

1 day ago | 0

Answered
Adding transparency when filling color in plots
You can specify any of the patch properties to change your patch objects. To change transparency, set the FaceAlpha value (and ...

1 day ago | 1

| accepted

Answered
How to evaluate the performance of K-means?
"...where wik=1 for data point xi..." That would suggest that m is the number of data points since that summation is iterating ...

2 days ago | 0

| accepted

Answered
How to draw line with a mouse in the UI of the UIAxes in App Designer?
It works fine in r2019b; there are quite a few limitations to UIAxes prior to r2019b which may be causing the problem. ...

2 days ago | 1

| accepted

Answered
Why is the out-printed string displaying the wrong values?
convexHull is a 32-bit unsigned integer array. This line below changes the values of convexHull. coordPoints = [convexHull,c...

2 days ago | 0

| accepted

Answered
First cell in array is empty
Whoops! Typo... should be for i = 1:length(theta) % ^^ end Two more unrelated tips: Always pre-allocate your ...

2 days ago | 1

| accepted

Answered
bar figure with stacked
You've got an error/typo in reordercats(). x = categorical({'Python','Java',' C++','Matlab', 'C','C#','Visual Basic','Processin...

2 days ago | 0

| accepted

Answered
How to replace multiple duplicate rows with single row?
x = [0 10 10 10 10 10 14 6 10 10 10 4]; x([1;diff(x)]==0) = []; %...

2 days ago | 0

| accepted

Answered
How to find the nearest value of a number by comparing two nested cell arrays?
pairs is a cell array the same size as idp and qq. Each element is a 1x2 vector of the values in qq that are just below and abov...

2 days ago | 1

| accepted

Answered
How to create a 2x2 matrix?
Use curly brackets instead of square brackets. M = {h(1,:) h(2,:); h(2,:) h(1,:)};

2 days ago | 0

| accepted

Answered
In Matlab can I directly modify a value in a containers.map when the value is the element of an array?
You could add a local function at the bottom of the m-file that does the dirty work. M = plusOne(M,'Li',i); function mapO...

3 days ago | 0

| accepted

Answered
Undefined Variable Function 'dlarray' although the DL Toolbox already installed
dlarray() was released in r2019b. It looks like you're using r2019a so you won't have access to that function, unfortunately.

3 days ago | 0

| accepted

Answered
App designer: empty figure appears when running GUI with axes plot.
Specify the axis handle hold(app.Axis_1,'on')

3 days ago | 0

| accepted

Load more