Answered
Splitting a matrix based on certain values in the rows
A = [911 911; 0 2; 8 5; 7 3; 911 911; 5 3; 1 6; ...

8 years ago | 0

Answered
Outer product of two rectangular matrices
If you have a [N x M] array and a [R x S x T] array, the output product becomes [N x M x R x S x T]. This can be done with neste...

8 years ago | 3

Answered
Looping for calculate parameter
With a FOR loop: S = 0; for k = 1:numel(a) S = S + a(k) * F(:, k); end Or without a loop: S = F(:, 1:numel(a)) * a(:);...

8 years ago | 0

| accepted

Answered
licence on virtual machine
This is the public forum. Please contact the official support team of Mathworks. Use the "Contact Us" link on top of this page.

8 years ago | 0

Answered
How to use intersect command with a tolerance value?
While ismembertol might be useful, I'm still puzzled by the way it defines the tolerance. If the vectors are not too large (som...

8 years ago | 1

Answered
Why the encryption doesn't work correctly? (SHA-256, HMAC-SHA-512)
Your call of DataHash creates the hash considering the class of the obejct. You want to get the hash for the values only. chall...

8 years ago | 1

| accepted

Answered
How to use only specific files in directory in GUI?
folder = uigetdir('Choose a folder'); List = dir(fullfile(folder, 'PU*.*')); FileName = fullfile(folder, {List.name}); ...

8 years ago | 0

Answered
How can i increase the variabile name of each vector in for cycle? I want CM0_0, CM0_1, CM0_2...
Don't do this. Do not hide an index in the name of a variable. Use an array instead, e.g.: CM0{1}, CM0{2}, CM0{3} See this fam...

8 years ago | 2

| accepted

Answered
Using index data to fill a matrix
This works with a loop easily: D = ExtractedData; % Easier to read... MaxRow = max(D(:, 1)); MaxCol = max(D(:, 2)); To...

8 years ago | 0

| accepted

Answered
Regarding matrix similarity of image with rotation and scaling
I can recommend to search in the net at first, if you have a question. Then you will find e.g.: https://www.mathworks.com/help/...

8 years ago | 0

Answered
Resizing pixels with independent scaling factor?
Let's start with a working loop: w = 8; im = repmat(uint8(255), w, w); im(2,2,:) = 0; im(6,6,:) = 0; row = [2;6]; col...

8 years ago | 0

| accepted

Answered
Deleting the row of a 3D matrix with a condition
Of course you cannot delete one row in a 3D array: The resulting array must have the same length for all subvectors. Removing a ...

8 years ago | 0

| accepted

Answered
Looping through 3rd dimension
Your loop has 19 iterations. It is not clear, why you expect that the output has a size of 30 or 540 in the 3rd dimension. [i:i...

8 years ago | 0

| accepted

Answered
Out of memory during calculating covariance norm matrix
The wanted 128'541*128'541 matrix has 16'522'788'681 elements and it needs 132'182'309'448 Bytes of RAM: 132 GB. As a rule of th...

8 years ago | 1

| accepted

Answered
Vectorization the Legendre Polynomial Without loop
Are you sure the the code is working? You calculate the vectors P(i, :) but use the first element only: P(i): P(i+1,:) = -(...

8 years ago | 0

| accepted

Answered
How to import raster file to Matlab
What about https://www.mathworks.com/matlabcentral/fileexchange/24313-arcmap-raster-asc-to-xyz-file ?

8 years ago | 0

Answered
Passing an image between GUIDE GUI's
Do not use global variables to share data. You find thousands of threads concerning Matlab or other programming languages, which...

8 years ago | 1

Answered
Combining arrays of different row length
See: FileExchange: padcat With a simple loop: function A = CatWithPadding(varargin) C = varargin; nC = numel(C); len = c...

8 years ago | 0

Answered
Linearly "interpolate" a 1-dimensional vector
What's wrong with interp1? pops = flipud(pop(:,2)); n = numel(pops); weekpop = interp1(1:n, pops, linspace(1, n, (n-...

8 years ago | 0

| accepted

Answered
if function for array
x=[52.23;52.45;56.32;55.48;56.32;53.39;55.53;53.67;57.89] subplot(2,2,1) plot(x) subplot(2,2,2) index = find(52 < x && x <...

8 years ago | 0

Answered
Install older versions of MATLAB
When does the question for selecting the folder occur? During downloading or during the installation? Do not install the Matlab ...

8 years ago | 1

| accepted

Answered
Anonymous function inside of function file
Your anonymous function CfromF takes one input and converts its contents. In your code you call this function without an input a...

8 years ago | 0

Answered
Count the occurence of a number in between other numbers
With FEX: RunLength : [B, N] = RunLength(x); Result = N(B == 0) If you do not have a C-compiler installed, use RunLength_M fr...

8 years ago | 2

Answered
How to read sequence of pcd files
No, the standard method to import files in a loop works for any kind of input. Please post your code and explain, why you assume...

8 years ago | 0

Answered
filtering and combining signals
You need a scientific decision for a filter, not an opinion from the forum. Is there any evidence that a median filter does not ...

8 years ago | 0

Answered
Deleting temporal path files
Open the tool to manage the path: pathtool There is a corresponding button in the toolbar also. See also: https://www.mathwor...

8 years ago | 1

| accepted

Answered
Wrong dates on axis when plotting from xlsx file
Do you see, that you use "MM" for minutes and months? The format strings for the date format are case-sensitive. b=datestr(y_ne...

8 years ago | 1

| accepted

Answered
Save a file inside a subfolder of a folder
function out = functionTiago(A, Folder) subFolder = fullfile(Folder, 'SUBFOLDER'); mkdir(subFolder) out = A + 5; save(fullfi...

8 years ago | 1

| accepted

Answered
C / C++ Compiler Configuration
I installed R2018b last week. Then I've downloaded the MinGW compiler: https://www.mathworks.com/matlabcentral/fileexchange/528...

8 years ago | 2

Answered
What is wrong with this uibutton and callback function?
I guess, that the object with the tag 'BG1' is not found. Then store it explicitly: bg = uibuttongroup('Visible','off',... ...

8 years ago | 0

Load more