Community Profile

photo

Adam Danz


University of Rochester

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

University of Rochester, NY
New Bulgarian University, Sofia Bulgaria

EMAIL:
I only reply to emails about my file submissions. If you want to bring a question to my attention, send the link to the question.

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
Error with xlswrite (error 0x800A03EC)
This is an excel error code - not a problem with matlab. If you search for that error code you may find some help. For examp...

etwa 3 Stunden ago | 0

Answered
How to generate random matrix from another one?
You can use randperm() to shuffle the values of array 'm'. % Original array m =rand(180, 57, 11); % Random permutation ind...

etwa 3 Stunden ago | 0

Answered
Error in plot function
Remove the 'LineWidth' name-value pair and specify it after plotting. p1=plot(f1,WindowSizes,Data1Disjoint); set(p1,'LineWidt...

etwa 3 Stunden ago | 0

Answered
Display data points in boxplots
After some slight rearrangement of your code, I added a secton that optionally scatters the x coordinates around the centers of ...

etwa 14 Stunden ago | 0

| accepted

Answered
Try to mix as much as possible elements inside an array
The 'exchangeOpts' is a list of exchange options such that any value in V that matches a value in exchangeOpts{n} can be replace...

etwa 21 Stunden ago | 0

Answered
how to fit different lines for scatter points from specific categorical data?
Easiest way is to do it in a loop. placeUnq = unique(place); %all unique place values fit_line_groups = cell(numel(placeUnq),...

etwa 22 Stunden ago | 1

Answered
How to make trasparent the background of the static text.
When you set the BackgroundColor of a static text box to "none", a black patch appears rather than transparency. As a workarou...

3 Tage ago | 0

| accepted

Answered
I am getting a blank graph when I try to plot a while loop. I am not sure why. My code is below. Thank you MATLAB
On each iteration of your while-loop CR and HF produce 1 coordinate but you're asking to draw a line which requres 2 coordinates...

3 Tage ago | 1

Answered
Manova(rm)
Matlab's documentation is really thin when it comes to many of their statistical methods which makes it difficult to address som...

3 Tage ago | 0

Answered
Converting time data to plot
After you convert to datetime, keep it in datetime format. There's no need to convert it to char. From r2016b onward, you ca...

3 Tage ago | 1

Answered
Low Pass filter for big experimental data set
My hunch is that x1 should be a vector (not a matrix) and that Fx is a column vector. If this hunch is correct, the solution ...

5 Tage ago | 0

| accepted

Answered
Put workspace data into menu and prompt someone to select it
You weren't saving the user's selections (menu outputs). The output to menu is an index of the user's selection. Use those ind...

5 Tage ago | 0

| accepted

Answered
Return data from GUIDE on figure close
To delay a GUIDE-GUI output until the GUI is closed, follow these steps. A functional demo is attached that produces an empty G...

6 Tage ago | 1

| accepted

Answered
Placing annotations at specific xy coordinates
Annotations are a pain to use unless the axes are normalized to 0:1. I see no reason why Matlab cannot allow users to specify t...

6 Tage ago | 0

| accepted

Answered
Carrying over variables in app-designer
Avoid using global variables. Instead, you can define a new property of your app that stores the fileLoc data. The process is...

6 Tage ago | 2

| accepted

Answered
How to ask the user how many file extensions to search for
That's too much work (for you and the user). Instead, the user could just list all file extensions in the first dialog, separat...

6 Tage ago | 1

| accepted

Answered
Having trouble using cell2mat
You were on the right track. You're reading the data as cell array of strings so you need to convert the data to numeric using ...

6 Tage ago | 0

Answered
Copying a matlab gui to a different directory
This is among the common problems with GUIs produced in GUIDE. Many volunteers in this forum are not shy about their disdain fo...

6 Tage ago | 0

Answered
Is it possible to draw a bar plot with percentage lines?
Use cumsum() to compute the cumulative sum of each bar height. Then you can normalize it to the max bar height (this is how I i...

6 Tage ago | 1

Answered
How to count date occurrence independently of year?
This solution creates a table (T) that lists all month-day combinations in your data in 1 column and the count in the 2nd column...

6 Tage ago | 0

| accepted

Answered
unexpected string scalar error?
There are 2 required inputs and 1 optional input to taylor() followed by optional name-value pair arguments. Your call to taylo...

6 Tage ago | 0

Answered
How to compare a coefficient from two regression
One way would be to compute the 95% confidence interval of the regression coefficients and determine whether they overlap (which...

6 Tage ago | 0

Answered
Alternative to "drawnow" to plot real time data inside while loop
"Are there alternatives to "drawnow" to plot complex data in real time?" I can think of two things to try. 1) instead of call...

6 Tage ago | 0

| accepted

Answered
how can i add two matrix vertically with different column
Bpad = padarray(B,[0,numel(A)-numel(B)],'post'); C = [A;Bpad]

7 Tage ago | 1

Answered
How to put uitable in new figure using GUIDE?
You can keep the UI table on the main GUI window and toggle its visibility using the "Visible" property. When the UI table is n...

7 Tage ago | 0

| accepted

Answered
Count how many elements are present inside arrays
Here is an anonymous function that can be applied to any two vectors. The vectors can be any lengths and any orientation (row or...

7 Tage ago | 0

Answered
remove repeated rows to produce two new matrices
% Convert b to [first,last] non-zero per row b2 = splitapply(@(x)x([find(x~=0,1,'first'),find(x~=0,1,'last')]),b,(1:size(b,1))....

7 Tage ago | 0

| accepted

Answered
Does the One-way ANOVA test on MATLAB check that the conditions for applying ANOVA are met?
Great question, +1 Matlab does not perform any assumption checks to my knowledge. So yes, you need to perform those tests pr...

8 Tage ago | 0

Answered
Change "Items" in a Discrete Knob with another knob
For Knobs (continuous) There are a few things wrong with your callback function. I've listed them in order of importance. Th...

8 Tage ago | 0

| accepted

Answered
average RGB values from list of pixels.
If x is your 1xnx3 array, meanRGB will be a 1x3 vector of the average rgb values. meanRGB = mean(squeeze(x),1); Here's th...

8 Tage ago | 0

Load more