Answered

How can we start different sessions simultaneously?

"Is there a way to start two different sessions simultaneously?" No. And parfor or spmd will not help for this purpose. Startin...

How can we start different sessions simultaneously?

"Is there a way to start two different sessions simultaneously?" No. And parfor or spmd will not help for this purpose. Startin...

5 days ago | 0

Answered

How to remove a particular frequency in the fft code?

[~, idx] = min(abs(f - 10.1)); %which bin is closest to 10.1 ? Y(idx) = 0; %zero that bin Y(end-idx+2) = 0; %zer...

How to remove a particular frequency in the fft code?

[~, idx] = min(abs(f - 10.1)); %which bin is closest to 10.1 ? Y(idx) = 0; %zero that bin Y(end-idx+2) = 0; %zer...

5 days ago | 0

| accepted

Answered

How to Give Column Names to MATLAB Table Dynamically

Column names must be valid matlab variable names. colnames = "AD" + T; The AD can be changed to any valid prefix of a var...

How to Give Column Names to MATLAB Table Dynamically

Column names must be valid matlab variable names. colnames = "AD" + T; The AD can be changed to any valid prefix of a var...

5 days ago | 0

| accepted

Answered

Using Textscan on non-uniform data

fid = fopen('HS_full_18md_nam_outputs.txt'); fgets(fid); %skip header ctl = fscanf(fid, '%f%f', 2); Nt = ctl(1); Ns = ctl(...

Using Textscan on non-uniform data

fid = fopen('HS_full_18md_nam_outputs.txt'); fgets(fid); %skip header ctl = fscanf(fid, '%f%f', 2); Nt = ctl(1); Ns = ctl(...

5 days ago | 1

Answered

How should I randomly generate pairs of non-identical natural numbers that should also be non-repeating?

[A, B] = ndgrid(range); mask = A==B; A(mask) = []; B(mask) = []; N = length(A); p = randperm(N, 20); pairs = [A(p); B(p)].'...

How should I randomly generate pairs of non-identical natural numbers that should also be non-repeating?

[A, B] = ndgrid(range); mask = A==B; A(mask) = []; B(mask) = []; N = length(A); p = randperm(N, 20); pairs = [A(p); B(p)].'...

5 days ago | 1

| accepted

Answered

How can I only keep keys that have the smallest value pair in a matrix?

[g, val] = findgroups(A(:,1)); B = [val, accumarray(g, A(:,2), [], @min)];

How can I only keep keys that have the smallest value pair in a matrix?

[g, val] = findgroups(A(:,1)); B = [val, accumarray(g, A(:,2), [], @min)];

5 days ago | 0

Answered

Setpath error: the path file pathdef.m might be read only

MATLAB generally creates a writeable pathdef.m when it is installed, but not always. Sometimes pathdef.m ends up in a directory ...

Setpath error: the path file pathdef.m might be read only

MATLAB generally creates a writeable pathdef.m when it is installed, but not always. Sometimes pathdef.m ends up in a directory ...

5 days ago | 0

Answered

install App with image-component in older version Matlab

uiimage() cannot be used in any release before R2019a.

install App with image-component in older version Matlab

uiimage() cannot be used in any release before R2019a.

6 days ago | 0

Answered

What is the max image size Matlab OCR can process

"What is the largest size image Matlab's OCR can process?" 140737488355327 bytes. Call it 6 1/2 million by 6 1/2 million RGB.

What is the max image size Matlab OCR can process

"What is the largest size image Matlab's OCR can process?" 140737488355327 bytes. Call it 6 1/2 million by 6 1/2 million RGB.

6 days ago | 0

| accepted

Answered

loading excel cell in matlab

vel_data=dir('*.mat'); so vel_data contains information about .mat files WL_data=dir('*.xlsx'); so WL_data contains informati...

loading excel cell in matlab

vel_data=dir('*.mat'); so vel_data contains information about .mat files WL_data=dir('*.xlsx'); so WL_data contains informati...

6 days ago | 0

Answered

How do I explain the random functions to my professor?

"Also, it will be different from picking one value each from A,B,C for 5 times compared to picking all 5 from A, then moving on ...

How do I explain the random functions to my professor?

"Also, it will be different from picking one value each from A,B,C for 5 times compared to picking all 5 from A, then moving on ...

6 days ago | 4

Answered

What is the meaning of following code?

size(Residuals,1) is the number of rows in the Residuals array. 1:2:size(Residuals,1) is the odd-numbered rows. [1:2:size(Residu...

What is the meaning of following code?

size(Residuals,1) is the number of rows in the Residuals array. 1:2:size(Residuals,1) is the odd-numbered rows. [1:2:size(Residu...

6 days ago | 0

| accepted

Answered

I have IgorTime data in which time:units = "seconds since 1904-01-01". I would like to convert this seconds to datevc.

datetime(T/86400,'convertfrom','excel1904')

I have IgorTime data in which time:units = "seconds since 1904-01-01". I would like to convert this seconds to datevc.

datetime(T/86400,'convertfrom','excel1904')

6 days ago | 1

| accepted

Answered

Need source code of this paper " Particle Swarm Optimization for Object-Based Feature Selection of VHSR Satellite Images"

https://www.mathworks.com/matlabcentral/fileexchange/56309-data-clustering-using-bat-algorithm

Need source code of this paper " Particle Swarm Optimization for Object-Based Feature Selection of VHSR Satellite Images"

https://www.mathworks.com/matlabcentral/fileexchange/56309-data-clustering-using-bat-algorithm

6 days ago | 0

Answered

Could anyone help me to display the non zero numbers with respect to each column

[A,~] = find(C); %returns column vector A = A.'; %make it into a row vector

Could anyone help me to display the non zero numbers with respect to each column

[A,~] = find(C); %returns column vector A = A.'; %make it into a row vector

6 days ago | 0

| accepted

Answered

What is the MATLAB function for FILTER in direct-form I?

https://www.mathworks.com/help/signal/ref/dfilt.df1.html edit(which('dfilt.df1')) Will show you the exact code that is used.

What is the MATLAB function for FILTER in direct-form I?

https://www.mathworks.com/help/signal/ref/dfilt.df1.html edit(which('dfilt.df1')) Will show you the exact code that is used.

7 days ago | 0

Answered

how to extract data from the fixed-width-field format using fscanf or textscan

fileread into a character vector. regexprep to insert a space before every field. textscan the character vector.

how to extract data from the fixed-width-field format using fscanf or textscan

fileread into a character vector. regexprep to insert a space before every field. textscan the character vector.

7 days ago | 1

| accepted

Answered

Square wave with different amplitude for different time in number of cycles

250 * square(parametric_times, D) - 50 parametric_times would be such that the end of the parametric_time vector was 2*pi*numbe...

Square wave with different amplitude for different time in number of cycles

250 * square(parametric_times, D) - 50 parametric_times would be such that the end of the parametric_time vector was 2*pi*numbe...

8 days ago | 0

| accepted

Answered

Concatenate Tables with one variable having different lengths

Later versions than yours reject your input syntax because of ambiguity about options versus inputs. T1 = table({'Alpha'}, 33, ...

Concatenate Tables with one variable having different lengths

Later versions than yours reject your input syntax because of ambiguity about options versus inputs. T1 = table({'Alpha'}, 33, ...

8 days ago | 0

| accepted

Answered

Undefined function or variable 'p1x'.

Your code requires six inputs. When you click on Run, you are providing zero inputs. Where are you expecting it to get the value...

Undefined function or variable 'p1x'.

Your code requires six inputs. When you click on Run, you are providing zero inputs. Where are you expecting it to get the value...

8 days ago | 0

Answered

How to convert RGB to hsv?

for H = 1:ncols if T3(H) == 0 hprime(H) = 0; elseif T1(H) == R(H) hprime(H) = mod((G(H)-B(H))/C(H), ...

How to convert RGB to hsv?

for H = 1:ncols if T3(H) == 0 hprime(H) = 0; elseif T1(H) == R(H) hprime(H) = mod((G(H)-B(H))/C(H), ...

8 days ago | 0

Answered

How to compose functions with more than one output/input

In MATLAB, in every case where you have an expression of the form F(G(inputs)), it is not possible for F to capture all of the o...

How to compose functions with more than one output/input

In MATLAB, in every case where you have an expression of the form F(G(inputs)), it is not possible for F to capture all of the o...

8 days ago | 1

Answered

imadjust returns error only supported for 2d-grayscal images

.jpg images are almost always color images. Your code acknowledges that when it does the gbird = rgb2gray(birds); In your comm...

imadjust returns error only supported for 2d-grayscal images

.jpg images are almost always color images. Your code acknowledges that when it does the gbird = rgb2gray(birds); In your comm...

8 days ago | 0

| accepted

Answered

How to use blockproc by location?

blockproc is a waste for this kind of task, but it can be done. You would specify a blocksize of 3 x 3 and an overlap of [1 1], ...

How to use blockproc by location?

blockproc is a waste for this kind of task, but it can be done. You would specify a blocksize of 3 x 3 and an overlap of [1 1], ...

8 days ago | 0

Answered

i encountered an error saying Undefined function 'Linda' for input arguments of type 'char', while trying save a file and run a code

MATLAB is case sensitive. That code would not be recognized as a function because you used Function instead of function With th...

i encountered an error saying Undefined function 'Linda' for input arguments of type 'char', while trying save a file and run a code

MATLAB is case sensitive. That code would not be recognized as a function because you used Function instead of function With th...

8 days ago | 0

Answered

Error: Undefined variable “vision” or class “vision.FasterRCNNObjectDetector” in Matlab 2019a.

You should not construct a fastRCNNObjectDetector yourself. You should call https://www.mathworks.com/help/vision/ref/trainfastr...

Error: Undefined variable “vision” or class “vision.FasterRCNNObjectDetector” in Matlab 2019a.

You should not construct a fastRCNNObjectDetector yourself. You should call https://www.mathworks.com/help/vision/ref/trainfastr...

8 days ago | 0

Answered

Screen function does not seem to work properly.

https://github.com/Psychtoolbox-3/Psychtoolbox-3/issues/480#issuecomment-395840623 Timing is not going to work on Mojave, ever...

Screen function does not seem to work properly.

https://github.com/Psychtoolbox-3/Psychtoolbox-3/issues/480#issuecomment-395840623 Timing is not going to work on Mojave, ever...

8 days ago | 0

Answered

How can I alterate a mask for Kmeans segmentation

M = true(size(im,1), size(im,2));

How can I alterate a mask for Kmeans segmentation

M = true(size(im,1), size(im,2));

8 days ago | 0

| accepted