Answered
Divide and expand matrix
Andrew - what have you tried so far? Suppose *mtx1* is your 600x600 matrix and *mtx2* is your 6000x6000 matrix. The mapping of ...

9 years ago | 0

Answered
How to make a slider GUI with most simple code
Yode - the slider callback (as you've defined) only fires when the slider stops moving and you want the callback to fire wheneve...

9 years ago | 0

Answered
I can't run that code (i'm new)
Guillaume - since your file has a function named *bdf2* then your m-file must be named the same way as _bdf2.m_. You would then...

9 years ago | 1

Answered
Using min() on vectors with double
Kylie - try typing which min to see if *min* refers to the function to find the minimum value of an array or if *min* ref...

9 years ago | 4

| accepted

Answered
How can I get row number selected row in uitable GUI
syh1234 - since you are making a change to uitable (i.e. selecting or de-selecting the checkbox), then you can use the *CellEdit...

9 years ago | 0

| accepted

Answered
How to track new variables in the workspace
Nicholas - try using <https://www.mathworks.com/help/matlab/ref/function.html functions> instead of scripts (see <https://www.ma...

9 years ago | 1

Answered
Why GUI data is getting deleted after execution of push button command (GUIDE) ?
Pooja - if you are initializing local variables within your callback function like function pushbutton1_Callback(hObject, ev...

9 years ago | 2

| accepted

Answered
Button is being long pressed or just clicked?
Renato - I don't think that you can do this without customizing your GUI. There doesn't appear to be any event handling for mou...

9 years ago | 1

| accepted

Answered
How to update a property of an object of a class with GUI, multi-threading, I presume?
Neel - try deriving your *print_num* class from the <https://www.mathworks.com/help/matlab/handle-classes.html handle class> as ...

9 years ago | 1

| accepted

Answered
How to animate different plots at the same time?
Tong - don't switch to the current figure, but rather use the handle to the figure (if needed) or (better) the handle to the axe...

9 years ago | 1

| accepted

Answered
How to load data into uitable via button in GUI using GUIDE
Matt - <https://www.mathworks.com/help/matlab/ref/readtable.html readtable> returns a table which cannot be used to set the data...

9 years ago | 0

| accepted

Answered
I am plotting the moving median of the result of a for loop, but it is plotting multiple lines?
Mark - you have *hold on* which will retain the current plot when adding new ones. And since you call *plot* on each iteration ...

9 years ago | 0

Answered
how to generate C code in matlab??
khiter - try using <https://www.mathworks.com/help/matlab/ref/mex.html mex> to build a MEX function from your C code. See also <...

9 years ago | 0

| accepted

Answered
how to skip and not add to matrix
liu - use <https://www.mathworks.com/help/matlab/ref/isempty.html isempty> instead of trying to compare *D* to the square bracke...

9 years ago | 1

| accepted

Answered
how to create a GUI.. ?
hema - you will want to call your function (m-file) from the pushbutton callback. If you are using GUIDE to create your GUI, se...

9 years ago | 1

| accepted

Answered
How to save a variable length vector iterating in a loop into an Array
Ayan - if you want to save your *found* elements into an array, just initialize an array (before the *while* loop) to something ...

9 years ago | 1

Answered
How Can I Write A Program Pressing a Key?
Mahan - if you are using a MATLAB figure (which is the screen with something changing on it), you can assign a function callback...

9 years ago | 0

Answered
Promblem in GUI Error while evaluating DestroyedObject Callback
Adisorn - did you press *stop* (in the GUI) before you pressed *exit*? If so, then (based on your code in the stop button callb...

9 years ago | 0

Answered
User input with 3 options, how to repeat question if one of the options was not entered.
Sean - use <https://www.mathworks.com/help/matlab/ref/strcmpi.html strcmpi> when comparing strings else you will see errors like...

9 years ago | 1

| accepted

Answered
How to stop getting cursor position?
KAE - how have you implemented the function as described in GUI_27? Do you use the same callback like set(S.fh,'windowbutto...

9 years ago | 0

| accepted

Answered
็How to send video object in function to GUI in Matlab
Adisorn - what is your order of operations? Do you launch the GUI and then call *realtimefunction* and pass in the handle to th...

9 years ago | 0

| accepted

Answered
I'm looking to create another push button which will convert browse image to binary of the image I read in, I'm not sure how to define the image under the new function as the image that was chosen previously, could any one help,
indrani - it sounds like you have one push button that reads in an image (and does something with it), and another push button t...

9 years ago | 0

| accepted

Answered
How to check Number of channels of a sound file and convert stereo file in mono in MATLAB
Hemangi - try using <https://www.mathworks.com/help/matlab/ref/audioread.html audioread> as myWavFile = 'some.wav'; [y,Fs]...

9 years ago | 3

| accepted

Answered
How do you download psychtoolbox on MATLAB with macOS Sierra?
Diana - you should be able to download this toolbox from <http://psychtoolbox.org>.

9 years ago | 0

Answered
Calling from Matlab a recusive function written in C
Ameer - you are getting an error with the output parameter code because of your recursive call to *test* *y=(n*test(n-1,k-1)...

9 years ago | 1

Answered
Loop over two variables
William - you could do something like the following if you assume that you know your domains for *x* and *y*. numElementsX =...

9 years ago | 1

| accepted

Answered
How to limit the user input to a specific range?
Valentina - your condition is if len This will always be true if *len* is not zero. If you wish to restrict your length ...

9 years ago | 0

| accepted

Answered
Convert table row into list
alice - try using the braces (instead of brackets) as row = rrs_wvl{1,:}; (This works for me with R2014a.)

9 years ago | 1

| accepted

Answered
How to carry out a function when a cell is deselected on UItable.
Kyle - rather than using *cellSelectionCallback* (which only seems to fire when you select a new cell within the uitable), you c...

9 years ago | 3

| accepted

Answered
Where can I find the path to Matlab installation directory?
Joe - try using <https://www.mathworks.com/help/matlab/ref/matlabroot.html matlabroot> to find the path to where MATLAB is insta...

9 years ago | 3

| accepted

Load more