Community Profile

photo

Adam Danz


University of Rochester

1.306 total contributions since 2014

Finishing PhD soon.
Vision science; neurophysiology (single unit); sensory-motor feedback and control; control systems; steering & navigation; multisensory integration; top-down bottom-up feedback loop.

Helping others is the greatest learning opportunity.

University of Rochester, NY
New Bulgarian University, Sofia Bulgaria

EMAIL:
I only reply to emails about my file submissions. If you want to bring a question to my attention, send the link to the question.

Contact

Adam Danz's Badges

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

View details...

Contributions in
View by

Answered
Why am I not getting a vector output?
That's because you're only asking for a single output (by default). If you want both outputs, you must include two outputs in y...

alrededor de 9 horas ago | 0

| accepted

Answered
How to turn NaN values in only numerical columns into -999?
When you create your table, the missing values in the Header4 column will not appear as NaNs since that column contains characte...

alrededor de 9 horas ago | 0

| accepted

Answered
Put block behind colorbar
I still there repositioning the axis to make room for a marginal colorbar is the cleanest and most efficient approach (see the v...

alrededor de 15 horas ago | 1

| accepted

Answered
Remove unwanted vectors from a vector plot
To eliminate any quiver arrow that start below a given threshold along the y-axis, % 1) Choose a threshold yThreshold = 100; ...

alrededor de 17 horas ago | 0

| accepted

Answered
How to exclude data based on quality control flags
(continued from comments under question). Assuming you have a vector of data "x" and a vector of QC values "qc" and the qc val...

alrededor de 18 horas ago | 0

Answered
Finding bit's postions in cell
The data in your question contains what appears to be a cell array of strings (or character arrays) where each string represents...

alrededor de 23 horas ago | 0

Answered
Get position when using uicontextmenu
Instead of a context menu, use a ButtonDownFcn that responds to a mouse click on the object. It's lighter weight than a context ...

alrededor de 23 horas ago | 1

| accepted

Answered
How to plot second graph with second axis with animated line?
The key is to add the animatedline object after you define the 2nd axis. Then you can set the color of the animated object to t...

alrededor de 23 horas ago | 0

Answered
How to create a skewed distribution that is truncated?
(continuing from the comments under the question) One solution is to just truncate the distribution yourself by producing the d...

1 día ago | 1

| accepted

Answered
Graphing Base Form of y=mx+b from a .csv file
I'm assuming you've read the data into Matlab and you've got a cell array of strings or character arrays named "data" that appe...

1 día ago | 1

| accepted

Answered
concatenate structs and then plot a specified column
Use dir() to list all files in the directory. Loop through each file and load in the variable using load(filename,variables) ...

2 días ago | 0

Answered
How can I plot datetime as x-axis in pcolor ?
There must be imaginary data in your inputs. Here's a demo with valid datetime inputs. dt = [datetime('yesterday'),datetime('t...

3 días ago | 1

| accepted

Answered
Array indices must be positive integers or logical values.
The error is here % For position in the column vector x = (a + (i-1).*h)'; alphax = alpha(x); You're indexing alpha using ve...

3 días ago | 0

| accepted

Answered
Check edit text for a symbol
The "String" property of your editbox contains the content of the text. You can use strcmpi() to determine whether the text box...

6 días ago | 0

| accepted

Answered
Extracting data from excel spreadsheet
This solution reads in the data and then creates an anonymous function that allows you to apply ANY other function to the depth ...

6 días ago | 0

| accepted

Answered
why 'colormap' did not change the color of my plots?
If you want to change the color of the lines based on a colormap, you can apply those colors to the "ColorOrder" property of the...

6 días ago | 1

| accepted

Answered
AnnotationPane handle appearing in GUIDE GUIs with Panel-Axes in r2019b
TMW is aware of this bug (Case Number 03816788) To remove the AnnotationPanes and the scribeOverlay handle, add these lines to ...

6 días ago | 0

Answered
Create a plot with a text file containing a matrix
Assuming time varies by row and user varies by column, here's a demo you can follow. % Create a matrix of measurements of users...

6 días ago | 0

Answered
Plot text on line with angle
"I'm looking for the following in relation to plotting text," 1) I want to plot text on top of a line or curve for any given fu...

6 días ago | 0

Answered
randomly grouping cells in cell array
No need for a loop. % create 22 names of people (just letters) names = num2cell(char(97:118)); % {'a' 'b' 'c' ... 'v'} n...

6 días ago | 0

| accepted

Answered
How to display the contents of a cell in a messagebox
compounds = {'CaCO3','CO2','CuSO4','C6H12O6','HCI','NaCl'}; msg = msgbox(['Compounds: ', strjoin(compounds,', ')],'title') ...

6 días ago | 1

| accepted

Answered
Replace numbers without using find()
A(A>150 & A<200) = NaN; I interpret "between" as not inclusive. If you want inclusive, A(A>=150 & A<=200) = NaN;

6 días ago | 1

| accepted

Answered
Plotting a patch hides all scatter data in figure
Works for me (see below). The marker size in your question is quite small (0.5) but with 4096 points, you should see something....

6 días ago | 0

| accepted

Answered
Timetable with string array
As the error indicates, you cannot retime non-numeric data. Your table contains a column "participant" which contains strings. ...

7 días ago | 0

| accepted

Answered
Create plot with multiple overlayed lines, where colorbar corresponds to color of line
In addition to Hans' method, you can also apply the colorbar based on whatever line colors are already set up in the "ColorOrder...

7 días ago | 0

Answered
How to find the coordinates of a point perpendicular to a line (knowing the distance)?
Here's a tutorial with comments so you can follow what's going on. The end points of the perpendicular segment ("D" in your phot...

8 días ago | 1

| accepted

Answered
How to perform operations on cell arrays?
My understanding of the problem is that you have a cell array of column vectors and you'd like to differentiate them. I've crea...

8 días ago | 0

| accepted

Answered
Select a point on the graph
To find the coordinate closest to the origin (0,0), d = hypot(member_value(:,1),member_value(:,2)); [~, minIdx] = min(d); ...

8 días ago | 0

| accepted

Answered
Add another label that groups the bars in a bar plot together
Add this to the end of your code. By the way, avoid using cd() by specifying full paths whenever possible. ylim([-40,100]) ...

8 días ago | 1

| accepted

Answered
Turning data in time domain into percentage
I'm guessing your time column represent a portion of the day (ie, hh:mm) and it's that column that you want to turn into a perce...

8 días ago | 1

| accepted

Load more