Answered
What is the most efficient way to reduce video quality in MATLAB?
The resolution of the video is going to impact two things: # the time it takes to load and decode the frames in memory. # t...

8 years ago | 1

| accepted

Answered
Efficient way to find mirror entries
A = unique(A, 'rows') would be even faster than going through |loc|. Since the order of |a| and |b| does not matter, the...

8 years ago | 0

| accepted

Answered
I want to print the result in a table format. How do I do this?
_"tell me what I am doing wrong"_ * you're not commenting your code * |T| appears to be a variable that already exists (see ...

8 years ago | 1

Answered
Reading multiple cells after merged cell from excel sheet
I'm still not exactly clear what your question is. If you're trying to find the cells that are part of the merge I've already sh...

8 years ago | 0

| accepted

Answered
How to get the last character pressed on the keyboard?
Neither matlab nor the OS keep a record of the key presses. If you don't capture it when it occurs, then it never happened. I...

8 years ago | 0

Answered
Help to read indices of a 3D matrix
Use |find| to get the linear indices of the 0s. Convert these linear indices into 3D indices with |ind2sub|: [row, col, pag...

8 years ago | 1

| accepted

Answered
How to shift left a char array?
If you're manipulating char arrays (of |'0'| and |'1'|) and not actual bits of a number then simply: shiftedchararray = [yo...

8 years ago | 0

Answered
How can I set all vectors to keep the original length, but to have the same size of an arrow at the end using quiver?
This is not an option offered by |quiver| I'm afraid. The best you can do is limit the maximum size of the arrow head so that ab...

8 years ago | 1

| accepted

Answered
creating data table with values
What is a _data table_? If I understand correctly: %demo data: variable1 = [1 3 5 7 9 11 13 15 17]'; variable2...

8 years ago | 0

Answered
Auto select an option
Using |webread|, |webwrite| or any other built-in command, no it's not possible. The submission/selection is all handled by java...

8 years ago | 0

| accepted

Answered
Convert large cell array to double
Yes that seems overly complicated. Wouldn't model = str2double(model_c(:, 2:5)); %or model = cellfun(@(c) sscanf('%f'...

8 years ago | 0

Answered
How can I repeat a cycle in a for loop with n samples
I'm not entirely clear on what you're asking. As it is your code can be simplified to: %no loop needed Pmus = [A*((0:Ti-...

8 years ago | 0

Answered
Need help with table conversion
Code written on the fly, completely untested. There may be bugs / typos: filelist = {....} %built however you want, mayb...

8 years ago | 0

| accepted

Answered
Problem using Reducepatch command
I don't use patches enough to know if the problem is with |reducepatch| or with |patch| in general. The error occurs after |r...

8 years ago | 0

| accepted

Answered
Using imrotate without losing quality
As per Walter's comments, the only way you can perform arbitrary rotations without _loss of quality_ if by increasing the number...

8 years ago | 0

Answered
how to find points between boundaries
So do you know which points are at |t| or |t+10| or are you actually trying to find the displacement? If the latter, then a <htt...

8 years ago | 1

| accepted

Answered
filling in between two curves with different x values
I would think that patch([x-5, fliplr(x+5)], [y fliplr(y)], 'g') should work.

8 years ago | 0

| accepted

Answered
How to replace numbers (-999) for NaN in a dataset?
Note: datasets have been deprecated for a while. Consider using <https://uk.mathworks.com/help/matlab/ref/table.html tables> ins...

8 years ago | 1

| accepted

Answered
Infinite Recursive Property Assignment
I'm not sure what you mean by _the old @directory class objects_. This looks like just a handle issue to me. You will also en...

8 years ago | 0

| accepted

Answered
How to use an object property in other functions?
If |geMaxPathLoss| is a method of the class |PathLossCalculator| (and it has to be in order to access a private property), then ...

8 years ago | 1

| accepted

Answered
Using a programmed struct name as function argument or programming pressing "enter" in the command window
As per Walter's comment dynamic naming of variables is a bad idea. However, in you case, it's the fields of the structure that a...

8 years ago | 1

| accepted

Answered
How to put numbers into a new array?
I'm not clear on your question. the _array that assembles all the G(i)_ is |G|. Note that 3.98*10^7 is better written as 3.98...

8 years ago | 0

Answered
Is textscan ever better than readtable?
|readtable| internally calls |textscan|, but does a lot of work before to automatically detect the format of the file and after ...

8 years ago | 2

| accepted

Answered
Removing textflags in xml2struct?
While you could indeed edit the code yourself so it does whatever you want, this whole thing is a very bad idea. What if the ...

8 years ago | 0

| accepted

Answered
Image watermarking using LSB
This is simple bit masking and shifting. Whenever you encounter this sort of thing, if you're not familiar with powers of 2, the...

8 years ago | 1

| accepted

Answered
imshow directly converts the [0,255] to [0,1]?
I'm not exactly clear what your question is. If the intensities of your image are in the range [0 255], then normally the cl...

8 years ago | 0

Answered
How to select between duplicated non-integer values of a matrix
_"But I cannot use “accumarray” as my values are not integer."_ So what? [values, ~, subs] = unique(A(:, 1)); B = [value...

8 years ago | 0

| accepted

Answered
Calculate average change % in a group
Since you're using a table the <https://www.mathworks.com/help/matlab/ref/rowfun.html |rowfun|> function (or maybe even <https:/...

8 years ago | 0

Answered
Classify responses into categories
As I said in my comments, it is very likely that splitting your matrix is going to make further processing more complicated, not...

8 years ago | 1

| accepted

Answered
Automatic double to complex double ?
A real value is a complex value with imaginary part of 0. The first 3 elements of your output are real values, not complex. W...

8 years ago | 0

Load more