Réponse apportée
Script to create/load a project
You need to delete .prj file and resources folder with it as well.

plus de 5 ans il y a | 0

Réponse apportée
How do I run a function I downloaded?
Please see John's comment as it's important. Place the function in your current folder and call it from command window, or in w...

plus de 5 ans il y a | 1

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus de 5 ans il y a

Réponse apportée
Legend inside a loop
Something like this should work. for k=1:1:length(c) legendstr{1,k} = sprintf('zeta = %f', zetavalue); %legendstr changes ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How to use Global Search using fmincon with constraints and bounds?
Check the documentation, the fields were renamed to Aineq and bineq.

plus de 5 ans il y a | 0

Réponse apportée
How to get Matlab to return answers with ten-digit accuracy?
Write this on start of your script format long If you're reading the values from the workspace, find tab 'View' and under 'For...

plus de 5 ans il y a | 1

Réponse apportée
How to kill a starved designer app
Updated Note, this closes all figures close(findall(0, 'type', 'figure'));

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
creation of an app designer convolution of continuous and discrete signals
If you group them into one panel, you can hide a panel. Otherwise you can create a helper function that would hide/show the spec...

plus de 5 ans il y a | 0

Réponse apportée
App Designer, how to use value of DropDown in external function file
Quick, delete the line with global variable before MATLAB police comes! Don't use global variables, unless there is really a nee...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
App Design: stop
Actually, In callback for the stop button, set app.stopFlag = true; Within the plotting function check the property % You're...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
Well, I have a small complaint about the rules on MATLAB answers. Seeing the content of some questions is frustrating, such as ...

plus de 5 ans il y a | 0

Réponse apportée
App Designer : Text field making visible and invisible when select and re-select same option from drop down menu
You can create a property called Last_Selection = ''; In the DropDownMenu callback function DropDownValueChanged(app,event) ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Function calling: Can someone help me in figuring out why is the main function not runing ?
As you can see - Error in main (line 1) Script should be working if you remove it main file

plus de 5 ans il y a | 1

Réponse apportée
Can't perform git push/fetch/pull from Command Window
Try this as well, this might be the actual solution. Replace 'username' and 'your-repository' !git remote set-url origin git@g...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Limiting UIAxes Interactivity in AppDesigner
I am not aware of the option to save/export fig in App Designer. For limiting interactivity: ax = app.UIAxes; % change to your...

plus de 5 ans il y a | 0

Question


App Designer - confirm exit when application is closed from Windows bar
Hi guys, I have a simple question regarding App Designer. Sometimes I accidentally click the close button which exits the appl...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
how to connect a GUI to a program
Now that I know that it's a script, I can answer the question. I assume you're using GUIDE, unfortunately I have never used it,...

plus de 5 ans il y a | 0

Réponse apportée
Cannot open file for reading when using system()
Supply fullpath to model file instead.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to draw line logarithmic x axis and y axis
loglog(X,Y) https://ch.mathworks.com/help/matlab/ref/loglog.html

plus de 5 ans il y a | 0

Réponse apportée
How to modified "edit fied (text)" from app design
Add this to the value changed callback, adjust the name of your field. if length(app.EditField.Value) <= 20 Text = app.Edi...

plus de 5 ans il y a | 1

| A accepté

A résolu


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

plus de 5 ans il y a

Question


What is the the good practice for exchanging data in App Designer?
Let's start with a simple example: We're having a button callback that calculates the numeric field value from two other numeri...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Change or Add to greyed-out areas in App Designer
You do that by adding callback startupFcn which executes after component creation. If you are on Editor tab, click on Callback ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Is there a way to get the value of all rows in uitable (in matlab gui) by just clicking one cell?
Create a CellSelection callback, it will return you indices of the selection. You can use that to get the data for selected row....

plus de 5 ans il y a | 0

Réponse apportée
GUI and user-defined function
Define your result as an empty array first. This may resolve your issues, depending on the rest of the code result = [];

plus de 5 ans il y a | 0

Réponse apportée
Code Generation: What's the Best Practice?
You can use options = optimoptions('fmincon') % example this will give you the options used by fmincon algorithm with their d...

plus de 5 ans il y a | 0

Réponse apportée
Divide and average method: while loop is overshooting approx. answer by one loop
Your xi and e are calculated and then if x>xi condition is checked, it should be the other way around. if x>0 && a>0 while 1 ...

plus de 5 ans il y a | 0

Réponse apportée
when i maximize the UIFigure of appdesigner, the buttons of the app design are dispersed. And also the size of each button vary. How can i resolve it?
There's an option for most components - AutoResizeChildren. If you remove checkmark, then it won't resize components.

plus de 5 ans il y a | 0

Réponse apportée
Refreshing Plot After Certain Time?
Use function drawnow to refresh the plots. If I understood the code correctly, you just need to add drawnow somewhere after plo...

plus de 5 ans il y a | 0

Réponse apportée
app designer does not get the value from edit field in panel
It's correct what you've written and what Xavier suggested. You need to create a property col. If col is a number, use col = []...

plus de 5 ans il y a | 0

Charger plus