Answered
STOP WHILE CYCLE FROM MOBILE APP
Some GUIs that are designed in a similar manner with a "tight" while loop (i.e. a loop that is not interruptible) require that y...

27 days ago | 0

| accepted

Answered
kronecker product in a matrix
Ali - perhaps the code could be h = zeros((2*N + 1) * size(hx,1), N); for k=1:N Ekn1 = zeros(N,1); Ekn1(k) = 1; ...

28 days ago | 0

| accepted

Answered
Matlab adds additional margin to an image!
Amin - from your code ax = uiaxes(fig,'position',[78 120 240 240]); imshow('Support1.png','parent',ax); ax = uiaxes(fig,'posi...

28 days ago | 2

| accepted

Answered
Unable to place mysql query
Raj - it looks like you are missing some spaces between the word AND and the column 'ANDlatitude_eb BETWEEN'52.5012'AND'52.505...

29 days ago | 0

| accepted

Answered
Produce matrices through for loop
Ali - if the output matrix of each iteration is of dimension 102x1, then you could store each output as a column in a 102xN matr...

1 month ago | 1

| accepted

Answered
How to convert an array to a one-line string?
Ercument - you could try using rehape to convert your numeric matrix into a single row C = str2num(A) * str2num(B); D = num2st...

1 month ago | 0

| accepted

Answered
Plot a graph embedded in a function by caling this function in App Designer
Mehmet - does your function (to draw the graph) expect any input parameters? When your GUI is running, at what point do you want...

1 month ago | 0

Answered
How can I read the value Speicher1 with a second button disp(Speicher1). Speicher is a class.
Mario - can't you just calculate Speicher1 in your other function? function DateinameEditField_2ValueChanged(app, event) S...

1 month ago | 0

Answered
Save Function Output in a loop
David - what is the error? Which are the output parameters (in your above code) that you want to save on each iteration of the l...

1 month ago | 0

Answered
check box, hey all, im wrote a code for creating a gui that contain checkbox and i cant take the data out of the function when i call it. what should i do?
Guni - rather than having your callbacks write data to the base workspace, you can have your GUIDE GUI output a (for example) st...

1 month ago | 0

Answered
Delete line plot and plot new one on UI Axes
Daniel - I think I understand your intent...but does the code do what you are expecting it to do? Does get(groot,'CurrentFigure'...

1 month ago | 0

Answered
How to terminate or break the pause function
Tonghui - rather than using a while loop with a pause function to periodically perform a task, use a timer instead so that you c...

1 month ago | 1

Answered
Stop the function pause(n)
Rather than using a while loop in your GUI code, use a timer which you can then programmatically start and stop. See https://www...

1 month ago | 0

Answered
"Not enough input arguments " error when using timer
Abdulbaki - the function signature for your timer callback is function DATA(hObject, eventdata, handles) The timer function ca...

1 month ago | 0

Answered
Matlab GUI changing image brightness using slider
Diana - the problem may be with this line of code imbright=(handles.axes1)+val; Note that you are adding a value val (calculat...

1 month ago | 1

| accepted

Answered
How to iterate xa from 0 to 1 with steps of 0.05 in the function r=F*(k*C*(1-xa))/(1+K*C*(1-xa)). All variables are known except for r.
Marina - try m = zeros(20,1); k = 1; for x = 0:0.05:1 m(k) = F*(k_kin*C*(1-x))/(1+k_ads*C*(1-x)) k = k + 1; end e...

1 month ago | 0

Answered
How can I rename images in a folder
Ronny - let's assume that you have a list of file names (with or without a full path to the file). We can use strrep and movefil...

1 month ago | 0

| accepted

Answered
how to get the x value for a given y value?
ahmed - your code assumes that there is an x value that is identical to xi z=find(x==xi); This need not be true. And comparing...

1 month ago | 0

| accepted

Answered
Cut and plot Audio Signal (.wav) in specific time
Apridho - you may want to use audioread to read the data from the wav file [y,Fs] = audioread('myAudioData.wav'); Fs will be t...

1 month ago | 0

Answered
Storing data for "for loop"
Khang - don't create variables just for the sake of having variables. If all of your L arrays are of the same dimension, then ju...

1 month ago | 0

Answered
How to impliment a covergence condition?
abdel - perhaps your condtion would be if abs(A(k,i) - A(k+1,i)) <= 0.0001 % do nothing else % replace your value e...

1 month ago | 0

| accepted

Answered
How to apply cellular automata to an array of multiple colours?
Obi - presumably your matrix is RxCx3 and that red is (255,0,0), green is (0,255,0), blue is (0,0,255), and white is (255,255,25...

1 month ago | 0

| accepted

Answered
Error using - Matrix dimensions must agree. Error in Eigenfaces (line 14) t=double(z(i,:))-m;
Bereket - the error message is telling you that the matrices upon which you are executing the difference (of), are of different ...

1 month ago | 0

Answered
How do I read raw text from a webpage (ESPN Fantasy Baseball)?
James - as a first step, try using webread to read the data from the URL which you can then pass to jsondecode like urlToFetch ...

1 month ago | 1

Answered
Getting Pop-up menu output as Excel sheet for plotting
Varun - I don't understand this line of code data111=xlsread(handles.popupmenuX,' data11') Why are you using the handle of the...

1 month ago | 0

| accepted

Answered
Using pop-up menu to graph different scenarios
William - there is no need to dynamically create a variable in the base work space to handle the selection in the pop-up menu. I...

1 month ago | 0

Answered
errors in spring mass gui code
William - the code around the error is y=V; %V is the position array of the graph that is graphed in axes2 for k=V(1):5:length...

1 month ago | 1

| accepted

Answered
How can I periodically update an axes plot in Matlab GUI?
Francesco - while the following code will pass in the handles structure handles.timer = timer('Name','MyTimer', ...

1 month ago | 1

| accepted

Answered
error using trapz function
mitis - is the error message Subscript indices must either be real positive integers or logicals. Error in ipermute (line 22...

1 month ago | 0

Load more