Community Profile

photo

Mario Malic


Last seen: Today
326 total contributions since 2019

Mechanical Engineer
Professional interests: CAx, Finite Element Analysis, Optimization Methods

Contact

Mario Malic's Badges

  • Knowledgeable Level 4
  • 6 Month Streak
  • First Submission
  • GitHub Submissions Level 1
  • First Review
  • Revival Level 2
  • MATLAB Central Treasure Hunt Finisher
  • Thankful Level 2
  • Promoter
  • Introduction to MATLAB Master
  • Commenter
  • Community Group Solver
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Array inside an array
Hi, You can do this with cell arrays a =cell(3,1); b = rand(3,1) b = 0.8147 0.9058 0.1270 a{1} = b a = ...

20 hours ago | 0

Answered
Sorting array and accessing its data
MATLAB Onramp will get you covered on basics of MATLAB. To get the value you asked for, use this X(8) The vector B holds the...

1 day ago | 1

Answered
Calling a Script within another script?
Enclose your script name in quotation marks. Edit: with the file extension. run("ohm.m")

2 days ago | 0

Answered
How to execute a print command for the MATLAB Web Broser from the command line
Hello, I found two ways of doing so, the first one is not great because it is not documented, and this may not be working in ne...

3 days ago | 0

Answered
Convert some columns in 'double array' to single digit, rest as bank and then put in UITable
Hello, Issue in your code is on this line. You asked for the number with 0 decimals, replace 0 with how many decimals you want ...

4 days ago | 0

Answered
Convert 1x1 cell to 1x1 double
Hi, depending on the contents in the cell array, here are two examples. Mind the indexing into cell, you should use curly bracke...

7 days ago | 1

| accepted

Answered
Is there a way to create exe for GUI created using app designer in MATLAB.
To create an executable app, see Share - Create Desktop App, under Designer Tab. To run the .exe, user must have installed MATLA...

7 days ago | 0

| accepted

Answered
App Designer | error when trying to make one logical cell equal another
Hey Connor, When you assign data to UITable component, it'll remain the same variable type as original variable had. Therefore,...

8 days ago | 0

Answered
how to reset drop down list(go to first option) when pushing any other button in App designer
You have to add callback to every 'any other button' component that'll reset it. app.NameOfComponentDropDown.Value = app.NameO...

9 days ago | 0

Answered
Read text file from function
Hi again, here's a script that processes the input files. There are two parameters missing n, Ne. Implement these and convert t...

9 days ago | 0

| accepted

Answered
Appdesigner uicontrol position and resize
Hi Christophe, If you're using App Designer app, most of the content (if not all) in the uifigure will be resized when the uifi...

11 days ago | 0

| accepted

Answered
How to use if else for terms
Hello, Apart from code which is not friendly to read, here's explanation: if S_1 > 350 % if S_1 is bigger than 350 V_2 ...

11 days ago | 0

Answered
Import Matlab Projects archive
Hi Robin, I don't think that there's such functionality, at least for now. Meanwhile, you can open the project archive by using...

14 days ago | 0

Answered
How to get WindowButtonMotionFcn to track mouse position
Here's the question that'll help you, there are more two relevant answers to it. Link

15 days ago | 0

| accepted

Answered
How to count the number of times that values changes?
Hello, This should do the trick. B = [NaN; cumsum(diff(A) ~= 0)]';

16 days ago | 0

Answered
Display is too small
It looks like your font is too small. You can also change the output location (small three icons on the top right corner). See ...

16 days ago | 0

Answered
How to clear the value from a numeric or text edit field on Matlab App Designer?
Hello, All looks good, except double equal marks, you can create a (helper) function that would do that function ClearFields(a...

17 days ago | 0

Answered
Can I use arrows to move Data Tips on scatter plots?
Hi David, Edit: I have updated the code and it works. It's better if the callback is on KeyPressFcn, especially for plots with ...

18 days ago | 0

| accepted

Answered
How can i understand the meaning of "colors(rgb_label ~= k) = 0;" code meaning?
Hi, Line below returns the logical array for the condition: rgb_label is not equal to k rgb_label ~= k Line below takes that ...

22 days ago | 0

| accepted

Answered
How to find value from vector
This will do it findVal = 0.03; [~, valIndex] = min(abs(table_gammadot - findVal)); eta = table_eta(valIndex)

22 days ago | 0

| accepted

Answered
Update candle plot with additional candle
If you save the handle to the plot, you can access its Data property h = candle(ax, someData) h.Data(end+1) = [1 2 3 4];

24 days ago | 0

| accepted

Answered
How can I get a certain paragraph from a url?
Here's a link from Stuart's blog post that will give you an idea what to do and how to look for information on websites. This on...

24 days ago | 0

Answered
Realtime data from motor controller
Hey Christian, It would be the best if you'd do few introductory examples in App Designer and you'll get an idea how to do you...

25 days ago | 0

| accepted

Answered
Run a function with input arguments using App Designer
Great work, thank you for doing those. You can set your variables into the property of the app and you'll be able to use those ...

25 days ago | 0

| accepted

Answered
Efficient use of 16 cores
Maximum number of workers is equal to maximum number of physical cores in your CPU. In your case it's 16.

28 days ago | 0

Answered
App Designer: enter data via table in the GUI
Hi Rolf, Coming a bit late onto this one, but idea is to fill the Data property with zeros or some other numbers, and make sure...

29 days ago | 0

Answered
PolarAxes in Matlab App Designer
Example taken from this website theta = 0:0.01:2*pi; rho = sin(2*theta).*cos(2*theta); pax = polaraxes(app.Panel); polarplo...

30 days ago | 0

Answered
How to use app2 to control the buttons of app1 in app designer?
Do you run your apps in the same instance of MATLAB? If yes, set tags, or unique names for your apps in Component Browser, und...

1 month ago | 0

Answered
How to toggle between two conditions on app designer
Hello, Use ButtonGroup for this. If you select one, it will deselect the other one(s). You can check the property SelectedObjec...

1 month ago | 0

Answered
Set properties of patch doesn't work
After you change properties, try with drawnow. Wrong(FaceColor, FaceAlpha, EdgeColor, LineStyle are the only properties for pa...

1 month ago | 0

Load more