Answered

Excluding date from date and time

You should be able to use the timeofday function. The resulting output will be a duration array.

Excluding date from date and time

You should be able to use the timeofday function. The resulting output will be a duration array.

circa 14 ore ago | 0

Answered

Error in Mosaicing (line 44) new_img(i,k) = N(i,k-Index+1);%%to stich the 2nd image after index. Index exceeds matrix dimensions. what does this mean?

It means that when MATLAB tries to do the operation new_img(i,k) = N(i,k-Index+1); that either new_img is a smaller array tha...

Error in Mosaicing (line 44) new_img(i,k) = N(i,k-Index+1);%%to stich the 2nd image after index. Index exceeds matrix dimensions. what does this mean?

It means that when MATLAB tries to do the operation new_img(i,k) = N(i,k-Index+1); that either new_img is a smaller array tha...

circa 14 ore ago | 0

Answered

the command after "if" not work after awhile

My best guess here is that you are running up against the limitations of floating point computation. For example, try putting th...

the command after "if" not work after awhile

My best guess here is that you are running up against the limitations of floating point computation. For example, try putting th...

4 giorni ago | 2

| accepted

Answered

How do I get a bar chart in the newest version but with the colors from an older version?

There are utilities (e.g. "Digital Color Meter" on a Mac) where you can hover your cursor over a pixel on the screen, and it wil...

How do I get a bar chart in the newest version but with the colors from an older version?

There are utilities (e.g. "Digital Color Meter" on a Mac) where you can hover your cursor over a pixel on the screen, and it wil...

4 giorni ago | 0

Answered

How a matlab function or toolbox works?

A cursory look at the software engineering career postings on the Mathworks site suggests that current development is in C, C++,...

How a matlab function or toolbox works?

A cursory look at the software engineering career postings on the Mathworks site suggests that current development is in C, C++,...

4 giorni ago | 2

Answered

Random Test Dataset With More Values Of One Type

One simple approach would be: split your dataset into the y=0 set and the y = 1 set do the 80/20 training/test split on the y=...

Random Test Dataset With More Values Of One Type

One simple approach would be: split your dataset into the y=0 set and the y = 1 set do the 80/20 training/test split on the y=...

4 giorni ago | 1

Answered

is there any way to use both Spearman and Euclidean distance using knnsearch ?

No, they cannot both be used within a single call to knnsearch. I don't really see how "merging" would really be that helpful. ...

is there any way to use both Spearman and Euclidean distance using knnsearch ?

No, they cannot both be used within a single call to knnsearch. I don't really see how "merging" would really be that helpful. ...

5 giorni ago | 1

| accepted

Answered

How can I separate complex numbers from the other in a matrix?

% Example data z = [1 1+2*i 3 4+5*i] mask = imag(z)==0; The variable mask is a logical variable that is TRUE at the locatio...

How can I separate complex numbers from the other in a matrix?

% Example data z = [1 1+2*i 3 4+5*i] mask = imag(z)==0; The variable mask is a logical variable that is TRUE at the locatio...

17 giorni ago | 2

Answered

Finding the locations of non-similar value cells

I'm not certain I understand exactly what you want, but this is my best guess: % Define input arrays CA = {[-10 2],[6;6]}; CB...

Finding the locations of non-similar value cells

I'm not certain I understand exactly what you want, but this is my best guess: % Define input arrays CA = {[-10 2],[6;6]}; CB...

26 giorni ago | 0

Answered

NIST Randomness test execution

The answer from Peter Perkins here is old, but I believe it is still accurate.

NIST Randomness test execution

The answer from Peter Perkins here is old, but I believe it is still accurate.

29 giorni ago | 0

| accepted

Answered

For every matrix row find rows within the same matrix that have more than one common element in same index below the row

Here is a start at a solution for you. A = [ 1 2 3 1 4 5 3 4 5 1 2 4 1 2 5 2 4 5]; for i = 1:size(A,1)-1 r{i} = f...

For every matrix row find rows within the same matrix that have more than one common element in same index below the row

Here is a start at a solution for you. A = [ 1 2 3 1 4 5 3 4 5 1 2 4 1 2 5 2 4 5]; for i = 1:size(A,1)-1 r{i} = f...

30 giorni ago | 0

| accepted

Answered

Serious mistake installing Matlab

Does this documentation page about uninstalling MATLAB help?

Serious mistake installing Matlab

Does this documentation page about uninstalling MATLAB help?

circa un mese ago | 0

Answered

How to write cell arrays in Excel?

I use cellwrite from the File Exchange.

How to write cell arrays in Excel?

I use cellwrite from the File Exchange.

circa un mese ago | 0

Answered

I would like to call a row element from a matrix however, the row is written inside another matrix

If T is the temperature matrix, then it sounds like maybe you want to do T(A(1)) Or use a loop to access more rows of T? for ...

I would like to call a row element from a matrix however, the row is written inside another matrix

If T is the temperature matrix, then it sounds like maybe you want to do T(A(1)) Or use a loop to access more rows of T? for ...

circa un mese ago | 1

Answered

ismember 0×0 empty logical array to logic

Making a huge guess here, but are you sure you don't mean ~ismember(ID,A) rather than ~ismember(A,ID) Then, assuming ID is a...

ismember 0×0 empty logical array to logic

Making a huge guess here, but are you sure you don't mean ~ismember(ID,A) rather than ~ismember(A,ID) Then, assuming ID is a...

circa un mese ago | 0

Answered

I have a csv file, which contains some 0 and some non-zero values. How to get the index of the non-zero values in the csv file?

data = csvread('Book4.csv'); idx = find(data);

I have a csv file, which contains some 0 and some non-zero values. How to get the index of the non-zero values in the csv file?

data = csvread('Book4.csv'); idx = find(data);

circa un mese ago | 1

| accepted

Answered

replace random data with dataset

My best guess at your error is that your randomly generated data consists of two [1 x numP] row vectors, but when you read your ...

replace random data with dataset

My best guess at your error is that your randomly generated data consists of two [1 x numP] row vectors, but when you read your ...

circa un mese ago | 0

Answered

How to find a polynomial of degree 2 that fits the given data with minimal approximation error? and then sketch discrete points and the graph of the polynomial

You could use the polyfit and plot commands (and of course a few more fundamental calculations like subtraction) to do this.

How to find a polynomial of degree 2 that fits the given data with minimal approximation error? and then sketch discrete points and the graph of the polynomial

You could use the polyfit and plot commands (and of course a few more fundamental calculations like subtraction) to do this.

circa 2 mesi ago | 0

Answered

draw circle through two given points in plot

In general, there are an infinite number of circles that pass through two given points. If you don't care which one, then one p...

draw circle through two given points in plot

In general, there are an infinite number of circles that pass through two given points. If you don't care which one, then one p...

circa 2 mesi ago | 1

Answered

Reading file with variable name

for n = 1:16 filename = sprintf('PPT%d.TXT',n) end That loop creates the filenames you need, with the '%d' in the sprintf...

Reading file with variable name

for n = 1:16 filename = sprintf('PPT%d.TXT',n) end That loop creates the filenames you need, with the '%d' in the sprintf...

circa 2 mesi ago | 1

Answered

Why the result of GMM(Gaussian mixture model) is not the same for twice calculation?

There is a random component to the fitting algorithm. The results will not be exactly the same each time, because the pseudorand...

Why the result of GMM(Gaussian mixture model) is not the same for twice calculation?

There is a random component to the fitting algorithm. The results will not be exactly the same each time, because the pseudorand...

2 mesi ago | 0

| accepted

Answered

Creating new dataset corresponding to certain name within a variable column

Here is one possible way. (It assumes your table's variable name is tbl.) outcome = tbl(ismember(tbl.bottle,'C-a'),:);

Creating new dataset corresponding to certain name within a variable column

Here is one possible way. (It assumes your table's variable name is tbl.) outcome = tbl(ismember(tbl.bottle,'C-a'),:);

2 mesi ago | 0

Answered

Boxplot and Dimensions Arrays

If you define your original arrays as column vectors, instead of row vectors, your code will work. Try this instead: %msf for s...

Boxplot and Dimensions Arrays

If you define your original arrays as column vectors, instead of row vectors, your code will work. Try this instead: %msf for s...

2 mesi ago | 0

| accepted

Answered

Removing vertical line from the script window

From the Command Window: MATLAB --> Preferences --> Editor/Debugger --> Display Increase the right-hand text limit.

Removing vertical line from the script window

From the Command Window: MATLAB --> Preferences --> Editor/Debugger --> Display Increase the right-hand text limit.

2 mesi ago | 0

| accepted

Answered

Center of two points (positive and nenegative values)

I believe your calculation is correct for negative values of v. The problem is that the point may not lie between the two input ...

Center of two points (positive and nenegative values)

I believe your calculation is correct for negative values of v. The problem is that the point may not lie between the two input ...

2 mesi ago | 0

| accepted

Answered

how to test if multiple distributions are statistically different from each other?

What is reported in that table are the parameters of lognormal distributions. Because the parameters are different, those distri...

how to test if multiple distributions are statistically different from each other?

What is reported in that table are the parameters of lognormal distributions. Because the parameters are different, those distri...

2 mesi ago | 0

Answered

Missing factor using rule of three?

Try (0.004*4*pi)/(2*pi) The reason your syntax does not work is that it will divide by 2, and then multiply by pi. See order ...

Missing factor using rule of three?

Try (0.004*4*pi)/(2*pi) The reason your syntax does not work is that it will divide by 2, and then multiply by pi. See order ...

2 mesi ago | 1

| accepted

Answered

How can I average the first 14 columns, the second 14 columns, and so on and so forth?

Assuming you actually want to average over columns (see my question above), I believe out = movmean(M,[0 13],2); out = out(:,1...

How can I average the first 14 columns, the second 14 columns, and so on and so forth?

Assuming you actually want to average over columns (see my question above), I believe out = movmean(M,[0 13],2); out = out(:,1...

3 mesi ago | 1

Answered

delete rows from matrix if some of its elements equal all elements in another rows another different dimension matrix?

Here is one way: Sw = [2 3 6 25 11 3 6 7 8 9 3 6 25 8 9 3 6 25 11 11 3 4 5 6 25 4 ...

delete rows from matrix if some of its elements equal all elements in another rows another different dimension matrix?

Here is one way: Sw = [2 3 6 25 11 3 6 7 8 9 3 6 25 8 9 3 6 25 11 11 3 4 5 6 25 4 ...

3 mesi ago | 0

Answered

Can copula PDF value exceed 1?

Yes, a probability distribution function can have values greater than 1. Remember that the PDF is not the probability at that l...

Can copula PDF value exceed 1?

Yes, a probability distribution function can have values greater than 1. Remember that the PDF is not the probability at that l...

3 mesi ago | 0

| accepted