Answered
Update app designer field in external function
Koen - it looks like your sim_cooling_GUI is a function (since you are passing in the app.GUI_Settings so why not just pass in t...

4 months ago | 0

| accepted

Answered
Error: Index exceeds the number of array elements(1)
Tatiana - the problem is that a is initialized as a scalar but it is treated as an array at the line A= [A, x, a(x), b(x), z]; ...

4 months ago | 0

Answered
How to access a certain line or box in powerpoint via Matlab ?
farzad - from mlreportgen.ppt.Paragraph class, paragraphObj = Paragraph(text) creates a paragraph that contains a mlreportgen....

4 months ago | 1

| accepted

Answered
How to create undo and redo buttons in GUI that can be pressed multiple times?
John - without seeing your code, we can't determine why it is allowing you to undo and redo only once. You mention that you have...

4 months ago | 1

| accepted

Answered
plot a fitted curve and specified axes
Wave - from plot cfit or sfit object, try doing plot(fitdata, 'Parent', hAxes) where hAxes is the handle to your axes.

4 months ago | 0

Answered
I can't choose just names!
Depressive Mood - since this his homework, we can only give out hints. You need to extract the name from between the two asteris...

4 months ago | 0

| accepted

Answered
Reference to non-existent field 'image'. Error in Untitled2 (line 10) a80 = double(x1_image.image); -----Need help
Aris - what make you think that image is a valid field for x1_image? In your example, you save the A variable to the 80s.mat fil...

4 months ago | 0

| accepted

Answered
Error in XLS Read
Shady - perhaps you need to supply the path to the file? Is the file in the MATLAB search path? Consider using uigetfile so that...

4 months ago | 0

Answered
How to create a vector with for loop?
Hamzah - on each subsequent iteration of your loop, you are overwriting the data from the previous iteration since you are setti...

4 months ago | 0

| accepted

Answered
How can I put the results from a while loop in a matrix?
Kaicheng - you probably can remove the line syms x y since I can't see the y being used in the code, and the x is overridden b...

4 months ago | 1

| accepted

Answered
I want to repeat this code 32 times and each time stores the result to get matrix 1*32
Osama - presumably you want to store the counter value from each of the 32 iterations so you could do something like n = 32; c...

4 months ago | 0

| accepted

Answered
Legend with a variable in it
Zhen - from legend properties you need to set the Interpreter property to none to display literal characters. Try doing Name = ...

4 months ago | 0

| accepted

Answered
help with my home work plzzzz
Bader - look closely at the line for i=1;r; You have a semi-colon between the 1 and the r. Replace with a colon and it will wo...

4 months ago | 0

Answered
How can I make this code like a cycle?
JM - perhaps you can just replace the if/else block with maxIterations = 1000; atIteration = 0; while (abs(E1)>E || abs(E2)>E...

4 months ago | 1

| accepted

Answered
How to find the derivative of y with respect to x (hard code derivative equation into the m-file, do not use symbolic toolbox)
Jacky - if your cost equation is (with x the variable and D and L are constants) f(x) = (2.5*10^6)*sqrt(D^2 + x^2) + (2.0*10^6)...

4 months ago | 0

| accepted

Answered
function xlsread from smartphone android
Carla - I don't think that you can access your device storage from the MATLAB app for the Android phone. From MATLAB Mobile, you...

4 months ago | 0

Answered
Outputs into a vector
Mohsen - you've already declared D_max and L_max as arrays with D_max=zeros(1,9); L_max=zeros(1,9); so all you need to do is ...

4 months ago | 0

Answered
Best function instead of for loop and if loop
HG-NU - try something like A=[1 2 6; 1 2 2; 1 2 3]; Show = A(:,end); % <---- get the last column of A Show(Show...

4 months ago | 1

| accepted

Answered
Problems with integers help
Juan - please clarify what you mean by it doesn't work. Are there errors? If so, what are they? When I run your code (as is) I s...

4 months ago | 0

| accepted

Answered
Conversion of argument 2 from "real_T [2]" to "const int []" not possible;
Bhushan - I don't use Simulink so don't know for sure if this will work but if the error message is telling you that it can't co...

4 months ago | 0

| accepted

Answered
Retrieve variables from inputdlg in a GUI
Yasser - assuming that the user doesn't press cancel, then the project name and number can be retrieved from the cell array Proj...

4 months ago | 1

| accepted

Answered
How can i display output in text edit boxes?
Grace - if you get values from the text edit controls as x0 = app.initial_x_position.Value; then you should be able to set in ...

4 months ago | 1

| accepted

Answered
How can you store values in App Designer like you can in GUIDE?
Ruger28 - you probably want to use properties. See Share Data Within App Designer Apps for details.

5 months ago | 0

| accepted

Answered
Unrecognized function or variable 'MWplotcalcIntegT_OpeningFcn'
Michael - look at this code gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singl...

5 months ago | 0

Answered
MATLAB GUI - Select a point on a plot and run a function with a push button
Pedro - in the OpeningFcn for your GUI, add a button down callback for your axes: set(handles.axes1, 'ButtonDownFcn',@axesButto...

5 months ago | 1

| accepted

Answered
function [country,C,date0] = getDataUSA_CDC() Error: Function definition not supported in this context. Create functions in code file.
Hemanth - I suspect that you are copying and pasting this code into the command window. Since this code is a function (as given ...

5 months ago | 0

| accepted

Answered
Problem with answer 15.2 Creating and Calling Functions: (4/6) Create and Call a Function, task 1 MATLAB Fundamentals
Gareth - did you update the function signature as well so that it accepts two inputs? Presumably you have defined the function (...

5 months ago | 1

| accepted

Answered
Create a set of sets
David - try using a cell array: V = {[1 2] [1 3] [1 2 3]};

5 months ago | 0

| accepted

Answered
How to make a flashing movie? Please suggest any approach without application of any specific toolbox.
Yanjinsuren - do you really mean to create a movie (say with videowriter) or do you just want to have the circle alternate betwe...

5 months ago | 0

| accepted

Answered
toggle and elseif in matlab
Shivaani - I think that all the code is asking you to do is to add another variable called doDisplay and an elseif that would ch...

5 months ago | 0

| accepted

Load more