Community Profile

photo

Benjamin Kraus


Last seen: 3 days ago

MathWorks

148 total contributions since 2013

Benjamin Kraus is a developer on the MATLAB Graphics and Charting team at MathWorks.

Contact

Benjamin Kraus's Badges

  • Revival Level 2
  • Explorer
  • Personal Best Downloads Level 1
  • First Review
  • First Submission
  • 6 Month Streak
  • Knowledgeable Level 3
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Drawrectangle on multiple tiles or figures using clickcallback
When you call drawrectangle, you need to indicate which axes/tile you want to draw into. If you call drawrectangle three times, ...

4 days ago | 0

| accepted

Answered
How to solve "Reference to non-existent field 'net'" on app designer?
You did not indicate what line of code the error message is coming from, but I'm guessing the error is coming from one of these ...

11 days ago | 0

Answered
How to correct cluttered axes in my plot in Matlab GUI?
It looks like you've set the XTickMode (and possibly also XTickLabelMode) to manual. This means that when you add new data to t...

11 days ago | 0

Answered
Radio button and format of plot axis in app designer and its corresponding plot
I think the problem you are having is that you are not passing your axes handle into the cla function. cla(app.UIAxes, 'reset')...

11 days ago | 0

| accepted

Answered
Undefined function 'graphicsversion' for input arguments of type 'matlab.ui.Figure'.
Actually, I looked a little closer at the error message you are getting, and it looks like you have an old copy of uigetmodemana...

20 days ago | 0

Answered
Undefined function 'graphicsversion' for input arguments of type 'matlab.ui.Figure'.
The graphicsversion function was undocumented and was removed in MATLAB R2018a. You should remove any use of the graphicsversio...

20 days ago | 1

Answered
How can i use linkaxes with multiple imshow in appdesigner?
linkaxes only started working with UIAxes in MATLAB R2020b. If you are using an older release and you cannot upgrade, I recomme...

20 days ago | 0

| accepted

Answered
How to remove the y axis and tick marks but keep the tick label and axis label?
You can remove the tick marks by setting the TickLength property on the axes to [0 0], but that will remove ticks from both the ...

1 month ago | 0

Answered
Creating a table of two indexes
You need to merge F and C into a single matrix and transpose that matrix: fprintf('%8.1f\t%8.1f\n',[F' C']')

1 month ago | 0

| accepted

Answered
How to use ga() without generating a prepopulated figure with stop and pause button with matlab app
This looks like a limitation of the ga code that creates the buttons, as I can't see any way to control where those buttons are ...

1 month ago | 0

Answered
Thresholding for different values and save all figures automatically
You need to add a for loop, and update the filename based on the level, so you don't overwrite the same file. In the example bel...

1 month ago | 0

| accepted

Answered
How to remove colorbar and heatmap black borders?
If you want to remove the colorbar, you can set the ColorbarVisible property to 'off': h = heatmap(magic(5)); h.ColorbarVisibl...

1 month ago | 0

| accepted

Answered
Error using area plot in App Designer
I think you've created a variable with the name area somewhere in your code. Can you add this code, immediate above the line of...

1 month ago | 0

| accepted

Answered
control inner positions of ui axes in app designer
Mischa Kim is correct that starting in R2020b you can set the InnerPosition property (or PositionConstraint property) on UIAxes ...

1 month ago | 0

Answered
App designer (Matlab 2020b) does not open *.mlapp file
I've attached a fixed version of your app (app2fixed.mlapp). The problem with the app was that one of the UIAxes stored in the ...

2 months ago | 2

| accepted

Answered
Why do my 3D plot axis tick marks keep repeating?
What you are running into are two quirks of how axes behaves. First, when applying the tick labels, MATLAB starts at the first ...

2 months ago | 1

Answered
Slow When Plotting on UIAxes
The figures created by App Designer are based around web technologies (like HTML and CSS) while the separate figures are based a...

2 months ago | 0

Answered
How to overlay two scatter plots over each other. Each with separate colour scales.
An axes can have only one Colormap, so you have three options: Hard-code RGB color values for one (or both) of your scatter obj...

2 months ago | 0

| accepted

Answered
Embed Video Application Within MATLAB Application
When you say "a separate window" do you mean: a separate figure window (from MATLAB) another MATLAB window of some sort (not a...

2 months ago | 0

Answered
Interplay between .Visible='off' and axis(app.UIAxes, 'off') in App Designer
This is a long-standing behavior of axes that was inherited by UIAxes. On most graphics objects, Visible does what you think it...

2 months ago | 0

Answered
Make UIAxes Background invisible or hide it in APP Designer
This behavior of uiaxes has changed in MATLAB R2020b. If you check the release notes for R2020b: BackgroundColor property of U...

2 months ago | 0

Answered
Background Color of UIAxes
This behavior of uiaxes has changed in MATLAB R2020b. If you check the release notes for R2020b: BackgroundColor property of U...

2 months ago | 0

| accepted

Answered
When opening R2020b .mlapp file in R2018b, automatic conversion removes all UI elements and associated auto-generated code
This is a known bug in App Designer apps that are saved in MATLAB R2020b and loaded in R2019b or older. The bug will cause any ...

2 months ago | 0

| accepted

Answered
Polar plot in App Designer (Edit: Not possible April 2020)
At the moment the only way to use a polar axes within App Designer is to call the polaraxes command from within your code (such ...

9 months ago | 0

| accepted

Answered
Plotting with datetime in App Designer
I suspect the issue you are running into is the default reset behavior of UIAxes. By default, the plot command calls newplot. T...

9 months ago | 1

Answered
How to use colormap() for a vector of images X in order to display indexed images from vector X?
The issue you are encountering is that |displayData| is normalizing the image data so that the maximum value of each image is eq...

2 years ago | 0

Answered
How do I plot time (hh:mm:ss.000) vs samples as imported from a .csv file?
If you upgrade to R2018a, this process is a little more straightforward, but this code will work in R2016a. Step 1: Import yo...

2 years ago | 1

Answered
Difference in the behavior of transparency in R2015a and R2016a
The effect you see is because the patches overlap one another. The red patch overlaps both the green and the blue patch, so you ...

2 years ago | 0

Answered
Output of a mex file is not the same as the recursively-written computational routine
The problem is in these lines: //Getting a pointer to the real data in the output matrix outPUT = mxGetDoubles(plhs[0]);...

2 years ago | 0

| accepted

Answered
How to read all text files in a folder with unknown number of files?
You can use the |<https://www.mathworks.com/help/matlab/ref/dir.html dir>| command to generate a list of files that match a spec...

2 years ago | 1

| accepted

Load more