Community Profile

photo

Adam Danz


University of Rochester

1,328 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
How can I save a figure within app designer?
Here's a more general solution that 1) copies all objects onto new external axes and then 2) copies most of the UIAxes propertie...

3 hours ago | 0

Answered
how do i find the Highest Point and area of each loop for the graph.
General approach: Identify the starting point of each loop. Break apart the continuous data into individual loops. compute ...

5 hours ago | 0

Answered
fitting line for the first part of the graph
You can use ischange() with the linear method to find the point where the slope changes. This requires that the x values are i...

6 hours ago | 0

Answered
Building matrix from two vectors
A = 1:100; B = 101:200; C = [A;B].'; % vertical concatenation & transpose

6 hours ago | 1

| accepted

Answered
How to create a vector that assembles 30000 sets of parameters at random from the specified ranges
You could writing a function that receives the lower and upper bounds as inputs along with the number of values to choose. fu...

7 hours ago | 0

Answered
How to Select random data from matrix ?
"i want to take the half of the pixels from this img generated randomly and other half default(white,black doesnt matter ,and...

7 hours ago | 2

Answered
Stop graphing when two functions intersect
I'd calculate the index where the curves intersect using intersections() (FEX) and I'd do this prior to your plotting loops. Th...

9 hours ago | 0

Answered
pushbutton uicontrol blinkiing (for click me attention seeking)
Here's a demo you can apply to your GUI (whether it's built from Guide, uicontrol, or App Designer). It creates a timer that i...

9 hours ago | 0

Answered
delete dimension based on user input
You can use classes overload subsref to implement custom indexing. % Set up default index S.type = '()'; S.subs = {':',':','...

10 hours ago | 0

Answered
Determination of the confidence interval for fitted curves
@Torsten Klement, (continuing from comments under the question) There are 2 types of prediction intervals. Confidence interv...

10 hours ago | 1

Answered
Increment cell number in xlsread
Create the range value using sprintf() where you can specify both the column and row values. Then you can control the row numbe...

1 day ago | 0

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

1 day ago | 0

Answered
How to wrap text within buttons of app-designer
I don't think it's possible to create multi-line button text from within the "Design view" of app designer but you can make thos...

3 days ago | 0

| accepted

Answered
Ploting problems with handle, maybe I have changes in this function.
From the documentation: ________________________________________________ ? Name: Question mark Uses: Metaclass for MATLAB cl...

3 days ago | 0

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

4 days ago | 1

| accepted

Answered
How can I plot a filled cylinder with a specific height?
Here's a function where you just feed in the inputs r: radius of cyl. cnt: [x,y] center of cyl height: height of cyl nSides...

4 days ago | 0

Answered
using strrep multiple times
This demo is dedicated to Kazuhisa Hashimoto. usertext = 'up, up, down, down, left, right, left, right, b, a, start.'; s = re...

4 days ago | 2

Answered
How can I change colors and generate errorbars in a bar graph
% Store the bar handle bh = bar(x,y) % Set the bar colors bh.FaceColor = 'flat'; bh.CData = [1 0 0; 0 .5 0]; %red; green...

4 days ago | 0

Answered
Remove specific objects from an image
Following similar logic to this answer, we'll use regionprops to get the length and width of the bounding box rectangles. Then ...

4 days ago | 2

| accepted

Answered
Find the number of outputs of a value.
@Zach Adams, first, more feedback. Please take some time to digest that. Second, I've improved your code without changing the ...

4 days ago | 0

| accepted

Answered
Find the orientation of each arbitrary object in an image
I used this question to practice some of my image processing skills (still in early stages of exploration). Here's what I did...

4 days ago | 1

| accepted

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

5 days ago | 0

Answered
color bar related issue
By 'gray', I assum you mean the gray colormap. Here are a few interpretations. The first example creates the entire range of...

5 days ago | 0

Answered
Define an if statement based on on finding duplicate xy pair values between arrays.
(continuing from the comment section under the question) I recommend you use ismembertol() which allows you to set a small tole...

5 days ago | 0

| accepted

Answered
How to find files with a given pattern in multiple folders
Simply throw in an additional wildcard (*) here: (I've only added 1 character: *) % Specify the file pattern. % Note the ...

5 days ago | 0

| accepted

Answered
How to plot a graphic with different markers in a scatter plot?
"I want to plot each "9 dots" in the graphic with different markers." Use group-scatter gscatter(x,y,g,clr,sym,siz). Each coor...

5 days ago | 0

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

6 days ago | 0

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

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

6 days ago | 0

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

6 days ago | 0

| accepted

Load more