Community Profile

photo

Adam Danz


University of Rochester

981 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
how to covert negative samples of sine wave into positive?
To shift the sin curve upward so that it's minimum value is not negative, x1 = sin(x) - min(sin(x(sin(x)<0))); Another way to...

environ 2 heures ago | 0

Answered
Creating subtable from larger table with criteria
This should get you started (see addendum at the end). The approach is to search for a key word that must be within the header (...

environ 2 heures ago | 0

Answered
Read dada from a file
Attached is the text file you described named xyz.txt. % Read in the file t = fileread('xyz.txt'); % Split text where '>' ...

2 jours ago | 1

| accepted

Answered
How to align axes to a point on another figure
The problem is that axis positions are in figure space (relative to lower left corner of the figure) while the data point coordi...

3 jours ago | 0

| accepted

Answered
Find first non-NaN in each column of array & combine into one vector
X = [2 NaN NaN NaN 4 6 NaN NaN NaN NaN NaN NaN 5 4 7 8]; X(cumsum(cumsum(~isnan(X)))~=1) = ...

3 jours ago | 3

Answered
x-axes are not coincident using multiple axes
(Copied from comments section) I'm wondering the same thing Jan asked. It should look something like this: ax2 = axes(......

3 jours ago | 0

| accepted

Answered
Extracting Data from Cells
I think this is the format of your data: C = {rand(20,4),rand(15,4),rand(22,4)}; Extract the first 3 columns of cell 2 C{2}(...

3 jours ago | 0

Answered
How can I display greek letters as boxplot labels?
Use ASCII codes figure boxplot([(1:2:10)',(1:2:10)']) set(gca,'xticklabel',{['A ' char(955)], ['B ' char(961)]},'fontsize', 1...

3 jours ago | 0

| accepted

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

3 jours 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]...

3 jours ago | 0

| accepted

Answered
Multiple axes: how to plot the correct scale on both x-axes and y-axes?
The double ticks are due to the axis 'Box" property set to 'on' and the misalignment of ticks between the upper and lower axes (...

3 jours ago | 0

Answered
sigma deletes the axis grid
Short answer: You need to add the grid after calling sigma(). Long answer: Assuming you're using the DynamicSystem method (to...

3 jours ago | 1

Answered
help for fprintf my code
"I would like make fprintf to show me t and m as colums" ...where t is an [1 x n] vector and m is a [n x 4] matrix. fprintf('...

3 jours ago | 1

Answered
How to convert 1.35678e-01 to numerical digits in matalb?
" I need it in normal whole numbers like 0.005, 12345, 89898 etc" Setting the format to longg (not long!) or shortg will solve...

4 jours ago | 1

| accepted

Answered
part of file name
s = 'Hello_World_2020'; c = regexp(s,'_(.*)_','tokens'); c = c{1}{1}; c = 'World'

4 jours ago | 1

Answered
Adding columns to tables
Try saving all tables to a cell array and then concatenating them after the loop. %Incrementing through all file names...

4 jours ago | 0

| accepted

Answered
GUI, how to use previous loaded structure into next callback function?
" How is it possible to "attach" or "assign" this structure to the buttons and somehow be able to select fields and data from th...

4 jours ago | 1

| accepted

Answered
Finding a specific rows?
This does not require a for-loop. In fact, the last line is the solution. The first few lines just creates an example matrix w...

4 jours ago | 0

| accepted

Answered
Regular expressions, builing up a simple expression for a search
https://regex101.com/ I recommend that site when building regular expressions. ^(sw|wk|st).+(400_0\.inf|420_0\.inf)$ % ...

4 jours ago | 1

| accepted

Answered
Save n*Number of Pie Charts Generated from a loop
Explanation of the problem The primary resource to go to with problems like these is the documentation which describes what the...

4 jours ago | 1

| accepted

Question


Community profile not updating
Has anyone else noticed that their MathWorks community profiles haven't updated in the past ~15 hours (as of 7:30am EST, 7-18-19...

4 jours ago | 1 answer | 1

1

answer

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

5 jours ago | 0

| accepted

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

5 jours ago | 0

| accepted

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

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

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

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

6 jours ago | 0

| accepted

Submitted


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

6 jours ago | 20 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,...

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

6 jours ago | 0

| accepted

Load more