Réponse apportée
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...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
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.

presque 6 ans il y a | 0

Réponse apportée
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...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 0

Réponse apportée
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...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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 = ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 0

Réponse apportée
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...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
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)...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 0

Réponse apportée
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 ...

presque 6 ans il y a | 0

Réponse apportée
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...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
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 ...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
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.

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Unrecognized function or variable 'MWplotcalcIntegT_OpeningFcn'
Michael - look at this code gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singl...

presque 6 ans il y a | 0

Réponse apportée
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...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
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 ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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 (...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Create a set of sets
David - try using a cell array: V = {[1 2] [1 3] [1 2 3]};

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 2

| A accepté

Réponse apportée
How can i use a switch and a drop down menu? matlab appdesigner
Ashwin - one problem with your conversiontypeDropDownValueChanged callback, you are using the same variable name for to represen...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Plotting a variable that changes in a loop iteration vs the iteration number
Colin - outside of the while loop, just do plot(diff_u); But is that what you really want to plot? Your comment %if max_diff ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Selecting a dropdown value and getting an answer AFTER pressing button (in App Designer)
Jo - I think that you can just access the drop down value directly from the button callback (you probably don't want to be calli...

presque 6 ans il y a | 0

| A accepté

Charger plus