Answered
Changing the contrast and removing salt and pepper?
None of these operations are particularly difficult, at a minimum a blur with a gaussian or a median filter will remove the salt...

10 years ago | 0

Answered
"Error, Not enough input arguments"
Assuming that line 14 is the first line of code of your function: Original_Picture = RGB; The error message is telling ...

10 years ago | 0

Answered
starting location of vector
This is a variation on run length encoding, for which you'll find plenty of functions on the <http://uk.mathworks.com/matlabcent...

10 years ago | 0

| accepted

Answered
How to replace RGB values
To go from the colour image to a grayscale image, assuming you have the original colour bar, use <http://www.mathworks.com/help/...

10 years ago | 1

| accepted

Answered
Table won't sort?
1) The columns of your table appear to be mislabeled since the Year appear to be months (or is it days), the Month column appear...

10 years ago | 0

Answered
Undefined function 'preview' for input arguments of type 'struct'.
|preview| does not appear to be a function of base matlab nor any of its toolboxes, so it must be a function that you've written...

10 years ago | 0

Answered
I would like to extract each character from a text file. Later convert each character(in ASCII) to binary and store the binary form in an array.
Note that computers store characters and numbers in binary form, so it's not clear what you mean by _"convert it to binary"_. ...

10 years ago | 0

Answered
store images in a table
You've created an empty table (no columns or rows) and are then trying to index into it using row names it knows nothing about. ...

10 years ago | 0

Answered
Subscript indices must either be real positive integers or logicals.
It would help if you posted the code that causes the error. From the little information you've given (you want to sum), it's imp...

10 years ago | 5

Answered
row addition on matrix
Your |jj| should go from 1 to 4 or better from 1 to |size(H, 1)|, not 1 to 6. The loops are a complete waste of time in any case...

10 years ago | 1

Answered
how can i calculate the rms of a vector ?
You get 0 because the last value in |v| is 0 and your vs is just the last value of v squared. Notice that |sum(v(i))| is just |v...

10 years ago | 1

| accepted

Answered
How to use if-then with matrix indices
You certainly don't need a loop to generate your |a|. a = ones(n) * 8; %default value everywhere [row...

10 years ago | 0

| accepted

Answered
extracting particular row and column
Do you mean? b = a(1:4:end, :)

10 years ago | 0

| accepted

Answered
check status of csvread
Wrap the call to |csvread| in a <http://www.mathworks.com/help/matlab/ref/try.html |try ... catch| block>: try m = csv...

10 years ago | 0

Answered
How to repeat rows of a matrix sequentially?
A simpler method than Roger's x2 = repelem(x, 20)

10 years ago | 0

Answered
How can I replace value in array by graphic file(pattern)?
1. Load your four patterns into a cell array however you want, e.g: patterns = cell(1, 4); for patidx = 1:4 patter...

10 years ago | 1

Answered
how to get combination of matrix columns
Why are 1 and 4 singled out specifically? As this sounds like homework, I'm not giving you the code, but you can simply: ...

10 years ago | 0

Answered
can anyone suggest me how to convert binary value to gray code value??
The <https://en.wikipedia.org/wiki/Gray_code wikipedia article> gives a <https://en.wikipedia.org/wiki/Gray_code#Converting_to_a...

10 years ago | 1

Answered
I have this error "In an assignment A(I) = B, the number of elements in B and I must be the same."
If |areas| is anything but a vector or scalar, then the return values of |max| *are not* scalar. See: areas = magic(3) [...

10 years ago | 0

Answered
Setting Access Properties for Structured Variable
No, it's not possible to set access attributes on structure fields. You can only do that on class members. Moreover, I doubt ...

10 years ago | 1

| accepted

Answered
Cell contents assignment to a non-cell array object.
nw{'xl'} = ... is not valid matlab syntax. Why are you indexing a cell array with a string? Note that while nw('xl'...

10 years ago | 0

| accepted

Answered
can anyone tell me which toolbox in Matlab2016 contain function "dtw" ?
Since R2015(b?), a simple way to find out which toolbox you're missing for a particular function is simply to type that function...

10 years ago | 0

Answered
Help accessing a function block parameter in Simulink
I know nothing about simulink, but as I've said you can't have a forward slash in any part of a directory name or file name (or ...

10 years ago | 0

Answered
What does Out of range or non-integer values truncated during conversion to character mean and how to solve it?
Your |raw2| cell array contains numerical values in column 1. |strcat| interpret these values as character codes (e.g. it transl...

10 years ago | 0

Answered
How to debug Error in returning value?
The error is very clear: Heart_Rate[:,K] is not valid syntax. Possibly you meant Heart_Rate(:,K)=heart_rate Not...

10 years ago | 0

Answered
Store different size arrays in a matrix according to index in a loop
Since you know maximum |x| you can predeclare your final array: maxx = 1601; out = nan(1, maxx); Then it's just a mat...

10 years ago | 0

Answered
If I use a student version of Matlab for class, can I use the same version during an internship?
I would guess not, but as most of us who answer questions on this forum have no affiliation with matlab you won't get an officia...

10 years ago | 1

Answered
Table variable comparison.
1) Do not use |==| to compare strings, use |strcmp| 2) This is not how you index tables at all %if you want all the colu...

10 years ago | 0

| accepted

Answered
How to divide large data in small intervals?
It's not very clear from your question that you want to bin the second column in bins of width 1, and you haven't given a criter...

10 years ago | 0

| accepted

Answered
Find the largest number adjacent to a 0 in a vector
I would simply |find| the positions of all the zeros, add +1 and -1 to these positions and concatenate into a vector, use that v...

10 years ago | 1

Load more