Community Profile

photo

Benjamin Kraus

Last seen: 3 jours il y a Actif depuis 2013

Statistics

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

Afficher les badges

Content Feed

Afficher par

A répondu
How to create a callback function to start and stop recording EMG Button in real time for Delsys Trigno.
I didn't dig into your code specifically, but here is code for a simple app with a timer and a start/stop button that shows how ...

4 jours il y a | 0

A répondu
Adding transparency to one contour plot based on another contour plot
Good news! Starting in MATLAB R2022b, creating transparent contour plots is supported out-of-the-box in MATLAB. You can adjust ...

15 jours il y a | 2

A répondu
How to plot data from cells?
When you say "plot the data", can you provide a little more information about kind of picture you are trying to create? What dat...

15 jours il y a | 0

| A accepté

A répondu
class1 as property of class2, class1 property initialization?
In your definition of mainClass you created a property with the name class1, not the type class1. This is what you want: class...

25 jours il y a | 0

| A accepté

A répondu
How does one disable the menu that appears when one hovers on a plot?
You can set the Toolbar property on the axes when you create it. ax = axes; ax.Toolbar = []; If you want that to be the defau...

25 jours il y a | 0

A répondu
bubblelegend doesn't work (2021b)
bubblelegend was released in R2020b, so it should work in R2021b. My guess is you have something wrong with your MATLAB path. Tr...

25 jours il y a | 0

| A accepté

A répondu
Running files in folders in loop.
You can use the dir command to get a list of the files/folders. d = dir('**'); Once you have the list, you can loop through th...

environ un mois il y a | 0

A répondu
Area integration with the point where the mouse selected
You can use ginput to click and select points from a figure window. Once you've got the points, "integrating the area under the...

environ un mois il y a | 0

A répondu
Setting the name of the Matlab Command Window
No, there is no way to modify the title of the MATLAB command window.

environ un mois il y a | 1

| A accepté

A répondu
Pushbutton callback not working
This looks like the same question/issue you were having in this other post. I've responded there.

environ 2 mois il y a | 0

| A accepté

A répondu
pushbutton callback doesn't work
I think at a high level the issue you are having is that you are missing a signal to your script that the user has pressed the O...

environ 2 mois il y a | 1

| A accepté

A répondu
How to plot spatial data
As the error says, lat and lon need to be the same size. Based on the shape of your variables, I suspect you need to use meshgr...

2 mois il y a | 1

A répondu
Function, dot, help me for solution
This line has the error: sm=@(W) v*N*L*R/(4*W.*(L/C)^2); Specifically: W is an anonymous function, so you can't do 4*W. That i...

4 mois il y a | 1

| A accepté

A répondu
How can I the show the solution/results in table form?
There is still some polish you probably need to make, but here is one approach to displaying your results in a table: a = 0; b...

4 mois il y a | 0

A répondu
Is it possible to use gscatter within app designer?
What release of MATLAB are you using? Starting in R2019b, gscatter should work just find within App Designer, but you need to m...

4 mois il y a | 0

A répondu
How to import multiple variable starting the same from excel?
It is hard to offer detailed advice without more information about the structure of the Excel file, and what you mean "this solu...

4 mois il y a | 0

A répondu
AppDesigner: Getting a UIAxes' enableDefaultInteractivity to work with a UIFigure's WindowButtonDownFcn?
There seems to be a subtle bug going on with your app. I can narrow down the issue to this code: % Code in your startupFcn f =...

5 mois il y a | 1

| A accepté

A répondu
How can I plot this function such as all values of |f(1/z)| be more clear and how can I plot the cosine of the phase of this function ?
It looks like the nearly infinite value in your data is drowning out the remaining data. You can fix this by changing the z-limi...

5 mois il y a | 0

| A accepté

A répondu
Error message I don't understand
I think that error message means that the first input to xline was an empty vector. Have you modified the example at all in a wa...

5 mois il y a | 0

A répondu
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...

5 mois il y a | 2

| A accepté

A répondu
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: ...

6 mois il y a | 0

A répondu
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...

6 mois il y a | 0

A répondu
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...

6 mois il y a | 1

| A accepté

A répondu
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...

6 mois il y a | 0

| A accepté

A répondu
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...

6 mois il y a | 1

| A accepté

A répondu
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...

6 mois il y a | 0

| A accepté

A répondu
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(...

7 mois il y a | 0

A répondu
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...

7 mois il y a | 0

A répondu
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...

8 mois il y a | 0

| A accepté

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

8 mois il y a | 1

Charger plus