Community Profile

photo

Adam Danz

MathWorks

Last seen: Today Aktiv seit 2014

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

Professional Interests:

Statistics

All
  • MATLAB Mini Hack 2022 Participant
  • MATLAB Mini Hack Participant
  • Knowledgeable Level 4
  • Most Accepted 2021
  • Solver
  • Personal Best Downloads Level 4
  • Explorer
  • Revival Level 4
  • 36 Month Streak
  • Master
  • Thankful Level 5
  • Editor's Pick

Abzeichen anzeigen

Content Feed

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

2 Tage vor | 1

| akzeptiert

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

3 Tage vor | 0

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

3 Tage vor | 0

| akzeptiert

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

10 Tage vor | 0

| akzeptiert

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

12 Tage vor | 0

Beantwortet
how to change inputdlg & questdlg & listdlg ICON?
This addresses your question https://www.mathworks.com/matlabcentral/answers/91579

13 Tage vor | 1

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

14 Tage vor | 0

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

15 Tage vor | 0

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

16 Tage vor | 1

| akzeptiert

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

17 Tage vor | 0

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

17 Tage vor | 1

| akzeptiert

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

17 Tage vor | 0

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

17 Tage vor | 1

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

17 Tage vor | 0

| akzeptiert

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

17 Tage vor | 0

| akzeptiert

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

18 Tage vor | 0

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

19 Tage vor | 0

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

22 Tage vor | 0

| akzeptiert

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

23 Tage vor | 0

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

23 Tage vor | 0

| akzeptiert

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

25 Tage vor | 1

| akzeptiert

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

25 Tage vor | 1

| akzeptiert

Beantwortet
My function won't accept the vector
Perhaps you're looking for x = 0:1:10; f = x.^2-x-1;

26 Tage vor | 1

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

27 Tage vor | 0

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

27 Tage vor | 1

| akzeptiert

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

27 Tage vor | 2

| akzeptiert

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

28 Tage vor | 0

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

28 Tage vor | 0

| akzeptiert

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

29 Tage vor | 0

| akzeptiert

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

29 Tage vor | 2

| akzeptiert

Mehr laden