
Adam Danz
MathWorks
MathWorks software engineer. Background: Ph.D. at the University of Rochester (NY) with focus on neurophysiology, visual and vestibular systems, multisensory integration, sensory-motor systems, control systems, steering, and navigation. My contributions to MATLAB Central before 14-Feb-2022 were prior to my employment at MathWorks. "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
Statistics
RANK
18
of 273.323
REPUTATION
12.566
CONTRIBUTIONS
10 Questions
3.406 Answers
ANSWER ACCEPTANCE
80.0%
VOTES RECEIVED
1.866
RANK
3.258 of 18.452
REPUTATION
446
AVERAGE RATING
4.90
CONTRIBUTIONS
28 Files
DOWNLOADS
414
ALL TIME DOWNLOADS
26990
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
26 Highlights
AVERAGE NO. OF LIKES
8
Content Feed
How to label the numeric values at the end of a stack in a stacked bar graph?
Here's a demo you can adapt to your needs. I reworked a bit of your code to Use categorical x values instead of setting xtic...
3 dagen ago | 1
| accepted
How to remove rows of zero's occurring prior to rows of desired data?
This demo makes the following assumptions The first row of non-zeros is the first row of the data you'd like to isolate. The l...
4 dagen ago | 0
No way to plot correctly dashed and dotted lines using painters
Thanks for reporting this issue. Here's a workaround I came up with after some trial and error. After running the code from y...
5 dagen ago | 0
| accepted
identify the pixel color as a single number (no RGB triplet)
Is there a way to display the single number (not the RGB triplet)? Here are two ways to explore the CData in your image interac...
11 dagen ago | 0
| accepted
Professor needs specific color for bar graph, but the hex code for the color is not working.
Color options for bar(__,color) are described in the documentation and include short names (e.g. 'r') and long names (e.g. 'red'...
13 dagen ago | 0
how to change inputdlg & questdlg & listdlg ICON?
This addresses your question https://www.mathworks.com/matlabcentral/answers/91579
14 dagen ago | 1
Problem passing a function handle into icare
A_cen and B_cen are functions that require 1 input. Fill in the 2 blanks below. The input to A_cen should have at least 3 elem...
15 dagen ago | 0
Weird behavior for pagemrdivide matlab 2022b vs 2022a
Be on the lookout for the next update (update 4) to MATLAB R2022b. 3 Ways to check for MATLAB Updates https://www.mathworks.c...
17 dagen ago | 0
Plot property 'DateTimeTickFormat'
When tick label format is not specified, datetime tick labels are automatically selected based on the range of your data and the...
17 dagen ago | 1
| accepted
polar plot multiple legend
Call legend once after both lines are added and include a name for each line. legend(["49Hz","62.5Hz"]); Alternatively, assig...
18 dagen ago | 0
Error : A and B must be floating-point scalars
This is a lesson to avoid using global variables. You're not using them properly here. But instead of fixing that, I'll sugg...
18 dagen ago | 1
| accepted
How Can I nest multiple tables?
Starting in MATLAB R2018b, tables can be nested as subtables by adding a table as a table variable. Lancaster = table(rand(5,1...
18 dagen ago | 0
Can you have a multilevel table?
An alternative to @Voss's execellent answer is to create the nested table(s) and then add the nested table(s) as a table variabl...
18 dagen ago | 1
Sub heading in matlab table
There isn't an option to arrange subheadings as described in your attached image. However, there are several ways to rearran...
18 dagen ago | 0
| accepted
Get output values from addlistener
> The new ROI data would be used as "coordinates" to calculate other parameters of my code There's no need for a listener to a...
18 dagen ago | 0
| accepted
How do I rotate a square /rectangle using line as the reference point? Thank you
I believe you're asking how to rotate the polyshape about its centerpoint. If so, specify the reference point of rotation using ...
19 dagen ago | 0
Running a timer inside another timer
The problem seems to be that the line that starts deprivTimer uses "app.deprivTimer" but "app" is not one of the input arguments...
20 dagen ago | 0
How to generate a polar plot in a for loop
It looks like you are plotting single points. The default marker is 'none' such that the function produces lines without marker...
23 dagen ago | 0
| accepted
Convert 3DPointCloud into a plot XY (2D)
If the goal is to view the pointcloud from the top to see the XY plane, there's no need to replot the data. To view a 3D axes...
24 dagen ago | 0
How do I plot Gantt Chart for scheduling?
There are several Gantt Chart functions on the File Exchange. You could create your own Gantt chart by building on this quick...
24 dagen ago | 0
| accepted
How to automatically adjust the y-axis of a boxchart so that outliers are not considered?
> How can I automatically adjust the y-axis of those plots so that only the boxplots and the whiskery but not the outliers are c...
26 dagen ago | 1
| accepted
How to get back data from quiver function?
> the particles have new locations [X1, Y1]. Is there a way to get this new location data? If you already have the X, Y, U and...
26 dagen ago | 1
| accepted
My function won't accept the vector
Perhaps you're looking for x = 0:1:10; f = x.^2-x-1;
28 dagen ago | 1
Detect when UIfigure is open
MATLAB currently does not return an indication that rendering is complete but you could use a MATLAB function that requires rend...
28 dagen ago | 0
Value of cross correlation in matlab?
You could compute the cross correlation at 0 lag using r = xcorr(___,scaleopt) where scaleopt can be set to a normalization opti...
28 dagen ago | 1
| accepted
Export figure using print with variable as the file name
Use exportgraphics (or another function export function, if needed) and define the filename using sprintf. Example: fig = fi...
28 dagen ago | 2
| accepted
Error converting string into cell array
> Sources is an image, however I just need the name of it stored in the matrix Assuming sources is a string or character vecto...
29 dagen ago | 0
How to create a matrix whose elements are a function of previous elements
This solution has two "inputs", initialMatrix and nRows and produces the output matrix out which has the same number of rows spe...
29 dagen ago | 0
| accepted
How do I change a string object into a variable name that heatmap accepts
If nchoosek returns a cell array of strings, you can index them using { } try this. heatmap(engine_config, group_perms{i,1}, g...
30 dagen ago | 0
| accepted
Overlay some line plots selectively from different .fig files in Matlab?
> Is there a better way to merge plots systematically? The color of the lines and markers in your plots were intentionally set ...
30 dagen ago | 2
| accepted