Answered
Error in pop-up menu for GUI
Hosheeta - part of the problem might be your conversion from a number to a string via *num2str* and the subtraction of 48 (ASCII...

9 years ago | 0

| accepted

Answered
How to read only the first line/row in a text file?
kk1991 - if you only want to read the first line in the file, then don't use the *while* loop or use *break* to exit the loop on...

9 years ago | 0

| accepted

Answered
sir im doing a simple program to identify pixel value and compare with another image,
vani - are you sure that your image is 225x225? Rather than hardcoding the dimensions, use *size* to determine the number of ro...

9 years ago | 0

| accepted

Answered
how can I get value from several checkboxes in matlab gui
Evelina - if you are using GUIDE, then (in the pushbutton callback) create a list of the handles to all of the checkboxes and th...

9 years ago | 3

Answered
How to Save info of two matrix in another matrix, and then calculate the distance between positions of the matrix?
Alecd - what have you tried so far? There are several ways to determine which elements of your future matrix, *F*, have a two th...

9 years ago | 0

Answered
How to plot multiple figures (.fig) into one figure?
Saad - you could try opening the figure and then grab the handles for the graphics object (or objects) that were drawn on the ax...

9 years ago | 2

Answered
How to get data from edit text box in GUI with a push button
GUIDE-created GUIs can be launched from the GUI editor, the m-file editor, or from the command line by invoking the name of the ...

9 years ago | 0

Answered
I want to know the code that will be executed when I push the push button after checking several checkboxes together in gui.
Ji-Eun - it isn't all that clear what you are asking for, but the pushbutton callback will be called when you press a pushbutton...

9 years ago | 0

Answered
Displaying an image on GUIDE created figure
Kasun - look closely at your code. You are creating a figure each time you load a new image figure(handles.figure1), imshow...

9 years ago | 0

| accepted

Answered
Minor grid-lines spacing issue
Ben - how are you enabling and disabling the grid lines? If you are checkboxes are named *checkbox1* and *checkbox2* for the ma...

9 years ago | 1

| accepted

Answered
How to display MAPE in gui?
Dominika - why is one variable named *mape* but then you reference *mape_2* where you set the string of the *text10* control? I...

9 years ago | 0

| accepted

Answered
How to read data/number from dynamically added text boxes by 'for' loop using GUI ?
Vysser - if you are dynamically creating edit text boxes, then why not maintain a list of all the handles to these text boxes? ...

9 years ago | 0

| accepted

Answered
matlab timer help pls
sufyan - since you are using GUIDE for your GUI, then save the timer handle to the *handles* structure so that it will be availa...

9 years ago | 0

Answered
Pausing an application in GUI
Mykhaylo - rather than using a *while* loop to update the board, consider using a <https://www.mathworks.com/help/matlab/ref/tim...

9 years ago | 0

Answered
Populating drop down gui from file
Yasaman - you didn't post your error message so we can only guess as to what might be the problem. You mention how you want to ...

9 years ago | 1

Answered
Real-time heart rate calculation
bilal - it doesn't look like *BPM_avg* is defined before you try and use it, so I'm surprised that you are not getting an error ...

9 years ago | 1

| accepted

Answered
Function requires more input arguments to run
Cosimo - since this is a function that has one input parameter, then you need to supply that parameter. From the command line y...

9 years ago | 2

| accepted

Answered
How to add and array using a while loop
Andrew - to test for equality (in your condition) you need to use two equal signs as currents == 413 You use one equal si...

9 years ago | 0

Answered
How can i change the places row and column between two matrices.
rojava - if you want to add the first row of *A* to the first column of *B* and we assume that the number of columns in *A* is t...

9 years ago | 0

Answered
How to plot random (x,y) coordinates on a plot? if X and Y has different values in array form ?And join all these (X,Y) coordinates to from a connected network graph?
Sneha - you will want to iterate over each pair of coordinates and draw a line between each one. For example, you could do ...

9 years ago | 0

Answered
How to get my while loop to skip into the next loop?
ranbo95 - your condition in your *while* loop seems suspect while round(tinitial) <= RFDoutput(t,1) < round(tinitial+tpiniti...

9 years ago | 0

Answered
I am trying to eliminate the negative Y-axis (-0.2 portion in the image below). So that the Y-axis of the graph starts from zero. I have attached the .mat file. Please help me out. Here is my code:
Biswarup - try setting the y-axis limits using <https://www.mathworks.com/help/matlab/ref/ylim.html ylim> as ylim([0 1.4]);

9 years ago | 0

Answered
i need help please
Ahmed - just transpose your data in the table as t=uitable('Data',[PWF;Qv]','ColumnName',names); Note the apostrophe *[PW...

9 years ago | 1

Answered
how can i fix this error?why is the function unused even though its written in the same manner as the preceding function that work?
Shane - what is the error you are observing? If I run your code (with random inputs to *prism*), I see Undefined function o...

9 years ago | 0

| accepted

Answered
Continuous X-Axis plot in Real Time
bilal - please see <https://www.mathworks.com/matlabcentral/answers/284202-how-to-plot-a-real-time-signal-with-axes-automaticall...

9 years ago | 1

| accepted

Answered
Subscript indices must either be real positive integers or logicals error when using getFirstChild.getData function
sermet - the error message is telling you that you are trying to access an element in an array with an index that is invalid. I...

9 years ago | 1

| accepted

Answered
??? Attempted to access f(0); index must be a positive integer or logical. Help me to solve this problem.
Thomas - see <https://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html anonymous functions> for details on how...

9 years ago | 0

| accepted

Answered
Please tell me the error in this code.
tejasvee - please format your code so that it is readable. Better yet (given the number of lines) just attach it the m-file to ...

9 years ago | 1

| accepted

Answered
real time plot in gui
lafe - how will you obtain the samples? Do you generate them or read them from some device? In any case, you may want to use a...

9 years ago | 0

Answered
array of numbers and strings
Marc-Olivier - the line of code op = {nb1 str1 nb2} ; will create a 1x3 cell array of two numbers (in the first and thi...

9 years ago | 0

| accepted

Load more