Community Profile

photo

Adam Danz


Last seen: Today

University of Rochester

1 901 total contributions 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: Finishing PhD soon on topics related to vision science; neurophysiology; sensory-motor feedback and control; control systems; steering & navigation; multisensory integration; top-down bottom-up feedback loop.

"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

Contact

Adam Danz's Badges

  • Personal Best Downloads Level 4
  • Explorer
  • Ace
  • Thankful Level 3
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • 12 Month Streak
  • Revival Level 3
  • Knowledgeable Level 4
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
Trying to concentrate a cell containing tables
Summary of comments under the question: 1) Remove the datetime column from each table. T_noDT = cellfun(@(T){T(:,2:end)}, c) ...

ungefär 14 timmar ago | 0

Answered
Error when using (plotting) one m file data into another m file.
(Comment copied to answers section). There could be several problems and if the same variable name is used in multiple scripts...

ungefär 18 timmar ago | 0

Answered
How can I clear stuck help popups?
Note: This answer does not address the problem of stuck function hints and other pop-up messages internal to Matlab. It address...

ungefär 19 timmar ago | 1

Answered
How can i plot a 3D waterfall ?
What does your code look like that produces the 2D plot? If the entire matrix is the 1st and only input to waterfall(), it shou...

ungefär 22 timmar ago | 0

| accepted

Answered
alternate to using "find" to determine indices?
"Is there a way to determine their indices using logical indexing...?" Yes, and logical indexing is usually a better way to ind...

ungefär 22 timmar ago | 0

| accepted

Answered
put the fit messenge on text box
Assuming your textbox handle is handles.textbox, and c is the cfit object, cText = evalc('c'); handles.textbox.Max = 2; % t...

ungefär 23 timmar ago | 1

| accepted

Answered
How to make this truck move across the bridge in an animation?
First of all, nice lorry (slow-clap). Here's how to make it drive forward along the x axis. You could add a Y-component of m...

en dag ago | 0

| accepted

Answered
varfun for a cell array?
I didn't quite get the last part of your description but this should get you started. If you have trouble completing your goal,...

2 dagar ago | 0

| accepted

Answered
Modify a plot in a for loop
The idea is to collect all of the line object handles. I've also restructured your code; see the inline comments for details. ...

2 dagar ago | 1

| accepted

Answered
How to use bar function?
See the Display Groups of Bars example in the documentation. If you have any problems setting that up, provide your data and co...

2 dagar ago | 0

Answered
How to check for repeated values in a matrix?
If you're working with integers, check for repeated values using unique() repeatsTF = numel(a) == numel(unique(a)); However, ...

2 dagar ago | 1

| accepted

Answered
Input Argument type double
The update variable in your code is equal to 1 and is entered as the 2nd input to the clusterer but it doesn't fulfill the requi...

2 dagar ago | 0

| accepted

Answered
Using the drop down box in app designer
Problems: 1. You've got 3 variables named "value" and they all have the same value which is equal to the last of those variable...

2 dagar ago | 0

Answered
Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
To address your question, an anonymous function only returns a single output. So, x = PID(. . .) % This is fine, it retu...

2 dagar ago | 0

Answered
Help with 2D plot from a matrix
Continuing from the comments under the question. Using imagesc, you can change the tick labels using set(gca, 'XTick', 1:3, ...

3 dagar ago | 0

Answered
Representing certain range of X axis using a single tick in MATLAB plot
Two options X = [1,2,3,4,5,6,7]; Y = [10,10,10,10,20,30,40]; xIdx = [1,5,6,7]; bar(X(xIdx), Y(xIdx)) ax = gca(); ax.XT...

4 dagar ago | 1

| accepted

Answered
Not sure how to fix my matrix dimension problem
t is a 1x41 vector; wd and zeta are both 1x7 vectors. You can't do pairwise multiplication with two arrays of different size. ...

4 dagar ago | 1

Answered
How can I sort an array to follow a path?
I don't know much about reading in stl files but you might want to look into options that would read in the points in different ...

4 dagar ago | 0

| accepted

Answered
Counting characters in a file
Here's a demo to count the instances of a character in a text file. This demo searches for a space character ' ' and then repl...

4 dagar ago | 0

| accepted

Answered
Stop plotting on MATLAB
The switch/case in your question does the same thing no matter what case was selected so why have it at all? The reason you're ...

4 dagar ago | 0

Answered
Plotting trendline and normally distributed numbers
"I need to change my variable e in a way that it represents normally distributed numbers with a mean 0 and a standard deviation ...

4 dagar ago | 0

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
The transformation matrix produces a 3x3 matrix and you're attempting to store the 3x3 matrix into a single 1x1 space in A(i). ...

4 dagar ago | 0

Answered
How to use bootstrap technique among multiple data sets by choosing data sets randomly
"... i want to use all the 10 sections data i.e. EH1 to EH10 in bootsrtp function for 500 iterations to get Zfinal." Why split ...

4 dagar ago | 0

Answered
Insert all in matrix
You can either store the outputs in a cell array like this i=1; for S=0.05:0.05:1 LIV{i}=ricerca(V0,W,S,N) % ^ ^ ...

5 dagar ago | 0

| accepted

Answered
multiplay colum of matrix
y = prod(a);

5 dagar ago | 0

Answered
How to graph values of a function above and below 0 as separate functions?
The conditional statements in your code aren't doing what you think they are doing. They return true only when the entire vecto...

5 dagar ago | 1

Answered
how to add a single blank row in a table
Note that "missing" values are represented by NaN values for numeric data. % Create demo table T = array2table(reshape(1:9,3...

5 dagar ago | 0

Answered
Conversion to cell from double is not possible.
dx{k} = imfilter(g{k},h1); dy{k} = imfilter(g{k},h2); % ^ ^ Use curley brackets or dx(k) = {imfilter(g{k},h...

5 dagar ago | 1

| accepted

Answered
Which version I should download for 2 GB RAM?
Look through this table that lists the minimum system requirements across all Matlab releases for multiple systems. R2017b (M...

5 dagar ago | 1

| accepted

Answered
Calculate longterm daily average
Create timetable (from OP's code) mat = randi([0 14600], 730, 5, 2); sc1 = (datetime(1981,1,1):datetime(1982,12,31))'; splitm...

5 dagar ago | 1

| accepted

Load more