Community Profile

photo

Adam Danz


Last seen: Today

University of Rochester

1,798 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

  • Explorer
  • Ace
  • Thankful Level 3
  • Personal Best Downloads Level 3
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • 12 Month Streak
  • Revival Level 3
  • Knowledgeable Level 4
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
number of times a value appears in an array or vector
I need something to tell me how many 1's appear in PlayersHand each time I run it count = sum(PlayersHand(:)==1);

1 hour ago | 1

| accepted

Answered
Scatterhist without normalized y axes on the marginal histograms. How ?
" when plotting data using a grouping variable the marginal histograms look all normalized to their own maxima" That shouldn't ...

1 hour ago | 0

Answered
Legend for yyaxis at two different locations
The second call to legend() is replacing the first legend (you can only have 1 legend). I reworked your code to use yyaxis ins...

2 hours ago | 1

| accepted

Answered
Symbols work in plot but line doesn't
I assume P and v are both scalar values. If that's the case, the definition of a line requires at least two value. For example...

2 hours ago | 1

Answered
Error using subplot with App Designer
The parent of a subplot (ie, axes) should be a figure (or Panel objects, Tab object, or TiledChartLayout object). You're using ...

2 hours ago | 1

| accepted

Answered
Set colorbar outside the window
Use the location property colorbar(location)

3 hours ago | 1

| accepted

Answered
Cleaning data from excel file
If any of the cells in column 9 is equal to 1 then I need the corresponding cells in columns 2 and 3 to be deleted/left empty/m...

3 hours ago | 0

| accepted

Answered
Cannot hide/delete UIAxes menu/toolbar
app.UI_Axes.Toolbar.Visible = 'off';

3 hours ago | 1

| accepted

Answered
Generate Random position that are not duplicate
This efficient solution takes the following steps. List all integer coordinates within the circle Randomly choose N of those ...

3 hours ago | 0

Answered
How can I generate this plot?
The quiver arrows all have fairly small magnitudes which makes it difficult to see the arrows but you can reproduce the figure a...

2 days ago | 0

| accepted

Answered
MATLAB Answers Wish-list #5 (and bug reports)
Expand/Collapse all comments This goes back to Matt Tearle's request in the first wish list (2011). An expand/collapes toggle ...

2 days ago | 2

Answered
UITable Scrollbars not showing and scrolling semi-INOP
The last line of your code is resizing the UITable and pushing the vertical scroll bar out of the figure boundaries. When you...

3 days ago | 0

| accepted

Answered
Editor Tabs Moved to Bottom of Window
Click on an area of the tabs-bar to the right of the tabs and drag it to the top.

4 days ago | 1

| accepted

Answered
Appdesigner: Loading a MAT file - Difference between doing it from MATLAB vs from within Appdesigner.
1) I don't understand why there is a difference - when it is exactly the same command. The load command loads the data into the...

4 days ago | 0

Answered
Interp3. Error using griddedInterpolant. The grid vectors do not define a grid of points that match the given values.
Follow this tutorial and if you get stuck or come across a problem that isn't already addressed in the forum I'd be glad to dig ...

7 days ago | 0

Answered
how to create a .txt file from char vector using matlab?
T=['x=2;',newline,'y=3;',newline,'z=x*y;']; filename = 'myTextFile.txt'; % better to use fullfile(path,name) fid = fopen(...

7 days ago | 0

| accepted

Answered
Cross-correlation questions
Perhaps working through one of the examples in the xcorr documentation would be helpful. https://www.mathworks.com/help/matlab...

7 days ago | 0

| accepted

Answered
How do I add a for loop to do subplots
The general template to build subplots within a loop nrows = 2; % number of subplot rows ncols = 1; % number of subplot column...

8 days ago | 1

| accepted

Answered
how to add a label to a specific point on a fplot
This command will add a text label with a leftward arrow pointing to the coordinates text(0.5607, 0, '\leftarrow My Favorite Po...

8 days ago | 0

| accepted

Answered
Create Error bar and title into the bar chart
Here's a simple demo you can follow to add errorbars to your bar plot. https://www.mathworks.com/matlabcentral/answers/420926-...

8 days ago | 0

Answered
getting a NaN in correlation coefficient
Notice that all of the values in y are identical y=[-0.414; -0.414; -0.414]; If you look at the equations for corr2() or Pe...

8 days ago | 1

| accepted

Question


Dealing with flags that are really comments
I've noticed an increase in the number of flagged answers/questions/comments in the forum from less active users treating flags ...

8 days ago | 1 answer | 0

1

answer

Answered
Average values from timeseries
Below is a general scetch of what you need to do. Give it a shot and if you get stuck, share the code and let us know where you...

8 days ago | 0

| accepted

Answered
Bar chart legend and colour
There are two approaches below. I recommend using the first one where the bars and labeled by the xtick labels. You can rotate...

8 days ago | 0

| accepted

Answered
How can I create a 3D plot of data with dots of different color?
Use scatter3() to create the 3D scatter plot and scale the colors based on a vector of mean values. % Create 100x3 matrix of [...

8 days ago | 0

| accepted

Answered
shows table in gui panel
"Error using matlab.ui.control.Table/set; Functionality not supported with figures created with the figure function." handles.T...

9 days ago | 0

| accepted

Answered
how to know if a char vector contains unwanted characters?
Following the description from your question, here's an anonymous function allCharsGood() with two inputs, c is a 1xn char arr...

9 days ago | 1

Answered
Scatter Plot with different "markers" and "data labels"
"I need a scatter plot with different markers" The scatter() function only allows one marker definition so the data are plotted...

9 days ago | 0

| accepted

Answered
How do i select a point on matlab UIaxes and then get data for it?
The brush tool is not (yet?) available on UIAxes as of r2019b; neither is rbbox. Here's a workaround. The first block of code ...

10 days ago | 0

| accepted

Answered
How can I automatically assign figure title in doubled for loop
Use sprintf() Example for lauf7 = [5 6 8 29 30] for lauf6 = 19:30 figure('name',sprintf('lauf7_%d_lauf6_%d',lauf...

10 days ago | 1

| accepted

Load more