photo

Benjamin Kraus

Last seen: 6 days ago Active since 2013

Followers: 1   Following: 0

Message

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Thankful Level 3
  • Solver
  • 5-Star Galaxy Level 3
  • Personal Best Downloads Level 3
  • Knowledgeable Level 5
  • Pro
  • GitHub Submissions Level 3
  • Revival Level 2
  • Explorer
  • First Review

View badges

Feeds

View by

Answered
How to Plot Numbers on top of Bar graphs?
Starting in MATLAB R2024b, Bar labels are now a built-in feature Starting in MATLAB R2024b, Bar objects now have a Labels prope...

21 days ago | 3

Answered
Data labels above bars on grouped bar plot
With the release of MATLAB R2024b, this has gotten much easier. Starting in MATLAB R2024b, Bar objects now have a Labels proper...

21 days ago | 3

Answered
Show numbers with Grouped Bars
With the release of MATLAB R2024b, this has gotten much easier! Starting in MATLAB R2024b, Bar objects now have a Labels proper...

21 days ago | 2

Answered
While loop executes one additional loop when using appdesigner button to stop loop
Callbacks (like StartCountTslotButtonPushed and CompTslotButtonPushed) will only run if you tell MATLAB to process pending callb...

2 months ago | 0

Answered
Display the exact selected area by zooming in on a surface/image
I downloaded your FIG-file, and it looks like the axes inside has a manually specified DataAspectRatio and PlotBoxAspectRatio. W...

3 months ago | 0

Answered
plot 2-dimention sphere in 3-D space
I wonder if what you are looking for is the alphaShape command. Check out the documentation and see if it satisfies your require...

3 months ago | 0

Answered
How to change in marker size in the global legend?
The only documented way to modify the legend items independently from the contents of the axes is to create "dummy" objects with...

3 months ago | 2

Answered
How to zoom a figure and show the details?
One way to do this is using tiledlayout. im = imread('peppers.png'); t = tiledlayout(20,20); % Create one big axes that fil...

4 months ago | 0

Answered
Prevent Matlab from updating the legend when saving a figure
By using the EntryContainer and NodeChildren properties, you are accessing the undocumented internal implementation details of t...

4 months ago | 1

Answered
Why do I receive numerous nonexistent warnings after upgrade installation?
To build on what @Walter Roberson said: Most likely you have a duplicate copy of pathdef.m that is shadowing the correct versio...

4 months ago | 0

Answered
Read a userid file and search for userid.json in directory and then search json file
I suspect you want to use the dir command to get a list of files in the directory, remove ".json" from the end of the file names...

4 months ago | 0

| accepted

Answered
A (simple) way to use ismember between datetime arrays with different formats
I think the function you are looking for is dateshift. A = datetime(... ['19-Jun-2023', '20-Jun-2023', '21-Jun-2023...

5 months ago | 1

| accepted

Answered
How to draw an uncertain number of sub-images in one coordinate in app designer?
I'm not sure what you mean by "one coordinate", but the way I would create the diagram above in App Designer would be: When des...

6 months ago | 0

Answered
Getting screen resolution on Windows 11
Note that this is undocumented and not guaranteed to work indefinitely, but there is a property on all figures called ScreenPixe...

6 months ago | 0

Answered
How can I make x and y axis dates with contour?
In addition to @the cyclist's solution, there is another approach that leverages the newer datetime rulers, but is still a bit o...

6 months ago | 1

Answered
pie chart creation with name (number) and corresponding percentage
It is worth checking out the new (as of R2023b) piechart command. You can read about it here: https://blogs.mathworks.com/graph...

7 months ago | 1

Answered
How to change distance between groups of bars in a bar plot?
Starting in R2024a, you can now customize the width of each group of bars using the new GroupWidth property. For example: next...

7 months ago | 0

| accepted

Answered
Change distance between grouped bars (bars are overlapping)
Starting in R2024a, you can now customize the width of each group of bars using the new GroupWidth property. For example: y = ...

7 months ago | 0

| accepted

Answered
Is it possible to set the size of the gap between grouped bars in a bar graph?
Starting in R2024a, you can now customize the width of each group of bars using the new GroupWidth property. For example: coh ...

7 months ago | 1

Answered
can MATLAB render 10-bit images in a 10-bit TV?
As of R2024a, this MATLAB Answers post is still accurate: Does MATLAB support 10-bit or 12-bit monitors? When you create an Ima...

7 months ago | 0

| accepted

Answered
imagesc Vs pcolor Vs contourf for large arrays?
My recommendation would be to use imresize to reduce the number of rows/columns in your array before you plot it. Whether you u...

8 months ago | 0

Answered
Animation of PATCH-Figure
There are two issues with your code: You are calling patch repeatedly, which is adding a new patch in each loop, without removi...

9 months ago | 0

| accepted

Answered
unable to adjust real time views of surf plots in plot-drawnow animations
@Vinayak has the right idea, although pause should be unnecessary and drawnow is definitely the preferred approach. drawnow wil...

9 months ago | 1

Answered
Passing real time plot data from a Matlab function to App Designer for plotting
There seems to be at least three difficulties you are running into: One is about calling the axis command without specifying an...

10 months ago | 1

| accepted

Answered
Parrallel Coordinate Plot set tick label intepreter to LaTeX
As the warning states, by calling struct on the object, you are accessing the internal implementation details of the chart, and ...

10 months ago | 1

| accepted

Answered
exportgraphics with ContentType vector does not work properly
Based on your description of the issue, my guess is that: Your figure is fairly complicated. Which means that exporting into a...

10 months ago | 1

| accepted

Answered
How to draw a radar search volume in 3D?
You are on the right track. To start with, you can use fsurf without needing to use symbolic expressions, you just need to swit...

10 months ago | 1

| accepted

Answered
How to find more than one string using find - strcmp?
There are several options to accomplish this goal. I'm assuming that the output from {EEG.event.code} is a cell-array of charac...

10 months ago | 1

| accepted

Answered
MATLAB 2023b Can not open apps made in MATLAB 2023b, and startup error
I would check for errors in your startup.m or pathdef.m. Specifically, what is the output from: which -all pathdef Compare th...

10 months ago | 0

| accepted

Answered
Plot both global and local legend
Your hidden axes (and global legend) needs to have the tiledlayout as a parent. X = rand(5); Y = rand(5); figure tcl = tile...

10 months ago | 1

| accepted

Load more