Community Profile

photo

Adam Danz


University of Rochester

958 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
Use different colormaps for pcolor subplots
You're assigning the colormap to the colorbar. Instead, assign it to the axes and the colorbar will follow suit. ax(1) = sub...

etwa 12 Stunden ago | 0

| accepted

Submitted


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

etwa 15 Stunden ago | 16 downloads |

Thumbnail

Answered
Getting colors using RGB values w/ scatter3
rgb triplets are normalized between 0:1 https://www.mathworks.com/help/matlab/ref/colorspec.html To convert from decimal code,...

etwa 15 Stunden ago | 1

| accepted

Answered
Calculate the distance between matched points
The (x,y) point locations are stored in the "Locations" property of a SURFpoints object. If you are calculating the distance bet...

etwa 16 Stunden ago | 0

| accepted

Answered
Where are all drawn shapes stored from an axis?
Store handles In the block below, r1, r2, & r3 are handles to the 3 rectangles. figure() r1 = rectangle('Position',[0 0 2 4],...

etwa 18 Stunden ago | 0

Answered
error with changing directory in for loop
Do not use cd(); use fullfile() instead and then feed in the full path of the file to dlmwrite().

etwa 19 Stunden ago | 0

Answered
Using MATLAB GUI popup
Presumably you have a callback function for the checkbox that controls the "enabled" property of the popup menu. Within that ca...

etwa 19 Stunden ago | 0

Answered
Import data from txt file
This uses readtable() to read in your txt file and it uses regexp() with the 'tokens' flag to pull out relevant data. %% Impor...

etwa 20 Stunden ago | 1

| accepted

Answered
number to string and char to string in table
% Create fake data T = table((1:5)',('a':'e')','VariableNames', {'col1','col2'}); % Convert num-to-string and char-to-string...

etwa 21 Stunden ago | 0

| accepted

Answered
How to extract specific values from a table
If I understand your question correctly, you want to measure the distance each (x,y) coordinate travels between frames. Is that...

etwa 22 Stunden ago | 0

Answered
How can I sum a specified region of a matrix?
"I want to sum together in the x dimension (20 to 25), and in the y direction (1 to 3) all of the z direction values into one ar...

ein Tag ago | 0

| accepted

Answered
Change name of figures in figures Tab
Name the figure when it's created CurvaJV = figure('Name','My figure name') or name the figure after it's created set(gcf, 'N...

ein Tag ago | 0

Answered
How can I open two instances of MatLab R2019a on Windows 10?
The machine I'm using now is windows 7 but I can run multiple instances of Matlab r2019a just by opening Matlab twice from All ...

ein Tag ago | 1

| accepted

Answered
save a single subplot from a .mat file that contains 2x1 subplots
There's nothing wrong with your solution of deleting the unneccessary subplot and resizing the desired one. If you need to do t...

ein Tag ago | 1

| accepted

Answered
add a cell array in double for one more column in uitable
data = [num2cell(join_all), Units]; % <--- cell array t = uitable(fig,'Data',data);

ein Tag ago | 0

Answered
Correlation between two vectors
Directly from matlab documentation, n = 0:15; x = 0.84.^n; y = circshift(x,5); [c,lags] = xcorr(x,y); stem(lags,c) xlabe...

ein Tag ago | 0

Answered
Table embedded in uitable ignores ColumnFormat Property
In your table "data2", the second column are not numeric values. They are of class char. class(data2.B{1}) ans = 'char'...

2 Tage ago | 0

Answered
How can i keep my variables after running the function?
" Is it possible to keep the variables once a function has run " Yes. Add outputs to your function if variables are immediate...

2 Tage ago | 0

Answered
Control image transparency with a slider- appDesigner
This should get you started. % Create a figure with two images overlayed clf() [X,cmap] = imread('corn.tif'); imshow(X,c...

2 Tage ago | 0

| accepted

Answered
How to obtain values from a table in matlab
I'm not sure what you mean by "in order to make a matrix out of it". If this demo doesn't address the problem, please provide a...

3 Tage ago | 0

| accepted

Submitted


supersizeme
Quickly increase/decrease the font size of all text in a figure by a chosen factor.

6 Tage ago | 9 downloads |

Thumbnail

Answered
"Undefined function or variable 'drawfreehand'." All ROI functions don't work.
You probably don't have the toolbox function on your matlab path. Go to the primary folder where the toolbox functions are stor...

6 Tage ago | 0

Answered
Save Plot with Minimal White Space (Crop Padding)
"What isn't working: there is no export button as explained on that page..." The demo in the link you provided works well in r2...

6 Tage ago | 0

| accepted

Answered
What is causing the reshaping error?
As described in the documentation, reshape() the 2nd and 3rd inputs should be integers and when those two integers are multiplie...

6 Tage ago | 2

| accepted

Answered
checking for dependency in the previous row?
Here's a demo that counts the consecutive rows of "data" (a matrix) that match "key" (a row vector). The variable "consecutiveC...

7 Tage ago | 1

| accepted

Answered
Figure without border?
fh = figure('Menu','none','ToolBar','none'); ah = axes('Units','Normalize','Position',[0 0 1 1]) ADDENDUM If you're using ax...

7 Tage ago | 2

| accepted

Answered
converting 3 arrays into matrix
It sounds like you want to horizontally concatenate three column vectors of equal length to form a matrix. If this doesn't demo...

7 Tage ago | 0

Answered
in matlab 2019a, profiler does not work correctly
It works fine for me (r2019a) when I time the following two lines. t = randi(1000,60,1); plot(1:60,t, 'o') If the "Run and...

7 Tage ago | 0

Answered
Create new column in table
Here's a demo that creates a similar table to the table you shared in the png file. It then shows how create indices that find ...

7 Tage ago | 0

Answered
How to group scattered points that visually belong to lines?
The data you provided was helpful. This should get you started. Check out the documentation for clusterdata() so you can tweak ...

8 Tage ago | 0

| accepted

Load more