Answered
How to compute bowling game score
Surya - you may want to reconsider the lines lastwasstrike = games(:, 19) == 10; games(lastwasstrike, 21 : 22) = games(la...

11 years ago | 0

Answered
Using a function in ian inputdlg
Gina - the <http://www.mathworks.com/help/matlab/ref/inputdlg.html inputdlg> function returns a cell array, so you will have to ...

11 years ago | 0

Answered
Make the Slider Move as the Music is Playing
If you are using the <http://www.mathworks.com/help/matlab/ref/audioplayer.html audioplayer> to play the music, you can always a...

11 years ago | 2

| accepted

Answered
How to get different input, depending on the last input
ali - you could use a <http://www.mathworks.com/help/matlab/ref/while.html while> loop to get the user to say/input 'hello' and ...

11 years ago | 0

| accepted

Answered
I am writing a code for DFT and getting this error. 'subscript indices must either be real positive integers or logicals'. My code is as under. Can somebody help me with it? I have used both logical and round commands but still getting the same error
Hafsa - I can run your above code without any errors, so please clarify at which line the _subscript indices must either be real...

11 years ago | 0

| accepted

Answered
Replacing nans and greater than
Nicole - the easiest (but not necessarily most efficient) way is to just iterate over each element of the second column and appl...

11 years ago | 0

| accepted

Answered
How do I get my input from my initial function to be read by my helper function ie (n,mu,sigma)?
Dan - look closely at the assignment instructions. The function *getValidArgs* is a function that _accepts a variable number of...

11 years ago | 0

| accepted

Answered
how can i define this shape
Zablh - you can use the <http://www.mathworks.com/help/matlab/ref/area.html area> function to get the desired shapes. Try the f...

11 years ago | 0

Answered
Matlab implementation of: Genetic Algorithms- binary representation- proportional selection
Stefan - check out the MATLAB <http://www.mathworks.com/matlabcentral/fileexchange/?s_tid=gn_mlc_fx File Exchange> for several i...

11 years ago | 0

Answered
How to make a dictionary of arrays?
Solarmew - the default _KeySet_ type for a container is *char* (see <http://www.mathworks.com/help/matlab/ref/containers.map-cla...

11 years ago | 2

| accepted

Answered
Draw arrow in a plot
Francisco - you may want to read the documentation on <http://www.mathworks.com/help/matlab/ref/annotation.html annotation>. Yo...

11 years ago | 2

| accepted

Answered
how to use "strfind" to search for a word?
amr - <http://www.mathworks.com/help/matlab/ref/strfind.html strfind> returns the starting index of the _pattern_ within the str...

11 years ago | 0

Answered
single cross over function for genetic algorithm
Abdulla - since you want a single crossover point in your list of variables, then using *crossoversinglepoint* seems like the co...

11 years ago | 0

| accepted

Answered
uicontrol question: Slider only acts on last Figure, does not act on Figure it's associated with.
Tom - I'm not sure why you see figures 1, 2, and 5 as when I run the code, I see figures 1 through 3. Perhaps you have two figur...

11 years ago | 1

| accepted

Answered
how i can take part of email address
abdulkarim - you can use <http://www.mathworks.com/help/matlab/ref/strfind.html strfind> or <http://www.mathworks.com/help/matla...

11 years ago | 2

Answered
Fast ways to generate multiple sequences without using for loop
Thang - you could use a combination of <http://www.mathworks.com/help/matlab/ref/arrayfun.html arrayfun> with <http://www.mathwo...

11 years ago | 1

Answered
how can I display an equation with the constants in the title
Amruta - you can try using <http://www.mathworks.com/help/matlab/ref/sprintf.html sprintf> to create a string equation. Somethi...

11 years ago | 0

Answered
Same color marker for each pair of dataset
dewio - since you are using the *scatter* and *plot* functions only, then you can define the colour that you want to use for eac...

11 years ago | 0

Answered
how i can call back the value that come out at comand window to do if else command to dialog box
Nur - you could try using <http://www.mathworks.com/help/matlab/ref/lasterror.html lasterror> or a <http://www.mathworks.com/hel...

11 years ago | 0

Answered
How to get calculations in workspace from GUI?
Adi - instead of writing your variables to the workspace, why not just save the results (of the 2400 seconds) to a mat file usin...

11 years ago | 0

| accepted

Answered
findout missing values in between a contenous matrix
navan - if you are just trying to find the missing elements of *A* if 1 is the minimum value and 20 is the maximum value, then y...

11 years ago | 0

Answered
optimization toolbox-quick question
B - have you looked at the documentation found at <http://www.mathworks.com/help/gads/ga.html ga>? The first example discusses ...

11 years ago | 0

| accepted

Answered
Selecting a triangle from a mesh using ginput(1)
Vijay - according to <http://www.mathworks.com/help/matlab/ref/tsearchn.html tsearchn> there are only three inputs to the MATLAB...

11 years ago | 0

| accepted

Answered
GUI: Editting Value in a textbox
Nour - you could _get_ the value from the edit text control, then append or concatenate the second character to it, and _set_ th...

11 years ago | 0

Answered
Getting errors in a code...
harpreet - please describe the steps that you are following that lead to the above error. Are you able to run the software in M...

11 years ago | 0

| accepted

Answered
How to play my video while my graph animates?
matlabuser12 - rather than calling the *movie* function, you may want to display the frames yourself so that when a frame appear...

11 years ago | 0

Answered
converting cell string into number
abdullahi - you can try the following code which iterates over each element in the cell array and splits each string into single...

11 years ago | 0

Answered
LSB steganography : i can't extract the original messages
Arjun - I suspect the problem is with the line imwrite(s, '111.jpg'); You are saving *s*, the image with the secret mess...

11 years ago | 1

Answered
copy matched data with multiply\duplicate
amr - There are several ways to do this. If we assume that the first column is in ascending order (will this always be true?), ...

11 years ago | 1

| accepted

Answered
Sudoku Solver - SciLab - Error 4
Jonas - line 24 of your recursive *solve* function looks like solve(board) // and we repeat until check(b...

11 years ago | 0

| accepted

Load more