photo

Benjamin Kraus

Last seen: 2 days ago Active since 2013

Followers: 3   Following: 0

Message

Programming Languages:
C++, Javascript, MATLAB, HTML, CSS, Arduino, Shell
Spoken Languages:
English
Pronouns:
He/him

Statistics

All
MATLAB Answers

0 Questions
347 Answers

File Exchange

7 Files

Cody

0 Problems
7 Solutions

RANK
112
of 299,217

REPUTATION
1,154

CONTRIBUTIONS
0 Questions
347 Answers

ANSWER ACCEPTANCE
0.00%

VOTES RECEIVED
221

RANK
2,884 of 20,663

REPUTATION
572

AVERAGE RATING
4.40

CONTRIBUTIONS
7 Files

DOWNLOADS
30

ALL TIME DOWNLOADS
5653

RANK
45,305
of 163,745

CONTRIBUTIONS
0 Problems
7 Solutions

SCORE
81

NUMBER OF BADGES
1

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • MATLAB Central Treasure Hunt Finisher
  • Thankful Level 4
  • 36 Month Streak
  • 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 prevent colors changing when appending new frames to a video
I'm not an exepert in MPEG-4 video compression, but my understanding is that MPEG-4 is a lossy video compression technology, so ...

5 days ago | 1

Answered
How do you match the width of figures in a tiledlayout when using axis equal?
Now that I've gone through the exercise of doing that using tiledlayout, I think I would suggest using neither tiledlayout nor s...

12 days ago | 1

| accepted

Answered
How do you match the width of figures in a tiledlayout when using axis equal?
You can do this with tiledlayout, but it is not really what tiledlayout was designed to do. Part of the core of the layout algor...

12 days ago | 1

Answered
Change data contained in a binary .mat file
You can't view a MAT-file in the Variable Editor without first loading the contents into MATLAB, so if you are seeing the conten...

16 days ago | 1

Answered
How to plot a map in pole zone?
You can use mapaxes (part of the Mapping Toolbox) to plot at the north pole. Below is an example of how you could do this using...

18 days ago | 1

Answered
How to use figure(1) in MATLAB APP
I'm curious why you are calling figure(1)? I can think of three reasons you may be calling figure(1): You want to put the figu...

19 days ago | 0

Answered
How do install 2024b and not use 2025a?
The specific release(s) of MATLAB you can install/use depend on the specifics of your MATLAB license. You should check with the ...

25 days ago | 0

Answered
App designer : Saveas save all the interface and not just the figure mentionned
The saveas command is designed to save an entire figure to a special file-format (.fig) so that it can be opened again in MATLAB...

25 days ago | 0

Answered
Is Matlab 2021b still in support?
While MathWorks will do it's best to support old releases, there are some limitations due to changes in the underlying operating...

26 days ago | 0

Answered
autocomplete filenames paths function input
I don't think it is possible to do what you are requesting using an arguments block alone without also using functionSignatures....

1 month ago | 0

| accepted

Answered
Revert the 2025 Editor taskbar icon
There is no preference to change this behavior. I will capture this feedback so we can look into changing this back in a future ...

1 month ago | 2

| accepted

Answered
How can one switch between locations of same namespace in one file system?
If you have two folders on the path that both include the same namespace folders, their contents will be merged. If there are fi...

1 month ago | 1

| accepted

Answered
A question about text string concatenation
The issue you are having is that Cruise_ID(Ind3) is a scalar string and not a character row vector. Concatenation works differe...

1 month ago | 1

Answered
plot 2D-function: x and y Range
While @Abhishek's solution is a fine solution, there is no restriction that the x and y input to the surf command are the output...

1 month ago | 0

Answered
Coloured circles on a mesh
What approach did you use to draw the rectangles? The easiest approach to drawing circles in MATLAB is using the rectangle comm...

1 month ago | 0

Answered
Assigning tstart to tic, when tic is a timer start function
As @Stephen23 said, if you have an app, storing the output from tic in a property on your app is a good approach. However, anoth...

1 month ago | 0

| accepted

Answered
catch line using callback
The function that is called by the ButtonDownFcn has the line that you clicked on as an input argument. mycallback = @(o,~) set...

1 month ago | 0

| accepted

Answered
Can't clear workspace from GUI in Matlab 2025a
I'm not sure why Clear Workspace is not available, but have you tried the clear command? Just run this in the command window: ...

1 month ago | 1

Answered
Inheritance, abstract and constant properties.
Based on this statement: What I really want is: #define foo (1) #if MY_SW_VERSION > 1 #define baz(2) #else #define baz(1) ...

1 month ago | 0

| accepted

Answered
Custom contour level labeling not working
Assuming you are using MATLAB R2022b or newer, I would recommend leveraging the LabelFormat property, which lets you specify a c...

1 month ago | 1

| accepted

Answered
Matlab not saving .mlx
Are you saving your Live Editor scripts before you exit from MATLAB Online? Note that you can run an unsaved Live Editor script...

1 month ago | 0

Answered
Version 2025a does not open the editor.
Try the answer posted in this thread and see if it works for you.

1 month ago | 0

| accepted

Answered
Adding Drop Down Control
Write your code like this: fs = 10000; t = 0:1/fs:1.5; wave = "Sawtooth"; f = str2func(lower(wave)); x = f(2*pi*50*t); plo...

1 month ago | 1

Answered
Migrate preferences to R2025a
When you start MATLAB, it first looks for a preferences directory that corresponds to your current release (in this case R2025a)...

1 month ago | 1

| accepted

Answered
making the graphic smaller
Riffing off @William Rose's answer: If your goal is a specific aspect ratio in your axes, both on-screen and/or exported, you w...

2 months ago | 1

Answered
Get displayed axes limits for log scale
There is (unfortunately) no way to query the actual limits in the case you described above, but based on your last sentence, I s...

2 months ago | 1

Answered
Transfer history to MATLAB 2025a
When you start MATLAB for the first time it will automatically look for an old MATLAB preferences directory and automatically im...

2 months ago | 2

| accepted

Answered
Saveobj and Loadobj for arrays of objects
It sounds like you may benefit from switching to an object that "fakes" its size. Some examples of objects that do this (that sh...

2 months ago | 2

| accepted

Answered
Cannot position third y-axis on the right
Here is another approach for adding a third y-axis that leverages tiledlayout. tcl = tiledlayout(1,1); ax1 = axes(tcl); yyaxi...

3 months ago | 1

Answered
Is it possible to orient the legend's symbols vertically instead of horizontally?
Does this work for you? This uses only fully documented features. x = linspace(0, 10, 100); y1 = sin(x); y2 = cos(x); plot(x...

3 months ago | 0

Load more