Community Profile

photo

Adam Danz


Last seen: Today

University of Rochester

2.900 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 4
  • 24 Month Streak
  • Personal Best Downloads Level 4
  • Explorer
  • Ace
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Revival Level 3
  • Knowledgeable Level 4
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
How to apply a colormap to rgb image ?
As the error message indicates, for the syntax colormap(target,map), target is an axis handle but you're not supplying an axis h...

alrededor de 7 horas ago | 1

| accepted

Answered
I am wondering if this a no output no input function. If it is not what type of function is it?
Functions do not have to have inputs or outputs. For example, this function below searches for invisible figures and makes th...

alrededor de 20 horas ago | 0

Answered
Use two colormaps on 3D figure.
Follow this demo. The colorbar ranges approximately from -6 to 8 and the transition between Winter and Summer colormaps happens...

alrededor de 21 horas ago | 1

| accepted

Answered
Resorting Rows in a Table with Panel Data
See sortrows. If there are any problems implementing that function, show us what you've got and we can help straighten it out...

alrededor de 22 horas ago | 0

Answered
App designer - how to use numpad instead of number keys?
Place a break point at the top of the UIFigureKeyPress function. Press a numpad key and look at the value of event.Key to deter...

alrededor de 23 horas ago | 0

Answered
How to add spaces between bars on a histogram
> I would like to add a space between each bar of the histogram, with x axis of the graph being integer numbers. Sounds like yo...

alrededor de 23 horas ago | 0

Answered
Constant subplot size and variable figure size
I used to use that file exchange function and it has been very useful but tiledlayout is now the better option. Here's a summar...

alrededor de 24 horas ago | 0

Answered
how to zoom on a figure with multiple axes
You need to use linkaxes or linkprop to link the axis properties so that changes to one pair of axes will affect the other pair ...

alrededor de 24 horas ago | 0

Answered
Return variables or elements with similar corresponding values
I'm currious what you searched for. Are you looking for a Matlab function that reads in an excel file that has two columns of d...

alrededor de 24 horas ago | 0

| accepted

Answered
Saving figure as a image
Comparing the two png files in one of your previous comments shows an upper y axis in one figure that doesn't exist in the secon...

1 día ago | 0

Answered
Why do I keep getting this error message?
>Why do I keep getting this error message? (T(j+1,i-1)*-lamda)+(T(j+1,i)*(1+2*lamda))+(T(j+1,i+1)*-lamda)= dt*q_x(i-1)+T(j,i);...

6 días ago | 0

Answered
How to write repeating questions
I assume you're using input to prompt users to respond. This is the least robust, most error-prone method of getting informatio...

6 días ago | 1

| accepted

Answered
How to Merge Color using "Area" Command?
You can use a patch object with interpolated face color. This example in the documentation shows how to do this. Once you g...

6 días ago | 0

Answered
Graph Legend not picking up third plot marker
There are multiple objects with the green asterisk and they are higher up in the uistack than the red squares. Since you're prov...

6 días ago | 0

Answered
How to make textbox edge transparent in figure?
Right-click the textbox. From the context menu, select linestyle > none

6 días ago | 0

| accepted

Answered
Function vs Wrapper?
A wrapper function is a function that mainly calls another function with minimal additional work. Additional reading: https:/...

6 días ago | 1

| accepted

Answered
How to add a horizontal line to this graph
See yline()

6 días ago | 0

| accepted

Answered
Visualize data in App Designer similarly to Variable Editor
> The really ideal solution would be to visualize a struct the same way the variable editor does, with all the fields listed as ...

6 días ago | 0

Answered
Splitapply within table taking column vector input and returning column vector output
Sharing the entire error message is most helpful because it typically tells us what line is causing the error. Based on the co...

6 días ago | 0

| accepted

Answered
Crusor position without click relative to axis
Follow instructions in this answer which explains two methods to continually return the coordinates of the cursor within the axe...

6 días ago | 0

Answered
How to set MATLAB GUI drop down to be empty be default
By default, uidropdown uses the first item as the default item but you can also specify the Value property to display another va...

6 días ago | 0

| accepted

Answered
How can I give main title for multi-graphs?
If you're using tiled layout, assign the title the tiled layout object. If you're using subplot() to create the axes, use sgti...

6 días ago | 1

Answered
How do I make this square wave graph?
Set the parameters at the top. % Parameters period = 2*pi; % Period xrange = [0, 6*pi]; % [start,end] x values amplit...

6 días ago | 0

| accepted

Answered
index in position 2 exceeds array bounds (must not exceed 1)
Change Treasury_(1,n) To Treasury_(n,1)

7 días ago | 0

Answered
How can I plot arrows on date time plot ?
You can use annotation objects whose positions are defined in normalized figure space. That requires you to convert the end poi...

8 días ago | 0

| accepted

Answered
How to find the (pixel) dimensions of images on a white background
Assuming height and width are defined by the first and last non-white (or any background color) pixel from top-to-bottom and fro...

8 días ago | 1

| accepted

Answered
How should I avoid reloading data in App Designer?
After loading the data, store the data as a property of the app. If the property is empty, that indicates that you need to loa...

8 días ago | 0

| accepted

Answered
two legends in the same box
Ms = randi(10,10,10); fig=figure(15); left_color = [1 0 0]; right_color = [0 0 1]; set(fig,'defaultAxesColorOrder',[lef...

8 días ago | 0

| accepted

Answered
Undefined function/variable with function
Given the incomplete error message, it seems that the error is not with the "control_3darray" variable but with x c_3darray(:, ...

8 días ago | 0

| accepted

Answered
Use a different colormap scale for different sections of a matrix
> This would be easy if I could set 0 values to NaN, and assign NaN color as 'none', but setting NaN color as 'none' is not supp...

8 días ago | 0

Load more