Community Profile

photo

Benjamin Kraus

Last seen: 6 dagar ago Active since 2013

Statistics

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

View badges

Content Feed

View by

Answered
Why does copyobj() fail to copy over title fontsizes (and also colorbars and colormaps)?
Matt, The issue with copyobj and the FontSize on axes is a known bug. The issue relates to there being two sources of truth: th...

7 dagar ago | 1

Answered
Getting output from an app into the calling workspace
This question has been asked before, and there are a few different answers threads with ideas for how to do this. Here are two: ...

20 dagar ago | 0

Answered
Interactive plot - how to open plot by clicking a point in another plot?
If I understand your question correctly, you can use the ButtonDownFcn to do this. For more details: Callbacks — Programmed Re...

28 dagar ago | 0

Answered
When zooming in the axes of the app designer, my text will go out of the axes, how to aviod this?
There is a Clipping property on text objects that is off by default. If you set the Clipping property to 'on' you will get the b...

28 dagar ago | 1

| accepted

Answered
Remove top and bottom ticks AND maintain ylabel and xlabel inside the figure
The issue you are having stems from the call to linkprop to keep the two axes positions synchronized, but in this case it is not...

28 dagar ago | 0

| accepted

Answered
histogram2 images not properly saved in vector format
I was able to get a vector export using exportgraphics and forcing it to export in vector mode: histogram2(randn(1000,1), randn...

ungefär en månad ago | 1

| accepted

Answered
Table values extraction and consequent calculation
Would a for loop do what you need? Something like this: h = height(Test_1_cycling); n = ceil(h/39); A_loop = NaN(n,1); for i...

ungefär en månad ago | 0

| accepted

Answered
help plot of function using handle
An alternative approach: Use fplot. b1 = 1; b2 = 2; b3 = 3; b4 = 4; G =@(k) -2*k.^2 + b1 + sqrt( (-4*k.^4 - b2*k.^2 + sqrt(...

ungefär 2 månader ago | 0

Answered
Calling appdesigner within a function leads to unrecognized function or variable
There is no straightforward way to assign outputs from an App Designer app. I found a few other discussions on this topic on MAT...

ungefär 2 månader ago | 0

Answered
How to save the input received using Table in Matlab GUI?
As you are setting the Data property on the uitable using a MATLAB table, saving the resulting data to an Excel spreadsheet shou...

3 månader ago | 0

| accepted

Answered
How to run a routine sequence in app designer app?
You can use a timer to run a callback function at a periodic interval.

3 månader ago | 1

Answered
I am trying to detect if a GUI created from AppDesigner is open
You said: "My take was to set up a wait loop checking that the GUI is still open and when its closed the loop will continue. Is ...

3 månader ago | 0

Answered
How To Get Data From ValueChangedFcn in an Uidatepicker?
When you create a uidatepicker the object is created immediately, and the next line of code continues to run. It does not wait f...

3 månader ago | 0

| accepted

Answered
Data tip when using two y-Axes
You can add anything you want to the data tips by modifying the DataTipTemplate. It is a bit tricky to do with images, because ...

3 månader ago | 0

| accepted

Answered
Plot two x-axis in a graph with Time(calendar month/year) on axis and Hour on another x-axis
I'm having some trouble interpretting your data. I'm not sure I understood completely how the dates align with the times. For e...

4 månader ago | 0

| accepted

Answered
Use timetable as x axis in heatmap
In this case, you may be better off with something like imagesc or surf instead of heatmap. heatmap is designed for cases in whi...

4 månader ago | 0

Answered
Automatic creation of empty file
I've made this mistake many times. Fortunately, the fix is easy. 1. Press the "Preferences" button in the "Environment" section...

4 månader ago | 2

Answered
Making a Surface plot transparent
Your surface plots are each roughly 7500x7500 faces, and most (all) monitors have a resolution that is much lower than that. Thi...

4 månader ago | 0

| accepted

Answered
How to correct the invalid expression error when i have the correct delimiters and multiplication operator?
This is an invalid MATLAB expression: (t>=0)f(t<1) Specifically, this is invalid: (t>=0)f It is unclear what you intend for ...

4 månader ago | 0

Answered
Why am i getting "Undefined function 'eq' for input arguments of type 'cell'." error?
Are you trying to check the currently selected value, or the list of available values? The ItemsData stores the list of availabl...

4 månader ago | 0

| accepted

Answered
How do I make an app that opens another app that displays the current date and time
When you say "app", are you talking about App Designer? Regardless, most apps (either programmatic or created with App Designer...

4 månader ago | 0

Answered
Determine the (pixel) width of a string
The only way I know of to do that in MATLAB is using the Extent property on text objects. The third element is the width, the fo...

5 månader ago | 0

| accepted

Answered
name value pairs with variable input arguments
The problem is: ~ischar(varargin(1:2:nargin)) The varargin input will always be a cell-array, so this condition will never be ...

5 månader ago | 0

Answered
How to create a %of time vs %of area plot
There are a lot of missing details from your question that would need to be filled-in before someone can provide a good answer. ...

5 månader ago | 0

| accepted

Answered
Make a 3D plot over a circle
There are tons of options for doing this in MATLAB. Here are a few: % First define some constants and your input data (as I und...

5 månader ago | 1

| accepted

Answered
Break while loop app designer
Consider this example (you should be able to use this same pattern within App Designer with only a little tweaking): function s...

6 månader ago | 0

Answered
TabGroup: How to execute code before selection changed?
I'm curious, why do you need the code to run before switching tabs? I don't believe this is possible without basically implemen...

6 månader ago | 0

| accepted

Answered
Workflow Matlab with Git
Welcome to the world of version control. Git is an amazing and powerful tool, but it can take some getting used to. I would sug...

6 månader ago | 1

| accepted

Answered
Brushing when plotting a 2D Matrix with linkdata: brushes whole row of matrix instead of single data points.
The reason for the behavior you are seeing is because when you enable data linking (via linkdata) and then select data points, y...

6 månader ago | 0

Answered
i have a loop that generates an image everytime how can I save the figures?
I can't see any obvious bugs in your code. As written, it should save a copy of all figures that you opened in your loop. Are yo...

6 månader ago | 1

Load more