Community Profile

photo

Adam Danz


University of Rochester

1,296 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
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...

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

17 hours ago | 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

6 days ago | 1

| accepted

Answered
How to draw a star in matlab
Here's an easy solution but the star size will not scale with axes size if the figure size is changed. fh = figure(); rectangl...

7 days ago | 0

Answered
How to calculate error between two matrices of different dimensions?
Not sure how you're defining error but to get every 100th element of B, B(1:100:end) Perhaps error is just the difference bet...

7 days ago | 1

| accepted

Answered
Could anyone help me how to change the values in array
A=[1 2 3 4 5 6]; B=[1 2]; A = repmat(B,size(A,1),1) or A = B .* ones(size(A))

7 days ago | 0

| accepted

Answered
Create an array referring to another array
Here's a list of some of the changes made to your code. The new version is below and it produces the outputs you described in yo...

8 days ago | 0

| accepted

Answered
Creating a new data table from existing table based on condition.
By 'dataset', do you mean a matlab dataset array or are you using the term more generally, working with tables instead? The dem...

8 days ago | 0

Answered
How to draw a star in matlab
"I need to create a figure of the vietnamese flag" I used this question as an excuse to play around with some of the image proc...

8 days ago | 1

Answered
Trying to only see biggest 2 peaks
Depending on what the data look like, it may be much easiers, quicker, and more efficient to just use sort() or maxk() rather th...

8 days ago | 0

| accepted

Answered
How to set a range for a random 4x3 Matrix
bounds = [-10,10]; x = rand(4,3) * range(bounds) + bounds(1); % for decimals x = randi(bounds,4,3); % for integers T...

10 days ago | 1

Answered
How to create a GUI
I think drag-n-drop construction of GUIs is a useful tool, especially for beginners, but it comes with limitations and, in the c...

10 days ago | 1

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

11 days ago | 0

| accepted

Load more