Answered
canot convert image to movie frame using 'im2frame'
Fitroh - according to the documentation at <http://www.mathworks.com/help/vision/ref/vision.videofilereader-class.html vision.Vi...

12 years ago | 0

Answered
Memory leak with matlab file creation??
Abdellatif - for every *mxCreate...* that creates an *mxArray* you need to call *mxDestroyArray* on that array. You will need t...

12 years ago | 0

Answered
Installation of SVMstruct: mex command not found
Pia - did you download *svm-struct-matlab-1.2*, or a previous version? Have you built MEX functions before, or is this the firs...

12 years ago | 0

| accepted

Answered
how to define fitness function in ga tool box???
See the documentation at <http://www.mathworks.com/help/gads/ga.html Find minimum of function using genetic algorithm>. The bas...

12 years ago | 0

Answered
how to put several image into one figure.
Mehdi - if all of your images have the same dimension (all are mxn) then you could do something like the following m = 1...

12 years ago | 0

Answered
How can i capture my pc screen in real time?
Daniele - consider using Chethan Pandarinath's MATLAB FileExchange submission <http://www.mathworks.com/matlabcentral/fileexcha...

12 years ago | 1

Answered
Compiling Mex files in Mac 10.9
Kamil - I observed the same error when running *Make* (from the terminal window, in the folder /Users/geoff/.../svm-struct-matla...

12 years ago | 0

| accepted

Answered
New to GUIDE in MATLAB, Frustrated by error...
Noel - the error message is telling you that your code is trying to reference non-existent fields in the *handles* structure. S...

12 years ago | 0

| accepted

Answered
How to move the mouth of pacman?
Airas - yes, you could use *mod* to determine the state of the packman. Referring back to your question at <http://www.mathwork...

12 years ago | 0

Answered
Changing the values on an axis in Matlab 2014b
Attila - looking at the documentation for <http://www.mathworks.com/help/matlab/creating_plots/change-tick-marks-and-tick-labels...

12 years ago | 0

| accepted

Answered
Can I set a figure maximum in GUI layout editor?
Khanh - if you are using GUIDE, then open the property inspector for the figure/GUI, and change the *Units* property to *normali...

12 years ago | 0

| accepted

Answered
Subscript indices must either be real positive integers or logicals.
Jhilam - I can't run your code since I don't have the *Image Processing Toolbox* (needed for *getpts*), but the error message i...

12 years ago | 0

| accepted

Answered
Why does this bilinear interpolation algorithm have two Y(i,j) outputs (i.e. Y(i,j)=I(ceil(y),ceil(x)) and Y(i,j)=(y-y2)*P+(y1-y)*Q )? How difference are they ?
OL - look closely at the *if* condition (floor(x)==0)||(floor(y)==0)||(ceil(x)==originwidth)||(ceil(y)==originheight) As ...

12 years ago | 0

| accepted

Answered
make interval from data points for plotting
Ali - if you want to determine where the next interval should begin, you could consider the difference between each element. Wh...

12 years ago | 0

| accepted

Answered
how to slid filter window of 3*3 over the pixels of image.
Ravneet - try using <http://www.mathworks.com/help/matlab/ref/conv2.html conv2>. Using your example from above, we would do ...

12 years ago | 1

Answered
Why does get(handles.editbox, 'String') return a char when the box is empty but a cell for all other cases?
Nicholas - I suspect that this is expected behaviour. If the edit box control allows for multiple lines (because the *Max* prop...

12 years ago | 0

| accepted

Answered
new to mesh2D, error msg
John - *mesh2d* isn't a standard MATLAB function, and is a function that you can obtain from the MATLAB File Exchange. Try <htt...

12 years ago | 0

Answered
Hide legend entries with addaxis function
Edward - *addaxis* returns a handle to the axes, and not the line that was drawn on that axes. Since there is only one line dra...

12 years ago | 1

| accepted

Answered
How to record and analyze audio in real-time?
Yanping - when I've used the audio recorder object to record from my microphone, I just add a timer object to the recorder. Then...

12 years ago | 0

| accepted

Answered
How do I access the arguments passed in mexFunction in MATLAB
Anton - look closely at the function signature, and in particular the last input parameter const mxArray * prhs[] So *prh...

12 years ago | 2

Answered
GUI with nested functions: Writing Values to Base-Workspace and running a Script afterwards
René - since you _just want write a variable from a nested Function (because of the User Input) an then run a foreign Script tha...

12 years ago | 0

Answered
nested loop in eval command and generalized the programme
Mudasir - you should consider using matrices to manage your chromosome data, rather than creating individual variables. If we a...

12 years ago | 0

| accepted

Answered
uicontrol used to create a checkbox, how to program this checkbox via Guide.... the Callback for checkbox is not in the M file
Gary - rather than creating 40 callbacks, you could just use the same one for each of the 40 checkboxes. Try the following ...

12 years ago | 3

| accepted

Answered
What is wrong with my code for the bisection method!!?
Britney - the error message is telling you that you are trying to access an array named *int* with an index that is not positive...

12 years ago | 1

| accepted

Answered
Made a text encryption program in school, it works for short words but when I fill in complete sentences (or really long words) something goes wrong
Thomas - your code (which is neat!) does a number of conversions from numbers to strings and back again to numbers. As you ment...

12 years ago | 0

| accepted

Answered
Making the value approaches to 0 as K increases.
Aftab - If you want to slow down epsilon's approach to zero as *k* increases, then you could do something like the following ...

12 years ago | 0

| accepted

Answered
How can I decide the next problem?
Elina - the error message is telling you that you are not providing enough output variables given the input fields. Looking at ...

12 years ago | 1

| accepted

Answered
How to pass the variables to data cursor's updatefcn (datacursormode) in MATLAB GUIDE.
Chloe - note the following three lines of code dcm_obj = datacursormode(fig); datacursormode on set(dcm_obj,'UpdateFcn',...

12 years ago | 0

| accepted

Answered
How do you access the string of an edit box from one gui, in a callback associated with another gui?
Jonathan - there are a couple ways of doing this. See <http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_f...

12 years ago | 1

| accepted

Answered
how can I plot a signal on GUI axes?
John - if you have a timer for your audio recorder, where the timer fires (for example) every one second (as discussed in your p...

12 years ago | 0

Load more