Community Profile

photo

Adam Danz


University of Rochester

918 total contributions since 2014

Finishing PhD soon.
Vision science; neurophysiology (single unit); sensory-motor feedback and control; control systems; steering & navigation; multisensory integration; top-down bottom-up feedback loop.

Helping others is the greatest learning opportunity.

(I don't reply to personal email messages through matlab central unless they pertain to one of my file exchanges).

University of Rochester, NY
New Bulgarian University, Sofia Bulgaria

Contact

Adam Danz's Badges

  • 12 Month Streak
  • Guiding Light
  • Thankful Level 2
  • Revival Level 3
  • Knowledgeable Level 4
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
Sum of first column based on second column and storing results in a matrix
% Create fake data for the demo A = [rand(30,1),randi(3,30,1)+1000]; % Calculate group sum and store in table [groupID, gr...

4 hours ago | 1

| accepted

Answered
How can I remove the white edge in the density map?
Try this axis tight xlim([minvalstri(1), maxvalstri(1)]) ylim([minvalstri(2), maxvalstri(2)]) Note that these points are the...

5 hours ago | 1

| accepted

Answered
Fix a colormap between two values
"I would like to "fix" the colorbar between two handpicked values [depthMin depthMax], so that the first image is generally blue...

5 hours ago | 0

| accepted

Answered
Plotting different colors of Bar graph (2016a)
" I have been trying to plot bar with different colors" For newer releases, this is fairly straightforward (demo) but for r201...

9 hours ago | 0

Answered
Adding scatter plots to main effects plot (DoE)
Try specifying the axis handle on every line within the for-loop. It's good practice to always specify the parent handle. for...

9 hours ago | 0

Answered
adding labels and automatically saving as .jpg
" i would like to add x and y labels to the figure and automatically save it as .jpg without displaying the figure " You can s...

9 hours ago | 0

Submitted


msgboxFontSize
Change the fontsize and other text properties in a msgbox(), errordlg(), warndlg() etc.

1 day ago | 0 downloads |

Thumbnail

Answered
why the these two equal values when comparing gives 0 as result ?
6.00000001 == 6 ans = 0 To see if precision is the issue, one or both lines below should be false. fsern(221) ==...

2 days ago | 0

Answered
File name as value of a variable
You were really close. You just forgot to use the filename variable. for i=1:5 filename = sprintf('testdata_%d.xlsx',i); ...

2 days ago | 1

| accepted

Answered
Error using Bar, X must be same Length as Y.
As the error indicates, x and y must be the same length. Here's a demo to understand the error: bar(1,2) % this is OK ...

2 days ago | 0

| accepted

Answered
How to use extract values from table and create a vector?
Reshape your matrix from [n x 6] to [m x 3] where m=2*n. Row 1 of your new matrix will be your V1 vector, row 2 will be your V2...

2 days ago | 1

| accepted

Answered
date conversions from yyyydddhhmmss to the number format
Assuming you've already isolated the datetime strings, % Convert string to datetime dtstr = '2018:335:00:00:11'; dt = datet...

2 days ago | 0

| accepted

Answered
How to get the value of Radio buttons from App Designer
The 'Value' property of the radio buttons returns a logical that is true when selected and false otherwise. Here's an example t...

2 days ago | 0

| accepted

Answered
extracting information from a boxplot saved as fig
There's no way to access the raw data that were used to create the boxplots unless those values were intentionally saved somewhe...

2 days ago | 0

Answered
How can I plot in real time where I have a circle be the current position, and I also have a line of every past position?
Option 1 Here's a demo to run that plots the progression of a curve as a line with a circle marker at the current coordinate. A...

2 days ago | 0

Answered
How to access large arrays
"How can I view all the entries in this array" One way is to put the char array into an edit box where you can scroll through ...

2 days ago | 0

| accepted

Answered
Index exceeds the number of elements (1)
On the second iteration of your while-loop, u2(i) is causing the error since you're trying to access the second element of u2 bu...

2 days ago | 1

Answered
How can I call RGB triplets within my for loops from a predefined structure?
%This line is fine r = [[0, 0.4470, 0.7410]; [0.8500, 0.3250, 0.0980]; [0.4660, 0.6740, 0.1880]; [0.6350, 0.0780, 0.1840]]; ...

2 days ago | 0

| accepted

Answered
mean of tables in cells
You can adapt this functional demo to your needs and if it doesn't work with your data, please tell us how your data differ from...

3 days ago | 0

Answered
Random Noise Generation Error
You're running 96256 total loops which will take a while. It looks like you terminated the process while waiting. To see the p...

5 days ago | 1

Answered
How to add equation to function
Try using an anonymous function. I also cleaned up the for-loop so it is used properly. rocketFcn = @(x)(60+(2.13*(x^2))-(0.0...

6 days ago | 1

Answered
Matlab doesn't write on excel after the first loop in try catch
Without having much information, your error is probably due to improper loop setup. for f = 1:size(Flist) size(Flist) probabl...

6 days ago | 1

| accepted

Answered
3d point cloud in a UIAxes element in app designer
You can use plot3() or scatter3() . function ButtonPushed(app, event) x = 1:10; y = 1:10; ...

6 days ago | 0

| accepted

Answered
App Designer not changing Edit Field Value after button is pushed
Try this function ButtonPushed(app, event) app.StatusField.Value = 'STATUS: Processing...'; drawnow() % <---- tell matlab to...

6 days ago | 0

| accepted

Answered
How to replace a column in a table with different values?
You were close. Use curly brakets and input a column vector. B{:,1} = (1:13)' % or B.y1 = (1:13)'; Note that the ex...

6 days ago | 1

| accepted

Answered
How do I plot even spaced but uneven value increment graphs?
To plot with log axes Re = [10 50 100 200 500]; Rmin =[0.009 0.01 0.014 0.023 0.029]; plot(Re,Rmin); set(gca, 'XScale', '...

6 days ago | 0

| accepted

Answered
Error in using try catch
In general you should avoid using clear all (see link and image below). You're throwing the baby out with the bathwater. If ...

6 days ago | 1

| accepted

Answered
Please help. Error of index out of bounds in my program
All terms in the following two lines are constants so bt and dt will always be single values. bt=beta*v.*(N-v)/N; dbstop if er...

6 days ago | 0

Answered
Colorbar title is beyond the axis
I was able to reproduce the problem after embedding the code you provided (copied below) within an app. It looks like a bug and...

6 days ago | 0

| accepted

Answered
I am supposed to get list of matrices but I am getting this.What do they mean?
That is your list of matrices. It's called a cell array. traj{1} %that's your first matrix traj{2} %that's your 2n...

7 days ago | 1

| accepted

Load more