Community Profile

photo

Adam Danz


Last seen: Today

University of Rochester

2,375 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 4
  • 24 Month Streak
  • Personal Best Downloads Level 4
  • Explorer
  • Ace
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Revival Level 3
  • Knowledgeable Level 4
  • Solver
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
"Array indices must be positive integers or logical values."
If this is the complete script, the error is caused in this line where i is not defined and therefore takes the default value of...

約7時間 前 | 0

| 採用済み

回答済み
how can I plot 800 samples in a percentage cicle from 0 to 100% on x axis?
If you wanted to normalize the X (Sp) values so that they span from 0 to 100, SpNorm = (Sp-min(Sp))./range(Sp)*100; plot(SpN...

約8時間 前 | 0

回答済み
Is there a way to return the status of writetable, writematrix, or writecell?
"Is there a way to return the status of writetable, writematrix, or writecell?" No. But there are workarounds depending on how...

約14時間 前 | 0

| 採用済み

回答済み
how can i declare a variable in a function for the first time only ,
I think this is what you're looking for, function h=src(input) persistent output %%%%%%%% if isempty(output) ...

約14時間 前 | 1

| 採用済み

回答済み
decreasing three loops to two loops with sum
----------- Updated answer ------------------------------ Vectorize the k-loop and use sum() to define theta2. thetao=1; alfa...

約14時間 前 | 0

| 採用済み

回答済み
error: Index in position 2 exceeds array bounds (must not exceed 2).
The error is happening here squeeze(V0_1(ik2, iter+1)') % or, V0_1( 1 , 15 ) V0_1 is 101 x 2. iter is equal to 14 on th...

約15時間 前 | 0

回答済み
How do I change the font size of the axes in a stacked plot?
Use the StackedLineChart handle. h = stackedplot(T); h.FontSize = 12; % or set(h, 'FontSize', 12) If you don't have t...

約16時間 前 | 0

回答済み
How could I read Index number of a third column matrix using elements of first two matrices and write them as a row matrix?
Use logical indexing which is similar to what you're already doing but without the find(). That way all of the index vectors wil...

約16時間 前 | 0

回答済み
Index months in timetable
Logical index of rows that are in July,Aug,Sept. idx = ismember(month(TT2_staLCA_WS.Time),[7,8,9]);

約17時間 前 | 0

| 採用済み

回答済み
Legend Positioning in Tiled Chart Layout
" MATLAB 2019b ... has locked the 'Position' property of the legend when usend in a tiled chart." Yes, that's correct. Starti...

約17時間 前 | 0

回答済み
How can I create a function that converts the number of a month to the name of a month?
No need to create a function for that. Monthnumber = 4; M = month(datetime(1, Monthnumber, 1), 'Name') % also try 'shortname...

1日 前 | 0

回答済み
Creating Table from Cell Array Data
The first version in your question doesn't work because "names" contain 3 VariableNames that are all "Bin1" so when you assign t...

1日 前 | 1

| 採用済み

回答済み
How can I pass a variable between a m-file and another m-file that runs a gui?
M files can contain scripts or functions but variables can only be passed to functions so the m-file must be written as a functi...

1日 前 | 0

回答済み
How do i create a colour quiver plot (colquiver) on top of a pcolor depth map?
"How can I ... use 2 colourmaps and have 2 colourbars?" An axis can have more than 1 colorbar but it cannot have more than 1 co...

1日 前 | 0

| 採用済み

回答済み
Velocity vector plot with empty cell array
We can't run your code due to missing variables but here are two general suggestions. Before before we get to that, always p...

1日 前 | 0

回答済み
Inner matrix dimensions must agree error message,
You can either perform element-wise multiplication with implicit expansion x(:,i) - inv(H(x(:, i)) .* J(x(:,i))) % ...

1日 前 | 1

| 採用済み

回答済み
Undefined function 'subtitle' for input arguments of type 'char'.
Fast forwarding 3.5 years to the r2020b release, now there is a function named subtitle that sets a subtitle under the main titl...

2日 前 | 0

回答済み
graph subtitle?
Starting in r2020b, you can add a title and subtitle using [t,s]=title('myTitle','mySubtitle') or t = title('myTitle'); s...

2日 前 | 0

回答済み
How can I change the code to get this plot?
Key points. Use scatter() instead of plot() so you can control individual marker size. Scale the radii values ('r') to a rang...

2日 前 | 0

| 採用済み

回答済み
Passing an UIAxes handle to PlotFcn
tl;dr use the OutputFcn method below. Using a custom optimplotfval "I would like to make the 'optimplotfval' function to plot...

2日 前 | 0

| 採用済み

回答済み
how to give title and axes in histfit?
You have a variable in your workspace named xlabel. Rename that variable. Example of this error: xlabel = 'apples'; xlab...

3日 前 | 0

| 採用済み

回答済み
Convert variable to numeric in TimeTable
Convert your columns containing cellstrings to numeric vectors. Example: TT1_sta.Var2 = str2double(TT1_sta.Var2); repeat fo...

3日 前 | 1

| 採用済み

回答済み
plot 4 plots on 3 axes
If the x-values, F{1}, F{2}, V{1}, and Z{1}, are all on different scales that cannot be scaled to a single scaled, the plot is g...

3日 前 | 0

回答済み
Automatically naming mat files with variable names
Use fullfile to define the full path and file name. destination = 'H:\My_Directory\Mat_Files'; filename = fullfile(destinatio...

3日 前 | 0

回答済み
Set aspect ratio in tilelayout
You either need to apply the settings after plotting the data or you need to execute "hold on" after applying the settings, befo...

3日 前 | 1

| 採用済み

回答済み
How to Display in multiple axes text and images using UIPanel instead of figure ?
fh should be your app's figure handle. fh = app.UIFigure; % or whatever your fig handle is. or perhaps you want to assign th...

3日 前 | 0

| 採用済み

回答済み
progress bar does not change color (Load)
To summarize the discussion in the comment section under the question, to use the pseudo-colorbar shown in this community highli...

4日 前 | 0

| 採用済み

回答済み
How to make a specific element of an image transparent
See the AlphaData & AlphaDataMapping properties of an image. https://www.mathworks.com/help/matlab/ref/matlab.graphics.primiti...

4日 前 | 0

| 採用済み

回答済み
How can I create different colors in the plotted chart for a lot of data
Inspired by Turlough Hughes's slider used to chose a line object, here's a way to add info to each line's data tip so you can ho...

4日 前 | 1

回答済み
Plot vertical lines from a point to x-axis
Use a stem plot.

4日 前 | 2

| 採用済み

Load more