Community Profile

photo

Adam Danz


Last seen: 1 day ago

University of Rochester

2,184 total contributions since 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

Contact

Adam Danz's Badges

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

View details...

Contributions in
View by

Answered
Time axis as x axis
Assuming you've got a vector of time stamps the same size as the signal vector, convert the time stamps to datetime values and t...

21 hours ago | 0

Answered
How long i can try out the matlab online course?
https://www.mathworks.com/learn/tutorials/matlab-onramp.html Unless you're paying for a course, the self-paced courses are avai...

24 hours ago | 0

Answered
How to random a chart?
Use random permutations. Apply this example to your data. words = ["A" "B" "C" "D" "E" "F" "G" "H"]; randIndex = randperm(nu...

1 day ago | 0

Answered
How to plot a graph using if function
I don't see any plotting commands so I don't know what kind of plot you're trying to create. The problem can likely be solved ...

1 day ago | 0

Answered
app designer tab control question
app.UIAxes.Toolbar.Visible = 'off'; %|__________| replace with your axis handle. More info on the axis toolbar: https://w...

1 day ago | 1

| accepted

Answered
Load variables from worspace to app designer
That's bad design. What if the variable isn't in the base workspace? What if the variable name in the base workspace changes...

2 days ago | 0

| accepted

Answered
How Matlab calculate randsample using randsample function
That syntax merely takes a random permutation of your data. So the question becomes, how does the randperm function work? You...

2 days ago | 1

| accepted

Answered
Summing multiple variables and plotting them.
A = sum([psi1,psi3,psi5,psi7]); % Result: 1x1 % or A = sum([psi1;psi3;psi5;psi7]); % Results: 1x2 (length of x) The squar...

2 days ago | 0

| accepted

Answered
how to plot a gaussian 1D in matlab
Fully parameterized gaussian function (no toolboxes needed) If you don't have the Fuzzy Logic toolbox (and therefore do not hav...

2 days ago | 0

Answered
creating multiwindow apps in app designer 2020a
The starup function in app 2 will have its own 1st input "app". You shouldn't pass that into the app. Try this. app.DialogA...

2 days ago | 0

| accepted

Answered
How can I show radial ticks and axis on top of a polar plot?
The older answer you pointed to refers to the much older polar() function which uses a cartesian plot to create the polas axes a...

2 days ago | 0

| accepted

Answered
How to save UITable into Excel for AppDesigner MATLAB?
The data are stored in the Data property of a UITable within a mxn cell array. For Matlab r2019a or later, use writecell() to w...

3 days ago | 0

| accepted

Answered
White space at the beginning and ending of xaxis
axis(ax, 'tight') % where ax is your axis handle. will set the axis limits so the edges of the plot touch the max and min of ...

3 days ago | 1

| accepted

Answered
given that you have this line of code how do you count the number of points in each quadrant ?
@Afua Amoako Dadey You just need to modify either of the two answers received for similar questions in the past (listed under ...

4 days ago | 0

Answered
How to plot scattered data YZ with diffrent color for each slice X of 3 dim matrix XYZ
I think you're describing this. Cfull = repmat(repelem(C,size(F1,1),1),size(F1,3),1); scatter(F1(:),F2(:),40,CFull,'filled'...

4 days ago | 0

Answered
Yet another create, numbered, figures with visible off
You can use a 2-liner. f = figure(1); f.Visible = 'off'; Or, you could put it into a function so that you can use a 1-line...

5 days ago | 0

Answered
Counting using Statistics tools
Presumably you already have the (x,y) coordinates if you've plotted the data. You just need to use indexing (the main superpow...

5 days ago | 0

| accepted

Answered
How can I add colors to a k-means gscatter plot based on a certain cluster?
The second gscatter syntax in your question looks correct, gscatter(score(:,1),score(:,2),grp,[0.4940 0.1840 0.5560;1 0 0;0 0....

8 days ago | 0

Answered
how to remove a row that contains inf from a table
inf values are definitly not missing-value indicators. They are no different than the value 7 or pi. The solution in the 2nd...

8 days ago | 0

| accepted

Answered
Error using num2cell Too many input arguments.
I'm guessing that the edit field all contain either scalar numeric values or row vectors of numeric values. If that's the case,...

8 days ago | 0

Answered
Conversion to double from cell is not possible.
There might be an option in readtable() or within the opts input that can specify what decimal character to use when reading in ...

8 days ago | 0

| accepted

Answered
AppDesigner: Replace in all .ValueDisplayFormat € with $
Here's a cleaner approach. Step 1: Add a function to control the ValueDisplayFormat Add the following function to your app [...

8 days ago | 0

Answered
Adding a Legend to Scatter Shapes on a Map
Step 1: Define the legend strings using DisplayName Example h1 = scatter(___, 'd', 'DisplayName', 'Diamond meaning'); h2 = sc...

8 days ago | 0

| accepted

Answered
Passing Data between Apps
The documentation you mentioned, Creating Multiwindow Apps in App Designer, shows how to pass data both ways. If there's a sect...

9 days ago | 0

| accepted

Answered
add row to table in app designer - works ... but not completely
If the uitable already has 18 columns, Follow the example shown here. app.UITable.Data = {0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

9 days ago | 0

| accepted

Answered
Displaying properties defined in MATLAB application
I just opened app designer and tried to set the value of a spinner to 1.3139 + 0.0069i. I received the same error as you. 'Va...

9 days ago | 0

Answered
Create grid of sums from scattered data
Use histcounts2 to determine which bins each photon is hitting. Then you can add the weights for photons within the same bin. ...

9 days ago | 2

| accepted

Answered
How to put string to a column of a table
"... but it appears NaN in the cells of the Role column." Sounds like the Role column is an empty cell array or a numeric c...

9 days ago | 0

Answered
What is the difference between matlab mobile and matlab r2020a?
Here is an overview of Matlab Mobile. Scroll to the bottom to System Requirements > Limitations to see a list of features not s...

9 days ago | 0

Answered
change text colour in foreground of line plot
The color of pixels in a text object cannot be independently changed. Here are some things you can try to improve the label r...

9 days ago | 0

Load more