Community Profile

photo

Adam Danz

MathWorks

Last seen: Today 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 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
  • First Review

バッジを表示

Content Feed

回答済み
Text inside curve like clabel
> is there a way of writing a text inside a closed curve (e.g. an ellipse) similarly to what would be done with clabel? In shor...

4日 前 | 0

Highlighted


New in MATLAB R2022b: determine if a vector is uniformly spaced
Uniform spacing and the problem of round-off error The vector [3 4 5 6 7 8 9] is uniformly spaced with a step size of 1. ...

4日 前 | 4

回答済み
Hello Guys ,I need a help please solve my problem.
Apparently you're indexing an empty array containing 0 elements but you're asking for a value at a non-zero index. That's about...

5日 前 | 0

回答済み
Scanning for floats in different formats
The second data set uses a comma delimiter and you can ignore the top two lines by specifying the HeaderLine property. I've tes...

5日 前 | 1

| 採用済み

回答済み
How can I move legend in app designer?
The legend isn't draggable in your release (R2019b) but it is draggable starting in R2021a.

6日 前 | 1

回答済み
Ploting heatmaps in function of time
This demo produces a heatmap with random data and a slider that controls which slice of the 3rd dimension of data to plot. De...

6日 前 | 1

| 採用済み

回答済み
Programmatically event in App Designer, is it possible?
For push buttons, the event is a ButtonPushedData object with properties Source (button handle) and EventName ('ButtonPushed'). ...

12日 前 | 0

| 採用済み

回答済み
Round values of one datatip row
If you want to round the x-value, set the format for the first DataTipTextRow of the DataTipTemplate object to '%.0f'. Apply ...

13日 前 | 0

| 採用済み

回答済み
How do I display different colormap for subplots?
Use tiledlayout instead of subplot Assign the colormap to the axes using the axes handles Using tiledlayout, position the colo...

14日 前 | 0

| 採用済み

回答済み
Check if button was pressed in Matlab AppDesigner
You've got button A and button B. When the user presses button B, you want different actions depending on whether button A wa...

14日 前 | 0

| 採用済み

回答済み
How to reduce edge thickness of trisurf plot?
h = trisurf(__); h.LineWidth = __

17日 前 | 0

| 採用済み

回答済み
How do I change color of the segmented areas from an image?
Use the clim function. call clim without any inputs to see what the original colormap limits are. shift the clim upward (ass...

17日 前 | 0

回答済み
How can I plot points on top of a histogram's bins?
I think this is close to what you're looking for and will get you most of the way there. h = histogram(rand(1,5000)*100); %...

17日 前 | 1

| 採用済み

回答済み
Create tiled layout with openfig
Call gca with the figure handle so you know it's accessing the axes within the figure you just opened (assuming there is only 1 ...

約2ヶ月 前 | 0

回答済み
Why does using 'ButtonDownFcn' function disable datatip?
> Why does using 'ButtonDownFcn' function disable datatip? When you click on an object, the object has no idea of your intentio...

約2ヶ月 前 | 0

回答済み
Can I use ginput (or an analog) in the 2016a App Designer?
ginput is supported in AppDesigner figures starting in MATLAB R2020b For more info: https://www.mathworks.com/matlabcentral/...

約2ヶ月 前 | 0

| 採用済み

回答済み
Live scripts: Get axes handle of figure NOT stored in live script.
This is why gca should usually be avoided. Here are some solutions in order of robustness. Change the function so that it o...

約2ヶ月 前 | 1

回答済み
Error using plot, "vectors much be same length"
Try, x = linspace(-1.5, 1.5, numel(Sxx)) plot(x,Sxx)

約2ヶ月 前 | 1

| 採用済み

回答済み
Multi Colors and Legend for each bar
Colorbar option This is based on the solution from this thread. barData = rand(1,5); figure(); bh = bar(barData); % set...

約2ヶ月 前 | 0

回答済み
Extract data from raster plot
Assuming you don't have the data that generated the figure to begin with, try grabit from the File Exchange. It estimates the co...

約2ヶ月 前 | 0

回答済み
Plotting negative values in boxplot
You could add a second axes that zooms into the small, negative values. [NUM_w,TXT_w,RAW_w] = xlsread("data_boxplot"); flow_...

2ヶ月 前 | 0

回答済み
heatmap color RGB data for manaully created image
See the 5 lines of code under "new section". I didn't change anything else. % Given data: the sum of Data is equal to 1 % su...

2ヶ月 前 | 0

回答済み
Event on GIF reset
Without knowing the end goal, I'm not certain this will be useful but it sounds like what you're looking for can be computed or ...

2ヶ月 前 | 0

| 採用済み

回答済み
how can I plot y = (cos(t-2)/4)(rect(t+1)/6 )?
is it correct way to write tht code ? The line of code looks functional without knowing any other details including what rect i...

2ヶ月 前 | 0

回答済み
Grouping rows on the first column and obtain minimum value on second column
A = [13 7 13 6 13 5 13 6 12 7 12 5]; B = groupsummary(A,A(:,1),'min') Note that rows are sorted according to the groupi...

2ヶ月 前 | 0

回答済み
Changing layers on a bar graph
Plot the green bars first, before the bar plot. Alternatively use uistack to control the stacking order of graphics objects.

2ヶ月 前 | 0

| 採用済み

回答済み
How to hold different constellations using scatterhistogram?
scatterhistogram produces a ScatterHistogramChart object within a figure. When you call hold on, an axes is created if it doesn...

2ヶ月 前 | 1

回答済み
Is statistics and machine learning toolbox really required for gscatter plotting?
Here's a workaround I shared a while back using arrayfun. https://www.mathworks.com/matlabcentral/answers/574957-how-can-i-ma...

2ヶ月 前 | 0

回答済み
Add subtitle to the plot?
If you're using MATLAB R2020b or later, use the subplot function. If you're using MATLAB prior to that release, you could add...

2ヶ月 前 | 0

| 採用済み

回答済み
adding title to plots in Tiled Layout increase the Tile spacing
Assign the legend to the TiledChartLayout object rather than the axes. Demo: t=tiledlayout(5,1,'TileSpacing','tight','Paddin...

2ヶ月 前 | 0

| 採用済み

もっと読み込む