Community Profile

photo

Benjamin Kraus

MathWorks

Last seen: 3 días ago Active since 2013

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

Statistics

All
  • GitHub Submissions Level 1
  • MATLAB Central Treasure Hunt Finisher
  • Revival Level 2
  • Explorer
  • Personal Best Downloads Level 1
  • First Review
  • First Submission
  • 6 Month Streak
  • Knowledgeable Level 3
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
Playing with matrix and putting in number values
There seems to be a few things missing from your description, such as where the number 12 comes from, and how you want to handle...

3 días ago | 1

| accepted

Answered
stock plots, errorbars in a growing variable.
I'm not sure I completely follow your question, but I think you are asking about using handles to graphics objects. For example,...

3 días ago | 1

| accepted

Answered
Reorganize table and make groups of rows to columns
The command you are looking for is called unstack. For example: newtbl = unstack(origtbl,'Return','Permno')

alrededor de 2 meses ago | 1

Answered
I want to draw a circle on the image in MATLAB. Please help me how to draw it.
You can draw circles in MATLAB using the rectangle command and setting the Curvature to [1 1]. (I know, it is a little strange t...

alrededor de 2 meses ago | 0

Answered
Readtable / writematrix / Excel file - how to control the format of variables in the table ?
The readtable command takes an optional options input which can be used to control how the XLS file is imported. T = readtable(...

alrededor de 2 meses ago | 0

Submitted


Color Trajectory Plot
A multi-color line based on a 2D trajectory with corresponding color data.

3 meses ago | 4 downloads |

Thumbnail

Answered
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
The output from regionprops is a struct array (meaning, there may be more than one region, so the struct array may have multiple...

3 meses ago | 0

Answered
Color-Coded Bar Graph
I suspect the issue you are having is because you are attempting to compare against a character vector incorrectly. What format...

3 meses ago | 0

| accepted

Answered
How do I change my code to stop a for loop simply replacing rows of outputs in a uitable?
The code as it is currently written is creating a brand-new uitable every time the loop runs. You need to update the code to ei...

4 meses ago | 0

Answered
How to plot live data from Arduino UNO to App designer.
At a very high level: Create a new app in App Designer. See the tutorials linked below for how to get started. Add at least a ...

4 meses ago | 1

| accepted

Answered
Getting the value of variable from its name
eval will do this, but see the link posted by Stephen explaining all the reasons you should avoid using eval: https://www.mathwo...

4 meses ago | 1

Answered
error: Out of memory. The likely cause is an infinite recursion within the program.
As this looks like a homework assignment, I'm not going to provide the direct answer to how to do this in MATLAB. However, I can...

4 meses ago | 0

Answered
How to save obtained information from matlab in Excel
See if this doc page helps: Write Data to Excel Spreadsheets

4 meses ago | 0

| accepted

Answered
Assign a table coloumn a particular data type
You cannot mix data types within a double matrix, but you can mix data types within a table. So, you cannot convert two columns...

4 meses ago | 1

| accepted

Answered
Adding titles squashes one of my images in a TiledChartLayout (R2020a)
I opened the figure you created, and I see you have set the GridSize to [2756 3840]. TiledChartLayout is attempting to keep eac...

5 meses ago | 1

| accepted

Answered
Drawing upside down cone using spherical coordinates.
The issue you are facing is that when you call meshgrid you are specifying three input vectors, so the output matrices are going...

5 meses ago | 1

| accepted

Answered
Boxplot for both x and y axis with different box widths.
The boxplot command creates a group of lines, so if you wanted to adjust the box widths you would need to manually adjust the XD...

5 meses ago | 0

| accepted

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

7 meses ago

Answered
How to draw the contour lines in MATLAB.
The answer depends in part on how the data is formatted in Excel, but something like this should get you started (see attached s...

7 meses ago | 0

Answered
use x,y,z coordinates from 3D matrix and store the result in new 3D matrix
You have three options: Split the matrix apart again before operating on it. Operation on "slices" of the matrix using indexin...

7 meses ago | 0

Answered
how do i combine two bar graphs
I could be misunderstanding your question, but I suspect the problem you are facing is that your bar graphs are perfectly overla...

8 meses ago | 0

Answered
Axes tag disappears after imagesc
The difference in behavior is due to the different value of the NextPlot property between axes and uiaxes. Most graphics comman...

8 meses ago | 1

| accepted

Answered
Ending while loop with an input from the user
I'm going to ignore most of the tambolenler function, because I don't think it is needed to answer your question. I think you h...

8 meses ago | 0

| accepted

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, ...

9 meses 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 ...

9 meses 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...

9 meses ago | 0

| accepted

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')...

9 meses 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...

9 meses 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...

9 meses 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...

9 meses ago | 0

| accepted

Load more