Answered
how can i add on a graph a point with it's data on gui? like here in excel picture
Have you added a callback to your *graph* button? Because it is within this callback that you will want to read the data from t...

12 years ago | 0

Answered
how make matrix from a for loop
Since the two *for* loops now iterate with a step size of 0.1, then *i* and *j* are no longer positive integer values (1,2,3,4,5...

12 years ago | 0

| accepted

Answered
Invalid indexing operation- drawing epipolar lines
The second error is obvious: the *matchedPoints1* matrix is only 89x1 but the *matchedPoints1(inliers,2)* is trying to access th...

12 years ago | 2

Answered
Using sscanf and NaN
If you know that *sscanf* of the input string is to return 6 numbers, and *A* is only populated with three, then you could do th...

12 years ago | 1

| accepted

Answered
error while using ezplot
The first input to *ezplot* must e a function handle or a string (see <http://www.mathworks.com/help/matlab/ref/ezplot.html> for...

12 years ago | 0

Answered
while loop not working
The Cycle 2 Separation looks like %% Cycle 2 Separation g2=Cycle1DownStop; Cycle2UpStop=Cycle1DownStop; A2=[5 5]; wh...

12 years ago | 0

| accepted

Answered
how to capture each time the key is pressed.in my code when second key is pressed it adds the time of first keypresssed also
*toc* works as follows (type *help roc* or *doc toc* in the Command Window for details) TIC and toc functions work together ...

12 years ago | 1

| accepted

Answered
genpath related question, replacing genpath
According to the documentation on *genpath* (type *help genpath* or *doc genpath* in the Command Window for details) P = gen...

12 years ago | 0

Answered
How exactly does eval work?
What is *rec3* defined to be? Is the above block within a loop of some kind? I noticed that you defined a local variable wit...

12 years ago | 0

| accepted

Answered
How to cycle through images in a GUI
An alternative - once the directory has been determined - is to use *dir* to grab the files from that directory and create a lis...

12 years ago | 0

Answered
How can I add XTickLabels in a subplot (2014a)
I think that part of the problem is that when the code calls *axes* or *xlabel* it applies the ticks or labels to the current ax...

12 years ago | 0

| accepted

Answered
i have developed a gui with a plotting area , now the problem is i need to transfer the results of the calculation that are being used in plotting to be shown in the text file so can you suggest me how to do that on clicking the plot button.
Your GUI button needs a callback that will be invoked whenever the user presses the button. If the button name is *pushbutton1...

12 years ago | 0

| accepted

Answered
creating sequences of unique integers drawn from an interval, which overlap with other sequences to a ceratin degree
You could use the *intersect* function (type *help intersect* in the Command Window for details) to determine how many elements ...

12 years ago | 0

| accepted

Answered
I am trying to use guide and could use some help with functions in 2014a
You can use the *handles* structure with the *guidata* function to store/save user data to the structure. Try something like th...

12 years ago | 1

| accepted

Answered
HELP!! Error: In an assignment A(I) = B, the number of elements in B and I must be the same.
In the *Homework* function, there are two *Taylors* - the nx1 _vector_ local variable Taylor = zeros(n,1); and the _funct...

12 years ago | 2

| accepted

Answered
How can I shade my plot to the right of a given x value?
The *area* function (type *help area* in the Command Window for details) can be used to shade in a portion of your plot to the r...

12 years ago | 1

Answered
ginput with scroll panel does not work when running from a gui
According to the documentation for *ginput* (type *help ginput* in the Command Window), this function/command _...gets N points ...

12 years ago | 0

| accepted

Answered
how to pinpoint the maximum scalar in a matrix?
One way is to use the *max* command (type *help max*) for details. Suppose you have the following matrix: A = magic(5) ...

12 years ago | 0

Answered
Subscripted assignment dimension mismatch.
The above code seems to be assuming that the images are two dimensional only. Is this a valid assumption, or are the images (or...

12 years ago | 0

| accepted

Answered
i hope i will get good feed back.I have this code to stimulate absorption loss but an alert message displayed.Can you help me please
I was able to run through the above code and it passed without the error that you observed. What the message means is that the ...

12 years ago | 0

Answered
How to read in data / specific data from an awkwardly formatted text file
Hi Helen - since you are only interested in the three lines (of which there are four numbers) and if these lines are common to a...

12 years ago | 0

| accepted

Answered
creating a data array from a matrix
Hi Damith - I'd go with a double *for* loop, pre-allocating memory for the *X* and *Y* vectors: [m,n] = size(matrix1); % whe...

12 years ago | 0

| accepted

Answered
need 'for loop' to check 1:32 bit
Since you are looking for which channels were hit across all stretchers for all events, then you will need two for loops for the...

12 years ago | 1

| accepted

Answered
How do I loop through files saved in my workspace?
Hi Tom - an alternative would have been to save all of these matrices to a cell array and then you could just iterate over it (t...

12 years ago | 0

Answered
matrix C from A and B
If your algorithm is to remove all rows that are common to *A* and *B*, and we are assuming that these two matrices have the sam...

12 years ago | 0

| accepted

Answered
Loop for words vector
You can use the *sprintf* command to do what you require. Just modify your body of the *for* loop from what you have to C{i...

12 years ago | 1

| accepted

Answered
I am trying to use blockproc (A,[8 8 ],dct2) to create a block of 8X8 from A image of 600X800 it does not works as they are telling me that dct2 is not a handle function . what is the exact argument I have to use instead of dct2?
The documentation for the *blockproc* function (see <http://www.mathworks.com/help/images/ref/blockproc.html> for details) indic...

12 years ago | 3

Answered
inner matrix dimensions must agree error in the function?
The first matrix product (in the equation) is the problem. Since *W* is Nx1 and *VCVMatx* is NxN, then W*VCVMtx will fail due t...

12 years ago | 1

Answered
Help with GUI file using Guide
You can use the *guidata* command to save data to the *handles* structure. Note how in the above code, the comment for *handles...

12 years ago | 0

| accepted

Answered
Replacing the column of array elements with NaN.
It seems that the rows of *x* indicate which ranges of values in *A* should be preserved, with the rest of the entries in the se...

12 years ago | 0

| accepted

Load more