Answered
How do i do real time recording and plotting?
Nevin - see <http://www.mathworks.com/matlabcentral/answers/156656-how-to-trigger-the-microfone-to-record-via-gui-s-pushbutton h...

12 years ago | 0

| accepted

Answered
can not find problem in code
Shanice - I noticed that you had commented out most of the code, but there did seem to be some lines outside of the *function ne...

12 years ago | 0

Answered
How getting coordinates of geagraphical locations?
Pietro - if you know the country code for the city, then you could try the following function which makes use of the Yahoo GeoPl...

12 years ago | 0

| accepted

Answered
I have a code but now sure how it works please help
Etan - is *a* the 3x3 matrix that you are referring to? If it is, then sum(a,2) calculates the sum of each row, returni...

12 years ago | 1

| accepted

Answered
I seem to be having an error using movie2avi (even using the example shown in Matlab Help) What could be the issue?
Matt - the zooming in of the figure that occurs when you execute *movie(mov)* may be due to the fact that the figure that the mo...

12 years ago | 1

| accepted

Answered
How do I alter myEuler.m to calculate M and plot the solution?
Summer - if you want the script to calculate *M* rather than passing it in as a variable, then you will have to replace it with ...

12 years ago | 0

Answered
How do I clear a temporary PTR Struct in FORTRAN called my Matlab
Rick - try using <http://www.mathworks.com/help/matlab/apiref/mxdestroyarray.html mxDestroyArray> to free the memory allocated b...

12 years ago | 0

| accepted

Answered
Evalin Loop Workspace fints
Davin - have you tried stepping through the code to see what is happening? Let's suppose that you have a function called *myFu...

12 years ago | 0

| accepted

Answered
Building a set of simple moving averages using a loop
Quantopic verified that the *vector* variable was of type double. As it was unclear how the *SMAvector* variables was declared,...

12 years ago | 0

| accepted

Answered
Accessing a cell array of cell arrays in a C++ mex file
John - check the function signature for <http://www.mathworks.com/help/matlab/apiref/mxgetcell.html mxgetcell> - it returns a po...

12 years ago | 1

| accepted

Answered
What should I revise on my short code so that matlab can depict the given complex spectrum?
Leslie - look closely at how you are defining *omega* omega=0:0001:1 The step size is 0001 or just 1, and so *omega* is a...

12 years ago | 0

Answered
count lines of code for entire project
Neesha - try using David Roberts' FEX submission <http://www.mathworks.com/matlabcentral/fileexchange/23837-slocdir slocDir> whi...

12 years ago | 1

| accepted

Answered
A PB GUI enters the callback routine, upon completin of the callback routine, it jumps to the gui_mainfcn.m..I expected it to return to the GUI without calling the gui_mainfcn.m
Gary - the behaviour you describe, _.....when it finishes that line of code, it then jumps/calls the gui_maninfcn.m which then w...

12 years ago | 0

| accepted

Answered
Why do we have a negative range in normalized cross correlation formula
Rakesh - you won't have negative indexing if you pad your array (using, for example, <http://www.mathworks.com/help/images/ref/p...

12 years ago | 1

Answered
add Summary statistics on a plot
csoki - it sounds like you want to just add the statistics outside of the axes that contains your plot. You can try the followi...

12 years ago | 1

| accepted

Answered
how to accumulate results from if, end
imola - just define an empty array outside of your *for* loop, and add the point that is inside the rectangle to this array when...

12 years ago | 1

| accepted

Answered
condition in while loop
Mudasir - you can try the following if you want to break out of the loop if any of your chromosomes obtain a certain value (or g...

12 years ago | 0

| accepted

Answered
Variables in call to mex
Anders - the way you are doing this is probably leading to some warnings such as ld: warning: directory not found for option...

12 years ago | 0

| accepted

Answered
how do i keep the click order on a uigetfile selection?
Mat - I don't think that you can maintain that order using the *uigetfile* as is. The order in which the files are returned (wh...

12 years ago | 0

Answered
How to retrieve startup options of current matlab session?
Camilo - you can try using the <http://www.mathworks.com/help/matlab/ref/usejava.html usejava> command to determine if a specifi...

12 years ago | 0

| accepted

Answered
Recursively generating permutation matrices
Tom - you could try the following recursive function that rearranges all columns so that all permutations of the m columns are c...

12 years ago | 1

Answered
i have two buttons to search different directories but the second button cant add more variables to the guidata
Steven - in your second callback, look closely at the *guidata* call guidata(hObject, handles2) The second parameter is n...

12 years ago | 0

Answered
How to export an array text which created by a string and numbers to excel?
Khanh - you almost have it. *w1* has been (correctly) defined as a cell array, it is just the vertical concatenation that is fa...

12 years ago | 2

| accepted

Answered
i have a input problem.Cannot call INPUT from EVALC. in my code
Alejandro - I copied your file and opened it in the MATLAB editor. On the Publish tab, I pressed the *Publish* button and obser...

12 years ago | 5

Answered
How to install SeDuMi 1.3 on MATLAB R2014a, and MAC OS X 10.9.5
Hessam - I downloaded the SeDuMi 1.3 source code, ran the *install_sedumi*, as you did, and observed the same error. This was f...

12 years ago | 3

| accepted

Answered
Multiple legends with a variable in a figure legend
Raj - the code plot(x1, y1,'o', 'DisplayName', sprintf('x1-y1; i-10:i; i=%d', i), ... x2, y2,'x', 'DisplayName', sp...

12 years ago | 0

| accepted

Answered
How to execute a while loop?
Christianne - when you ask _how to execute a while loop_, what exactly do you mean? Do you mean that the *while* loop is not be...

12 years ago | 0

Answered
Mex compile problem on Mac 10.9
James - I tried compiling your code using R2014a with OS X 10.8.5 and observed the same error message >> mex CCVSR.cpp Bui...

12 years ago | 2

| accepted

Answered
run a bash script from matlab
Knut - suppose that you have a bash script written as follows #!/bin/bash args=("$@") echo Number of arguments p...

12 years ago | 1

Answered
matlab program for comparison and loop
Mudasir - from your roulette selection scheme to select parents, where the vector *R* seems to be the randomly assigned values (...

12 years ago | 0

| accepted

Load more