Answered
How to Make a board in Matlab
Krish - you could consider using a cell array to represent the characters in your board. For example, n = 12; board = cel...

10 years ago | 1

| accepted

Answered
How to build a timer in GUI?
Meng - the full error message includes the text Index exceeds matrix dimensions. which tells you that the code is trying ...

10 years ago | 1

| accepted

Answered
how can i solve this probleme :??? Attempted to access degree(100); index out of bounds because numel(degree)=1
ali - you may want to verify that the above code is correct because from the looks of it, there are four *for* loops that are us...

10 years ago | 2

| accepted

Answered
transfer a table into a text file
me - try using <http://www.mathworks.com/help/matlab/ref/writetable.html writetable> which will write the table to a comma delim...

10 years ago | 0

Answered
selecting random part of string
Max - use *randperm* to generate a random index into your character array. Try the following alphabet = 'abcdefghijklmnopqr...

10 years ago | 0

| accepted

Answered
Using the Bisection Method,calculating xr and approximate errors???
Onur - if the problem is because you don't have an *xr* on the first iteration of the *while* loop, then just wait until you do....

10 years ago | 1

| accepted

Answered
Getting rid of the for loop
Max - please include all of your code and describe what the above is intended to do. It appears to be some sort of factoring (?...

10 years ago | 1

| accepted

Answered
In an assignment A(I) = B, the number of elements in B and I must be the same. Error in odev_3_c (line 9) fprime(1)=x.*cos(3*x);
Gökhan - if you step through your code using the MATLAB debugger, you will be able to identify the problem. The error message is...

10 years ago | 0

Answered
Help writing a for loop to calculate trapezoid rule at from different rows
Nicholas - you have read the *D* and *E* column data into *XS* and *YS* respectively, and so you are required to process subsets...

10 years ago | 0

Answered
need to create a loop with on this problem
João - are you looping over the values of *f* so that different values of *T*? If that is the case, then try the following ...

10 years ago | 0

Answered
Random numbers from array
Mohammed - just use <http://www.mathworks.com/help/matlab/ref/randperm.html randperm> to generate four random numbers that you c...

10 years ago | 3

| accepted

Answered
I want change range axes;;
rollcakes - use the <http://www.mathworks.com/help/matlab/ref/axis.html axis> function to change the limits for each axis. For ...

10 years ago | 0

| accepted

Answered
Play a wav audio file and duplicate speed for part of it and keep the rest running with the orginal speed in MATLAB
Hussein - I'm guessing that your (2:7) is just an example and that you really want to speed up more than just the 6 samples of d...

10 years ago | 0

Answered
Loop to create matrix with 2 inputs and 2 outputs
Colby - you almost have it. Your code for the two *for* loops is as follows for TINT = 1000:1700 TINT = TINT ...

10 years ago | 2

| accepted

Answered
Hi everyone, Can anybody help me to plot ??
Adarsh - do you really want to give colour for each hour? Wouldn't you rather have colour for each of the 20 columns of data an...

10 years ago | 0

| accepted

Answered
How to plot lines for each category in a table?
Why do you need a one line command to plot the data since there are only three countries? Can't you do something like the follo...

10 years ago | 1

Answered
I want to combine two or more row with same first column in the matrix .
zainab - there are several ways to solve this problem. You can use <http://www.mathworks.com/help/matlab/ref/unique.html unique...

10 years ago | 0

Answered
Using for loops in MATLAB?
Nick - if you have everything working up to part d, then why have you commented out part b? As for part d, look closely at wh...

10 years ago | 2

| accepted

Answered
load txt files with columns of numbers and text
Katerina - what are you trying to do with the contents of each file? From your above code, it appears that you read each file a...

10 years ago | 0

| accepted

Answered
How to enter any word "welcome" to an image??
Shimaa - see Daniel Warren's File Exchange submission at <http://www.mathworks.com/matlabcentral/fileexchange/40959-add-text-to-...

10 years ago | 0

Answered
I want to read out all my output from function defined script
Adedapo- perhaps I'm misunderstanding something, but I think that if you just want all four output parameters from your *plot_ic...

10 years ago | 0

| accepted

Answered
How to create a matrix from a vector using specified values
John - since it is unlikely that each stride has the same number of hip angles, you may want to use a cell array to store the da...

10 years ago | 0

| accepted

Answered
GUI help with loading .mat file
scurvy - the error message is telling you that the callback function *onFileOpen* (and *onFileExit*) cannot be found either beca...

10 years ago | 0

Answered
Process input string?
Nam - if your input string consists of +, =, and space characters, then use <http://www.mathworks.com/help/matlab/ref/strrep.htm...

10 years ago | 0

Answered
Plotting .wav on MATLAB and converting to array
John - according to <http://www.mathworks.com/help/matlab/ref/audioread.html?searchHighlight=audioread#outputarg_y audioread out...

10 years ago | 0

Answered
how can solve this probleme ??? Undefined function or variable
Ali - you can easily make data available in other callbacks by using the *handles* structure (which is passed as the third param...

10 years ago | 0

Answered
rbg2gray problem when reading .png files
Rayne - you say that you observe the above errors when you use your own _greyscale_ images. Why would you call <http://www.math...

10 years ago | 0

| accepted

Answered
find matching values plus minus percent
yousef - if you have an array of elements that you wish to determine are within 5 percent of another number, you may be able to ...

10 years ago | 0

Answered
How can I plot 3 signals one after another in on the same graph?
Tudor - you could create the figure outside of the *for* loop and apply the <http://www.mathworks.com/help/matlab/ref/hold.html ...

10 years ago | 0

| accepted

Answered
Creating a text matrix
Matthew - yes, MATLAB can create a matrix (or a multidimensional cell array) of text strings. See <http://www.mathworks.com/hel...

10 years ago | 0

| accepted

Load more