Community Profile

photo

Adam Danz


University of Rochester

915 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
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) ==...

약 3시간 ago | 0

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

약 3시간 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); ...

약 3시간 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 ...

약 3시간 ago | 0

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

약 5시간 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...

약 7시간 ago | 0

| accepted

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

약 7시간 ago | 0

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

약 8시간 ago | 0

| accepted

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

약 8시간 ago | 0

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

약 8시간 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...

약 8시간 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 ...

약 8시간 ago | 0

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

약 8시간 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]]; ...

약 8시간 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...

약 23시간 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...

3일 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...

4일 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...

4일 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; ...

4일 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...

4일 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...

4일 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', '...

4일 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 ...

4일 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...

4일 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...

4일 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...

5일 ago | 1

| accepted

Answered
Multiple Scattergram plots in the same figure
The easy way Create two different figure; then copy the axis of the second figure to the first figure and change the axis posit...

5일 ago | 0

Answered
Remove negative numbers and rows from an array
@ Richard Rees, I didn't realize you had attached data. I see what the problem was: some of your matrices do not have at least ...

6일 ago | 0

| accepted

Answered
How to make a column plot like this one?
Interesting plot! Here's a recreation using similar values. "chgData" are the height of each country bar while "worldData" are...

6일 ago | 0

| accepted

Answered
How to change the color of plotting lines
The line of code that apparently does the plotting is cut off in your image. Either specify the color during plotting plot(x,...

6일 ago | 0

| accepted

Load more