Answered
How can I do this : { [5] [6] [7] [8:23] [24:39] [40:55] } --- these number are just an example
First, learn to read the documentation. The documentation that you linked clearly says that: _"The data type [...] must be a MAT...

11 years ago | 0

Answered
data points inside a pyramid
We're going round in circles. Your solid (which is a tetrahedron by the way, not a pyramid) is uniquely defined by 4 four points...

11 years ago | 0

| accepted

Answered
how to remove repetition in matrix without changing length
with the size of your matrix, a brute force approach of generating a new permutation until it matches your requirement seems fea...

11 years ago | 0

| accepted

Answered
Problems with saving unsigned 16 bit image data
The bad news first: the problem is with your ROS software which does not decode PNG images properly. Most likely, your software ...

11 years ago | 3

| accepted

Answered
convert values to string
Simply, groupLabels = labels(groupValue);

11 years ago | 0

| accepted

Answered
taking multiple column to form a struct
First, |f==1| is a no-op, it's exactly the same as |f|. Note that |DataCube{:, 1:6}| returns 6*number or rows individual valu...

11 years ago | 0

Answered
Extract the Maximum Column elements of every Row
Your wording is rather poor. It looks like what you want to do is for each *unique* value in the first column find the correspo...

11 years ago | 0

| accepted

Answered
Assemble of a vector into a matrix
v = [1;2;3;4;5;6;7;8;9]; vv = mat2cell(v, ones(numel(v)/3, 1) * 3, 1); A = blkdiag(vv{:})

11 years ago | 0

Answered
How to Calculate Moving Product?
One way to achieve what you want: function mp = movingproduct(v, windowsize) %add input validation code vv = re...

11 years ago | 1

Answered
How can I find the multiplicity of a divisor N.
factor(8) Possibly, your question is not clear.

11 years ago | 1

| accepted

Answered
How to find exponent of a function?
Your question does not make much sense. If you have two unknowns you need at least two equations. Otherwise, you can just choose...

11 years ago | 0

Answered
Find NaN elements (NaN-islands) in the middle of a matrix and substitute them with linearly interpolated values.
There was a <http://www.mathworks.com/matlabcentral/cody cody> problem recently very similar to this: <http://www.mathworks.com/...

11 years ago | 0

Answered
MATLAB not saving matrix as .txt correctly
You must have been looking at the text file with notepad. Any more sophisticated text file reader (e.g. <https://notepad-plus-p...

11 years ago | 0

| accepted

Answered
Can't get all the rows in my table that have any missing values and remove those rows
|badRows| is an m*n logical array, where m is the number of rows and n the number of columns of your table. So it has m*n elemen...

11 years ago | 1

Answered
How can i convert a matrix to a specific feature with matlab
Spaces, commas, semicolons are all syntactic elements that are not part of the data that is stored in a matrix. It's only used a...

11 years ago | 0

Answered
Delete row if element is out of specified range
First a comment on your code: for i = 1:length(nmat) In my opinion, |length| should be removed from matlab. There are cl...

11 years ago | 1

Answered
how to convert the rgb in to gray for this code?
How about <http://www.mathworks.com/help/matlab/ref/rgb2gray.html |rgb2gray|>?

11 years ago | 1

Answered
append/save same variable with updated values into .mat file(row-wise)
The proper way to do what you want is to use <http://www.mathworks.com/help/releases/R2015b/matlab/ref/matfile.html |matfile|> w...

11 years ago | 3

| accepted

Answered
How to place multiple csv files along coloum, side by side, in a single file.
csv is a text format, and as all text formats it is written to file line by line. Therefore to do what you want, you have no cho...

11 years ago | 1

| accepted

Answered
how bsxfun works? the result is weird.
I don't see any bug in |bsxfun| and to me the result is entirely expected, although it would be better if the documentation gave...

11 years ago | 0

| accepted

Answered
How to Loop in Reverse?
for letter = fliplr('aluminium') disp(letter) end

11 years ago | 0

| accepted

Answered
How to put data from different structures in one matrix?
I know that a lot of people advocate using dynamic field names but in my opinion they are just as bad as dynamic variable names....

11 years ago | 0

| accepted

Answered
Can't convert a cell array to a date using cellfun(@datenum or @datetime)
You do not need to use |cellfun| to convert your cell array to |datetime|, but you do need to specify the format of your input s...

11 years ago | 0

| accepted

Answered
How can I plot a histogram with specified axis
Use <http://www.mathworks.com/help/matlab/ref/unique.html |unique|> to get the sorted unique values of your array and use that a...

11 years ago | 0

Answered
How to store multiple array. or multidirection array.
Why is |p| a 3d array if the first dimension is only 1? You can't store a matrix as an element of another matrix. matrix elem...

11 years ago | 0

| accepted

Answered
Filling array with for loop, non-singleton dimensions and subscripts
x1 = find(Vm(:,t1)==max(Vm(:,t1))); That is odd that |x1| ever gets empty. Possibly your matrix contains some NaN and you'r...

11 years ago | 0

| accepted

Answered
Sorting a cell array of strings on dim
Transpose the cell array, sort, and transpose back: x = {'book','apple';'dood','tood';'soon','moon'}; sorted_x = sort(x'...

11 years ago | 2

| accepted

Answered
Cell contents reference from a non-cell array object
Well, you're passing a number, 10, as the second argument to the function whereas that function is expecting a cell array. As...

11 years ago | 0

Answered
How to create discrete variable??
I'm not entirely clear on what you're asking. This may do what you want: valuepool = [0 10 20 30 40]; N = 2; randidx ...

11 years ago | 0

| accepted

Answered
How to find the entropy value of an RGB image after histogra equalization in Y plane.?
How much different? Do you know that the jpg format is a lossy compression format? Every time you save an image as jpg, some ...

11 years ago | 1

| accepted

Load more