Community Profile

photo

Adam Danz

MathWorks

Last seen: 4日 前 2014 年からアクティブ

MathWorks software engineer. Background: Ph.D. at the University of Rochester (NY) with focus on neurophysiology, visual and vestibular systems, multisensory integration, sensory-motor systems, control systems, steering, and navigation. My contributions to MATLAB Central before 14-Feb-2022 were prior to my employment at MathWorks. "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

Professional Interests:

Statistics

All
  • MATLAB Mini Hack Participant
  • Knowledgeable Level 4
  • Most Accepted 2021
  • Solver
  • Personal Best Downloads Level 4
  • Explorer
  • Revival Level 4
  • 36 Month Streak
  • Master
  • Thankful Level 5
  • Editor's Pick
  • First Review

バッジを表示

Content Feed

回答済み
colored isosurface could not be maintained
Why do the isosurface colors change when adding another surface object? By default, the range of colors in the axes' colormap i...

10日 前 | 0

| 採用済み

回答済み
Toggle grid on off when user selects in a GUI
Great question. The funcion gca gets the current axes which is the axes most recently in focus. Instead, you want to specify w...

10日 前 | 1

回答済み
Find the number of non-empty cells in each row of a cell array
Here's a demo that creates a cell array of tables and empty cells determines which cells contain a table counts the number o...

10日 前 | 0

| 採用済み

回答済み
Making a heat map from three vectors of different lengths
In heatmap, XData define the number of columns and YData define the number of rows. Your matrix y is 21x10 meaning there will b...

13日 前 | 0

| 採用済み

回答済み
Heatmap doesnt show empty rows or columns
By empty I assume you mean that there are NaN values present and I see that you are setting a missing data value color and label...

13日 前 | 0

回答済み
Plotting Row and Columns
There are important items to address here. 1. Creating new figures if mod(n,10) == 0 %checks whether Remainder after divisio...

13日 前 | 1

| 採用済み

回答済み
How can I show the legend to all bars?
Your bar() command specifies "stacked" but since your data only defines one level per bar, "stacked" should be removed. This d...

14日 前 | 0

回答済み
AppDesigner / GUIDE: generate unknown number of new GUI elements as a function
Your quesiton specifies AppDesigner and GUIDE but don't use GUIDE since it will be removed in a future release. Yes, you can pr...

18日 前 | 1

| 採用済み

回答済み
Sorting of column 'folder' present in 'struct'
Sounds like you want natural order sorting. There are some File Exchange submissions that do this (example). But if the forma...

18日 前 | 0

| 採用済み

回答済み
how to take pictures from webcam connected from phone on matlab
Use exportgraphics to capture the image within your axes.

18日 前 | 0

回答済み
Save a Table as a .csv in a Specified Folder
The accepted answer in the question you followed uses fullfile to construct the file path. That's much safer than constructing t...

19日 前 | 0

| 採用済み

回答済み
Would you use Matlab Central in a job search?
I did.

19日 前 | 1

回答済み
Organizing 2D matrices of unequal column length into single 3D array
Use padarray to pad your matricies to a standard size. Then you can concatenate them using cat.

約1ヶ月 前 | 1

| 採用済み

回答済み
App Designer data to mat file
If you are saving the data from with an app callback function, then you just need to use save to save the data to a mat file. ...

約1ヶ月 前 | 0

| 採用済み

回答済み
Save figures created on Matlab within a folder
creation_new_folder = mkdir(newfolder); --- "newfolder" is the path to your new folder. "creation_new_folder" is the status of...

約1ヶ月 前 | 0

回答済み
How to use colormap/colorbar for plots
It sounds like you're looking for scatter(x,y,sz,c) x = [0.5:2:18] ; y = [30:10:100]; [a,b] = meshgrid(x,y); c = a(:)+b(:)...

約1ヶ月 前 | 0

回答済み
How to plot a polar plot with theta limited to 180 degrees on both ways
Set the ThetaLim and ThetaZeroLocation properties of polaraxes. See polaraxes properties for more info. If the negative the...

約1ヶ月 前 | 0

回答済み
Shift lables for x and y axis on a graph
Your best bet is to specify the x and y values in pcolor so you don't have to alter the ticks in the first place. pcolor(X,Y,...

約1ヶ月 前 | 0

回答済み
Passing objects from app designer to the workspace
The best way to access the object created by an app is to store the handle to the object as a public property of the app and to ...

約1ヶ月 前 | 0

回答済み
convert strings of characters to bitstring
Looking for dec2bin? charvec = 'Example: converting char vector to binary.'; bin = dec2bin(charvec)

約1ヶ月 前 | 0

| 採用済み

Highlighted


New in MATLAB R2022b: GridSizeChangedFcn in TiledChartLayout
New in R2022b: GridSizeChangedFcn tiledlayout() creates a TiledChartLayout object that defines a gridded layout of axes wit...

約1ヶ月 前 | 7

回答済み
Convert datetime to string
Use string after formatting your datetime. dt = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss') dtstr = string...

約2ヶ月 前 | 1

| 採用済み

回答済み
How to select rows from an array?
See this page of the doc to learn about array indexing. https://www.mathworks.com/help/matlab/math/array-indexing.html Hint: ...

約2ヶ月 前 | 0

回答済み
What velue to use for "smooth3(A, 'gaussian', v)?
Good question @John. The syntax smooth3(A,'gaussian',V) passes the data A through a gaussian lowpass filter with a default st...

約2ヶ月 前 | 0

| 採用済み

回答済み
how to identify the mistakes in loop in the given following code?
for i=1:length(q) n=sqrt((D.*zr.*m+s+c.*g0+(A.*((q(i).*h2)/2))))/(q(i).*(((hr+cL.*k).*((D.*q(i))/(m.*p)))+((h1.*q(i)).*((1/...

約2ヶ月 前 | 0

回答済み
Save uitable in Pdf
To save an image of the uitable to a pdf file, use exportgraphics. The second argument, filename, will be a path to your pdf do...

約2ヶ月 前 | 1

| 採用済み

回答済み
Histogram or heatmap with self-defined values.
You have (x,y) coordinates and my interpretation is that you'd like to use color or another property to represent a third value ...

約2ヶ月 前 | 1

| 採用済み

回答済み
Drawpolygon not working with geoaxes
This is supported in the latest release, MATLAB R2022b. The example below produced the results you described when run in R2022...

約2ヶ月 前 | 0

| 採用済み

回答済み
topoplot function is undefined
topoplot is not a function provided by MATLAB (r2022b). A google search for "matlab topoplot" shows several 3rd party functions...

約2ヶ月 前 | 0

回答済み
Plot vector in the points of a solid and "animation" (variation) in the time of them
To add rows of data to a datatip, see this demo that uses the DataTipTemplate https://www.mathworks.com/matlabcentral/answers/5...

約2ヶ月 前 | 0

さらに読み込む