Answered
Update database in gui but dont get updated data.
Gytis - in your command update(conn, 'info', colnames, ... {handles.edit1,handles.edit2,handles.edit3,handles.edit4...

9 years ago | 0

Answered
Help creating a GUI for a uitable where the user can select what gets displayed on a graph.
Kyle - you need to assign a callback to your uitable so that when a cell is selected, you perform some action depending upon the...

9 years ago | 0

| accepted

Answered
How can I count the occurrences of each element in a matrix in MATLAB?
Tracy - one way is to use <https://www.mathworks.com/help/matlab/ref/ismember.html ismemeber> (though this can be "slow"). For ...

9 years ago | 0

| accepted

Answered
For Loop inside another Loop
If *a* and *b* are vectors/arrays and you want to iterate over each element of the array, then you would need to do something li...

9 years ago | 0

Answered
Output not shown in edit text box in GUI
Smitha - try converting your numbers (the output of the call to *Intelligent_Traffic_Control* to strings using <https://www.math...

9 years ago | 0

Answered
I want element (3,2) from a matrix with size (4,4) to try the values of the first column from another matrix with size (3,3) one by one and at each time produce the new matrix. How can I do this ?
Mahmoud - do you want to keep the updated *B* at each iteration, or just use it and then dispose of it? for k=1:size(A,1) ...

9 years ago | 0

Answered
How can I draw bar graph from the data in matlab?
Hailemariam - this seems like homework, so take a look at the *Create Bar Graph with Categorical Data* example from <https://www...

9 years ago | 0

Answered
How can I remove the unwanted straight lines?
Rahul - how are you plotting the data? Try doing plot(myData,'.'); which will plot points instead of using the default l...

9 years ago | 0

Answered
I get an error in the for loop.
Muhendisleksi - since your arrays seem to concern only numeric data, then they might not be cell arrays which use the curly brac...

9 years ago | 0

Answered
Cross validation: Loop with unbalanced length
Kamu - you could try something like N = 42; M = 84; A = randi(255,N,1); B = randi(255,M,1); for u=1:N a = A(...

9 years ago | 1

Answered
How to call the text edit value on a gui to run in another gui?
Yuli - it sounds like you want to pass data between your two GUIs. See <https://www.mathworks.com/matlabcentral/answers/146215-...

9 years ago | 0

| accepted

Answered
Load file with changeable variable
J - when you call load(['File' num2str(h)]) you end up trying to load a file whose name is (if *h* is one) _File1_. This...

9 years ago | 0

Answered
Issues with a thresholding function
Andrew - look at the line rArray=zeros(size(numel(x))); *numel* returns the number of elements in *x* so this could be (f...

9 years ago | 0

| accepted

Answered
How can i save some data from GUI to show later in the same GUI?
Mouhammad - if you are using GUIDE for your GUI, then see <https://www.mathworks.com/matlabcentral/answers/162748-how-do-i-save-...

9 years ago | 0

| accepted

Answered
shifting the elements of matrix
kritika - you could try to use <https://www.mathworks.com/help/matlab/ref/triu.html triu> which will return the upper triangular...

9 years ago | 0

Answered
Plotting reflectance against time
Adam - in the future, please format your code so that it is readable. I have done this for you, but all you need to do is to hi...

9 years ago | 1

Answered
How can I overlap graph and line that drawn vertical at mouse clicked location?
Hansung - see <https://www.mathworks.com/help/matlab/creating_plots/preparing-figures-and-axes-for-graphics.html Prepare Figures...

9 years ago | 0

| accepted

Answered
How to make specific image with certain information in GUI after select the image using if else statement?
Nik - where is the *if* and *else* statement? Is it in another callback? If you wish to make *img* available to the other call...

9 years ago | 0

Answered
How to read data from another directory using dlmread function
Habtamu - the *files3* structure only includes the names of the files and not the path to each one. You would need to read the ...

9 years ago | 1

| accepted

Answered
How to insert text in a matrix - If function
Pierre - since you are inserting strings of different lengths, your *Announcements* array will need to be come a cell array ...

9 years ago | 0

| accepted

Answered
Error with Audiowrite Struct contents reference from a non-struct array object.
Massey - is *extra sound data/* a valid path from within the current directory? Is / valid for your OS? Try giving the full pa...

9 years ago | 0

Answered
MATLAB play notes for different duration's as specified by
sanbadgerdude - when I run your above code, I observe the following error Error using * Inner matrix dimensions must agr...

9 years ago | 1

Answered
Plotting Data from a matlab gui Table ?
Moustafa - if we assume that there are only two columns in your table, then you could do something like tableData = get(tabl...

9 years ago | 0

| accepted

Answered
where is the problem ?? and How can i fix it ??
Abdelrahman - have you installed the <https://www.mathworks.com/hardware-support/arduino-matlab.html Arduino support package>? ...

9 years ago | 0

Answered
Inner matrix dimensions must agree error
Nana - looking at your code, *a* is a 5601x28 matrix and *w* is a 5600x28 matrix. The dimensions of *x_0* are unknown (from the...

9 years ago | 0

Answered
How do i show output from program in the uitextarea?
frank - try concatenating the existing data with the new for k = 1:100 app.OutputTextArea_2.Value = [app.OutputTextAre...

9 years ago | 0

Answered
How do you code a toggle button to start/stop function that are plotting on a graph in a GUI?
Kam - if you want have a "process" running in the background (that you start by pressing the toggle button) then you may want to...

9 years ago | 0

Answered
Creating A Matrix Using Nested For Loops and Mod function
Maggie - this seems like homework so we can only give out hints but it seems pretty clear what the pattern is: if the row is odd...

9 years ago | 0

Answered
I make mistakes while creating a matrix
Muhendisleksi - I think that you can simplify your code to populate *Adog1* to be the following Adog1 = zeros(length(DNdog),...

9 years ago | 1

| accepted

Load more