Answered
how to call functions saved in other m.file in gui?
AFFY - you mention that *img1* where img1=(im2bw(I,0.9)); and that *I* was assigned an image in another pushbutton callb...

11 years ago | 0

Answered
Adding uitable checkboxes to certain cells or rows instead of columns
Christian - see Azzi Abdelmalek's answer from <http://www.mathworks.com/matlabcentral/answers/65163-how-can-i-create-an-uitable-...

11 years ago | 1

Answered
I am trying to run a GUI that allows the user to choose from a popup menu. The code then gets their choice and goes through some if and else if statements.
James - you have left out the line of code in the *popupmenu1* callback that initializes the local variable *contents*. Your ca...

11 years ago | 0

Answered
matlab toolbox econometrics unavailable
Vipul - according to <http://www.mathworks.com/help/econ/release-notes.html Econometrics Toolbox release notes> the *jcitest* wa...

11 years ago | 0

| accepted

Answered
kstest2 - Undefined function 'kstest2' for input arguments of type 'double'.
Joao - the <http://www.mathworks.com/help/stats/kstest2.html kstest2> function is part of the *Statistics Toolbox*. Do you have...

11 years ago | 1

| accepted

Answered
somebody help me out the following code is throwing some error?
Sai - I think that you are trying to do too many *imreads*. Note that you initialize *imdataPositive* as for a=1:length(dCe...

11 years ago | 0

| accepted

Answered
cipher in iamge using matlab code
mays - you don't need to convert the image into binary. Just use the MATLAB <http://www.mathworks.com/help/matlab/bit-wise-oper...

11 years ago | 0

Answered
Writing a custom Selection Function for a Genetic Algorithm problem
Renovatio - I don't have the *Global Optimization Toolbox*, but I suspect that you have to do something like the following (note...

11 years ago | 0

Answered
f(x) = (sin(x))^0.5
Austin - in your question, you indicate that the domain for *x* is [-10,10], yet you have x2=-10/pi:2*pi:10/pi; which (w...

11 years ago | 1

| accepted

Answered
How can i delete a selected portion in an image and then paint it green?
Sandeep - if you know the region of the region that needs to be coloured green (and if we assume that the region is rectangular)...

11 years ago | 0

Answered
How to display all the while loop at static text? (matlab GUI)
Abraham - if you step through this code (which is presumably in some sort of callback for one of your GUI controls) you would ob...

11 years ago | 1

Answered
how to add hyperlink for images in excel ??
Abdalla - see <http://www.mathworks.com/matlabcentral/answers/22768-add-a-hyperlink-in-excell-through-matlab> for examples on ho...

11 years ago | 0

| accepted

Answered
How to set specific values from 3 edittextbox to 4 radio button (total of 12 static outputs).
Charlston - the line of code (presumably) returns the user entered frequency (in Hertz) hz=get(handles.editFrequency,'String...

11 years ago | 0

| accepted

Answered
How to invert intensity values of a scalar frame?
Vignesh - if the data type of each pixel in your image is an 8-bit unsigned integer, then just subtract these pixels from 255. ...

11 years ago | 0

| accepted

Answered
problem with wavread (.wma and .wav file)
Shahnaz - you can't just change the extension of the *wma* file to *wav* and expect to be able to read the file as if it were a ...

11 years ago | 0

Answered
How can I handle multiple files at their import ?
Dimitris - if *msg2* is set to 'exit' then strcmp(msg2,'exit') will always return 1 and so the code will never exit the ...

11 years ago | 0

| accepted

Answered
Simple question about curve fitting
aurc89 - find the indices of *x1* and *x2* within your *x* vector and then fit the curve against *x* and *y* using these indices...

11 years ago | 0

| accepted

Answered
How can I make sure that Matlab does not change the values of array in the workspace?
Aydin - MATLAB isn't changing the values, it is just that how they are displayed (the <http://www.mathworks.com/help/matlab/ref/...

11 years ago | 0

| accepted

Answered
how to count number of elements greater than ?
Menna - rather than using *find* just use the greater than operator to determine which elements of *form* are greater than 0.8 a...

11 years ago | 5

Answered
i'm getting Error using ga (line 305) help me
Arunachalam - the error message is telling you that the tenth parameter/argument to the *ga* function is not the _options_ objec...

11 years ago | 0

| accepted

Answered
how to solve this issue ((((Undefined function 'm_shaperead' for input arguments of type 'char'))))
Reyadh - given the error message, it sounds like you no longer have this file or it isn't within the MATLAB search path. In the...

11 years ago | 0

| accepted

Answered
Title of figure with subplot title
Partha - if you are trying to give your figure (composed of several subplots) a title, then consider using the function <http://...

11 years ago | 1

| accepted

Answered
genetic algorithm coding help error no enough input arguments?
Arunachalam - your function has to many input arguments. Look at the description for the <http://www.mathworks.com/help/gads/ga...

11 years ago | 0

Answered
Fortran Mex file using GNU gfortran 4.3
Kyrollos - try using Fortran 4.8.2. I have been able to install it and use it for R2014a on OS X 10.8.5.

11 years ago | 0

Answered
How to play video at specific timestamp?
matlabuser12 - consider using <http://www.mathworks.com/help/matlab/ref/videoreader.read.html VideoReader> to read the data from...

11 years ago | 0

Answered
How to use tofloat ?
Amrinder - I don't think that *tofloat* is a built-in function of MATLAB (for the base version or any of its toolboxes). Is you...

11 years ago | 0

Answered
Matlab GUI: Plot bounds change but graph stays the same.
Ian - look closely at the code in the slider callback a = get(handles.slider1, 'Value'); axes(handles.axes1); plot(t * a...

11 years ago | 0

| accepted

Answered
Calling a class method from a GUI
Wooshik - I suspect that what is happening is that you have defined your *obj* object either in the base workspace (outside of t...

11 years ago | 0

| accepted

Answered
Mid stream video stream slider change
Nandini - see <http://www.mathworks.com/matlabcentral/answers/153278-discretizing-matlab-slider-gui> for an example of assigning...

11 years ago | 0

Answered
JPEG file into an array
Owen - when you read the JPEG image with <http://www.mathworks.com/help/matlab/ref/imread.html imread> the output from this func...

11 years ago | 0

| accepted

Load more