Community Profile

photo

Adam Danz


University of Rochester

964 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
Split date variable of a table into 3 variables year month and day
"I have table with 3 variables (date, latitude, longitude) where the first variable is the date (dd/mm/yyyy)" % Create example ...

circa 6 ore ago | 0

Answered
Locating points on the figure that correspond to a specific number on the colormap
In this functional example below, the colorbar value (cval) is set to 140.0 which is within the yellow-green spectrum of the col...

circa 7 ore ago | 0

Answered
how to search and delete the nth ocurance of a text in a text file
The question is unclear whether the goal is to remove the 2nd line of text or to remove the line(s) with "John is happy". The b...

circa 7 ore ago | 1

Answered
How do I create a session that is limited by time
Use a timer object that ends the session after a set duration of time. Here's an overview. Setting up the timer may seem int...

circa 9 ore ago | 1

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

circa 10 ore ago | 0

Answered
sigma deletes the axis grid
Assuming you're using the DynamicSystem method (toolbox \ control \ ctrlanalysis \ @DynamicSystem \ sigma.m), sigma() calls the ...

circa 11 ore ago | 0

Answered
help for fprintf my code
"I would like make fprintf to show me t and m as colums" fprintf('%.2f %.2f %.2f %.2f %.2f\n', [t.',m].') %note the two transp...

circa 12 ore ago | 1

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

circa 12 ore ago | 0

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

circa 12 ore ago | 0

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

1 giorno ago | 0

| accepted

Submitted


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

1 giorno 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,...

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

1 giorno ago | 0

| accepted

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

1 giorno ago | 0

| accepted

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

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

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

1 giorno ago | 0

| accepted

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

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

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

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

2 giorni 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);

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

2 giorni 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 giorni 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 giorni 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 giorni ago | 0

| accepted

Submitted


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

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

7 giorni ago | 2

| accepted

Load more