Community Profile

photo

Adam Danz


University of Rochester

1,399 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

連絡する

Adam Danz's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
How to enable data tips?
The optional input to datacursormode() is a figure handle, not an axis handle. Data cursor mode has only recently been supporte...

約11時間 前 | 0

回答済み
Plotting missing data in different colour
years=[1;2;3;4;5;6;7;8;9;10]; price1=[1;1;1;2;3;4;5;6;7;10]; price2=[2;2;2;3;4;5;6;7;8;11]; price3=[1.5;1.5;1.5;nan;2;nan;6;7...

約12時間 前 | 1

| 採用済み

回答済み
reset the counter in for loop
You cannot alter the for-loop counter. Here's an alternative that continually asks the user for a vector of positive numbers un...

約12時間 前 | 0

回答済み
Marking x intercepts on graph
Method 1: solve equation for y=0 Use the Symbolic Math Toolbox to solve for y=0; see inline comments for details. % Solve for ...

約13時間 前 | 1

| 採用済み

回答済み
save GUI fig by name from edit text
Place this code in a callback function designed to save the figure. See inline comments for details. newFig = figure(); ...

1日 前 | 0

| 採用済み

回答済み
yyaxis not working in app designer.
The problem A warning is thrown when clicking on UIAxis objects that were plotted with yyaxis. To recreate the problem: % (in...

1日 前 | 1

| 採用済み

回答済み
How to automatically shift a graph back
If you don't have access to xcorr() you can easily set up a loop the circularly shifts signal-2 one unit at a time and computes ...

2日 前 | 1

| 採用済み

回答済み
List of built-in data sets, please
I started a list of built-in mat files and a brief description of their variables (r2019b). Since numeric variables are fairly ...

2日 前 | 1

回答済み
How to convert arrays out of cells
Generating variables within a loop involves dynamic variable naming which should be avoided at all cost. Instead, since your ar...

2日 前 | 0

回答済み
Error bar with CI 95 on bar graph
Here's an anonymous function that computes the 95% CI based on the tinv method which requires that your data approximately form ...

2日 前 | 0

回答済み
Allow user to draw a line using mouse
If you have the image processing toolbox, use drawline(). Something will have to trigger the function such as a button press or...

2日 前 | 0

| 採用済み

回答済み
Draw diagonals of rectangle
If you're looking for a function, check out interconnections() rectPos = [1 2 5 6]; %[left, bottom, width, height]; intercon...

3日 前 | 0

| 採用済み

送信済み


interconnections
Produce lines that interconnect all coordinates.

3日 前 | ダウンロード 1 件 |

Thumbnail

回答済み
Random display of 'even' or 'odd'
Here are the 5 steps you need to take. Since this is your assignment, this answer isn't complete. Each step shows what you nee...

3日 前 | 0

回答済み
Link axes with different Y-Scales
Currently (r2019b) the UI stack cannot be controlled with yyaxis axes which always results in right-axis objects at the top of t...

3日 前 | 0

| 採用済み

回答済み
how do bins in histograms work?
What you're describing sounds like a bar chart rather than a histogram. 1000 bars is quite a lot of bars. data = logical(randi...

3日 前 | 0

| 採用済み

回答済み
Merging table rows, keep all columns
% Read in the data files = {'RESULTS_SAMP1.CSV', 'RESULTS_SAMP2.CSV'}; %Full paths are always better T1 = readtable(files{1},...

4日 前 | 0

| 採用済み

回答済み
How i can change the x-axis labels and ticks like that
If you're using Matlab r2019b or later, you can use tiledlayout() to create your subplots (see examples in that link). For earl...

4日 前 | 0

| 採用済み

質問


List of built-in data sets, please
It would be great if Matlab documentation included a list of built-in data sets. This question has been asked before (2012, 201...

4日 前 | 2 件の回答 | 2

2

回答

回答済み
How to calculate mean of values based on bins created from a corresponding vales?
Generally the edges should cover the span of your data, no more and no less with the exception that the final edge should be sli...

4日 前 | 1

| 採用済み

回答済み
How to represent each grid numerically?
% Inputs xrng = [0,9]; % [left, right] bound of x axis yrng = [0,8]; % [lower, upper] bound of y axis gridInt = ...

4日 前 | 0

回答済み
Sort matrix based on values in the first row from small to large
newM = sortrows(m.').'; That's pretty straightforward ;)

4日 前 | 0

| 採用済み

回答済み
Regular expression for 1*1 cell array
c = {'<string_attribute name="country"><s>CHINA5</s></string_attribute>'}; out = regexp(c, '(?<=name="country"><s>)(.*)(?=</s>...

5日 前 | 1

| 採用済み

回答済み
My Matlab opens several files on startup R2018
My bet is that you have a startup.m file which is run upon matlab startup. Within that file are commands to do some stuff that ...

5日 前 | 0

| 採用済み

回答済み
Pad a table without variable names
Create a table with just 0s and with VariableNames that match your original table. The number or rows in your zeros-table shoul...

5日 前 | 0

| 採用済み

回答済み
reduce density of a time series
" I imagined a code which compares two values (e.g. a_i - a_i+1) and if the result is below a certain threshold the second valu...

5日 前 | 1

回答済み
Grouping Data: How do I group all the rows with the same number on the second column together?
For a single group's mean mu = mean(m(m(:,2)==1,3)); % 1 2 3 4 % 1: the variable name of your matix % 2: colum...

5日 前 | 0

回答済み
A data processing problem
% Determine where BSid values change deltaBSid = diff(I.BSid)~=0; % Create a logical vector identifying the first and last r...

5日 前 | 0

| 採用済み

回答済み
Sorting a data set to report failing values in pairs instead of individually
I think you're looking for.... % Coordinates you're keeping keepCoordinates = A(i2keepHS_HS2, :); % Coordinates you're no...

5日 前 | 0

| 採用済み

回答済み
contextmenu in axes in GUI
Follow the example described in the documentation (link below). This code will go in your OpeningFcn function. https://www.m...

5日 前 | 0

Load more