Answered
Error using data in uitable
Nadine - what are the data types for *S*, *Ie*, and *E*? Please show how they are calculated. I observe the same error if one ...

8 years ago | 0

| accepted

Answered
MATLAB GUI callback to open a new figure?
Rahul - just call the name of the second GUI. i.e. if the name of the other GUI is OtherGUI, then just call it as hGui = Oth...

8 years ago | 0

Answered
[GUIDE] Save plots in handles in a loop. When a new plot is saved, the previous one is deleted without a reason.
Michael - I'm not really sure what you mean by _The problem is that the plot saved in handles.plots{1} is deleted in the process...

8 years ago | 0

| accepted

Answered
How to end "while ~isempty(videoFrame)" loop ?
bfjk12 - are you checking on some condition to decide to prematurely exit the *while* loop? If so, then just use *break* to end ...

8 years ago | 0

Answered
I want to read 24 images and stores value of omega,imou,nb into mat file, but some error in my program...
Balaji - note that on each iteration of the second loop you are saving the data to file for iuser=1:nuser for irep=1:...

8 years ago | 0

| accepted

Answered
Simple GUI program performs simple math, but returns two numbers?
Matt - the problem is that the input text is a string and so you need to convert it into a number before you start to manipulate...

8 years ago | 1

| accepted

Answered
Line style specification for plotting
Davit - see <https://www.mathworks.com/help/matlab/ref/linespec.html linespec> for details. You can definitely satisfy case (b)...

8 years ago | 0

Answered
Why do I get a for loop error "Subscript indices must either be real positive integers or logicals"?
The problem is because of *m* for m=1:rows Note how *m* starts at 1. Now look at this line elseif (data.Hday(m-1)==...

8 years ago | 0

| accepted

Answered
Draw growing circles on a jpeg file.
Ranjan - according to <https://www.mathworks.com/help/images/ref/viscircles.html viscircles>, if you do something similar to ...

8 years ago | 1

Answered
Hello everyone, i'm new to matlab and i'm trying to implement slider for un sharp mask filter and i don't know how to do that. I implemented slide for brightess and my code in slider1_Callback function looks like this:
Dan - please clarify what (with the code you have provided) is the behaviour that you are observing. Is there any change to the...

8 years ago | 1

Answered
Storing multi regression variables for each loop
Kilo - does this mean that you want to store six dependent (?) and one independent variable values for 500 iterations? If so, t...

8 years ago | 0

| accepted

Answered
How do I make a push button output a value of '1' to a text box, and then use that value and a double?
Bryce - how are you creating your GUI? With App Designer, GUIDE, or programmatically? In probably all three cases, your push b...

8 years ago | 1

| accepted

Answered
If I have a while loop that outputs a different letter (or space) each time I run it, how can I combine all the outputted letters from each loop into a string.
Lauren - outside of your *while* loop you can create an empty string variable such as message = ''; Then, whenever you g...

8 years ago | 1

| accepted

Answered
Storing values from a while-loop within a for-loop.
Børge - your code seems to be counting the number of iterations (of the *while* loop) it takes to generate two random number who...

9 years ago | 0

Answered
How to get the LSB of a number?
Darsana - if *x* is your array of bits (presumably that is what it is) then the least significant bit (LSB) is the right-most bi...

9 years ago | 0

| accepted

Answered
How can I reorder rows of a matrix to a given vector?
Robert - you could try doing B = A(V,:) to re-order your *A* given *V*.

9 years ago | 1

| accepted

Answered
error openExample('vision/AlignTwoPointCloudsExample')
M - Which version of MATLAB are you using? It could be that your version of MATLAB is too old to support this function. See <h...

9 years ago | 0

| accepted

Answered
Trouble Plotting Multiple Data Sets on Same Graph
Alison - do you mean that plot(x/1e3, q+73,'b') plots perfectly? If I run your code, then yes, there is a spike at zero ...

9 years ago | 1

Answered
How do I combine information from 2 arrays into a single array?
Marissa - if you have two arrays named *hours* and *minutes* as hours = [1 3 4]; minutes = [33 12 27]; then you can add...

9 years ago | 0

Answered
Updating a graph with Timer Function
imaging_tech - your code for *myMat_new* is function [ myMat ] = myMat_new( myMat ) x = -pi:1/8:pi; myMat = sin(x...

9 years ago | 0

Answered
if statement: Having one image as a condition and adjusting another image is condition is met.
If we assume that *B* and *C* are of the same dimension and that you want all elements of *C* to be set to zero if their corresp...

9 years ago | 1

| accepted

Answered
Want to create an array of filenames on every row of a matrix
Richard - you initialize *hello* as a scalar instead of as a matrix or cell array so this is going to lead to problems. Try doi...

9 years ago | 2

| accepted

Answered
"Function definitions are not permitted in this context." ? bisection
Amanda - you seem to have an extra *end* after the first *if* statement if 0 < fTabs(L,osf)*fTabs(U,osf) error('b...

9 years ago | 0

Answered
Summarizing numbers using a loop
Olle - your code seems to be missing the *for* loop so I suspect that is the reason that you are only getting a value of 1. Con...

9 years ago | 0

Answered
How to troubleshoot "Undefined function or variable 'xticks'." on MATLAB R2016a.
According to <https://www.mathworks.com/help/matlab/ref/xticks.html xticks>, then function was introduced in MATLAB R2016b. You...

9 years ago | 4

| accepted

Answered
How to have an arbitrary vector as your input for your function?
Hye - if *A* is a vector of (say) three elements, then to access the first element you would do *A(1)*, the second element *A(2)...

9 years ago | 1

| accepted

Answered
Using Randperm between two values
Danté - if *randperm(n)* returns a row array containing a random permutation from integers from one to *n* inclusive, then could...

9 years ago | 3

| accepted

Answered
While writing a shorter column over a longer one in a loop, how do i remove the extra entries?
M - how do you know that *t_temp* is shorter on subsequent iterations of the loop? For example, if you have 15x1 array as t...

9 years ago | 0

Answered
Editor/Debugger show the column line numbers
Lisa - you should be able to see the column number in the bottom right corner of the editor window <</matlabcentral/answers/u...

9 years ago | 3

| accepted

Load more