Community Profile

photo

Adam Danz


University of Rochester

Last seen: Today Active 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: Recently earned a Ph.D. at the University of Rochester on topics related to vision science; neurophysiology, sensory-motor systems, control systems, steering & navigation, and multisensory integration.

"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

All
  • Revival Level 4
  • 36 Month Streak
  • Solver
  • Personal Best Downloads Level 4
  • Explorer
  • Master
  • Thankful Level 4
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Knowledgeable Level 4

View badges

Content Feed

Answered
How do you set a default datatip callback function?
It doesn't appear that there is a factory CreateFcn for Data Tips and its default value is an empty character array (''). The ...

alrededor de 23 horas ago | 1

Answered
Copy axes to uiaxes
Use copyobj instead to copy the entire external axes to a uipanel in your app. Demo: % Simulate the app with a uifigure and ...

9 días ago | 0

| accepted

Answered
bootstrap regression giving 2 different answers, not sure why
According to the bootstrp documentation, bootfun should be a function handle but bootstrp merely calls feval which accepts chara...

27 días ago | 0

| accepted

Answered
fprint f help with printing a list
In Matlab R2021a or later, you can use formattedDisplayText() to convert the matrix to a string. See this community highlight f...

29 días ago | 0

Answered
How to select multiple sets of data points from a scatter plot (like gating in flow cytometry/cell sorting)?
Using the slope and y-intercept of each reference line, determine which points contain y-values less than the upper line and whi...

30 días ago | 0

| accepted

Answered
How to create an image that has random chunks of black and white pixels
Specify imageSize and blockScale to create randomly placed blocks of black and white pixels. imageSize = [1920,1080]; ...

alrededor de 1 mes ago | 0

| accepted

Answered
How to change heatmap xtick labels? Also, how to overlay (hold on) some dots over the heatmap?
Heatmaps are difficult to modify and customize. I recommend using imagesc() instead. See inline comments below and additional ...

alrededor de 1 mes ago | 0

| accepted

Answered
How to compute the average path from scattered data (and its variance)?
It looks like the following assumptions can be made: The robot starts at the same location There is a uniform temporal samplin...

alrededor de 1 mes ago | 0

Answered
Clipping Surface Plots When Plotting Large Volumes
TL;DR: When the coordinates for the red-dotted sphere are expanded, the axis limits are updated. The new x-axis limits clip th...

alrededor de 1 mes ago | 0

Answered
Interpolation of layers to obtain a layer in the orthogonal plan
Load data data1 = load('S1.mat'); data2 = load('S2.mat'); data3 = load('S3.mat'); depths = [1 5 10]; Concatenate layers to...

alrededor de 1 mes ago | 0

| accepted

Answered
How to link different scaled axes for zooming in App Designer?
linkaxes has a second input that allows you to link the x,y,or both axes. However, since your y-axes have different scales, the...

alrededor de 1 mes ago | 0

| accepted

Answered
How to reset a variable in a for loop?
The example isn't very clear but I think you want to preserve the random X values within the loop. If so, n = 10; % n...

alrededor de 1 mes ago | 0

Submitted


showImageThumbnails
View thumbnails of image files within a directory.

alrededor de 1 mes ago | 10 downloads |

Thumbnail

Answered
List of builtin demo images
Update: Starting in Matlab R2021b, the documentation contains a list of some built-in images and their descriptions in Matlab Ex...

alrededor de 1 mes ago | 2

Answered
Coloring scatter plot based on count number
Unchanged base code time = ({'25-Jul-2018 00:00:00';'25-Jul-2018 00:15:00';'25-Jul-2018 00:30:00';'25-Jul-2018 00:45:00';'25-Ju...

alrededor de 1 mes ago | 1

| accepted

Answered
separate strings that are inside a cell
If your goal is to simply be able to read those lines, use cellfun to identify elements of cell array "C" that have more than on...

alrededor de 1 mes ago | 1

Answered
Basic example of cellselectioncallback
CellSelectionCallback documentation Example in the documentation The solution to your goal will look something like this where...

alrededor de 1 mes ago | 0

| accepted

Answered
percentages deviations during sampling physical distance with "current point" on different monitors with different resolutions
I cleaned of your snippet of code and left comments where I've made changes. I've also added a horizontal ruler with 1cm tick...

alrededor de 1 mes ago | 0

Answered
How do I sort data based on another variable?
If and only if two vectors have the same number of elements, you can sort vector b according to the sorted vector a using, [aS...

alrededor de 1 mes ago | 1

Answered
How to normalize rows using retmap.
I don't know what retmap is (did you mean repmat?) Anyway, this normalizes the matrix by rows as you described, % sample data...

alrededor de 1 mes ago | 0

Answered
How to define a sequence that goes two directions
[12:-6:-12, 12:6:36]

alrededor de 1 mes ago | 0

| accepted

Answered
How to debug error "Index in position 1 exceeds array bounds"?
> " How to debug error... " That's the right question to ask (+1). Knowing that there would be an error, I started by setti...

alrededor de 1 mes ago | 0

| accepted

Answered
Plot disappears when trying to interpolate
Plotting an alphaShape creates a patch object. When set to interp, the EdgeColor property requires existing CData or FaceVertex...

alrededor de 1 mes ago | 0

| accepted

Answered
Hello, can anyone help me to find the count of mushrooms from an image?
I'm an enthusiastic novice in image analysis so I'm not confident that this is the best (or even a good) solution but it might h...

alrededor de 1 mes ago | 1

Answered
How to test if values are close togather using p-value (ttest)
The ttest assumes that data come from a normal distribution and that a reasonable large sample size is used. Your sample data a...

alrededor de 1 mes ago | 0

Answered
How do you print the F-stat in a multcompare test?
You are performing a one-way ANOVA which means your null hypothesis is that there is no difference in the population means of yo...

alrededor de 1 mes ago | 0

| accepted

Answered
Why can't I use mapcaplot?
See the documentation. The data input should be a numeric array or a DataMatrix object. Yours is a table. Also see table2arr...

alrededor de 2 meses ago | 0

| accepted

Answered
How to get rid of this warning which point at extra entries?
Assuming [b2, b1] produces a vector with 4 handles, try this legend([b2,b1], labels{:}) or this labels = {'Electricity consum...

alrededor de 2 meses ago | 1

| accepted

Answered
Stacked bar chart with errorbars
hold on % <--- you forgot this errorbar(x',y',err,'k','linestyle','none','HandleVisibility','off'); Also, you can replace the...

alrededor de 2 meses ago | 0

| accepted

Answered
Spacing Xticks in plotting a function
"Value must be a vector of increasing datetime values." set(gca, 'Xtick', (0:100:1200), ... Those values above are not datetim...

alrededor de 2 meses ago | 1

Load more