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?

5 dagen 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 ...

5 dagen 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...

6 dagen 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);

8 dagen 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 ...

8 dagen 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.

17 dagen 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...

21 dagen 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...

22 dagen 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...

28 dagen 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'),:);

ongeveer een maand 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...

ongeveer een maand 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.

ongeveer een maand 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 ...

ongeveer een maand 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...

ongeveer een maand 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 ...

ongeveer een maand 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...

ongeveer 2 maanden 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 ...

ongeveer 2 maanden 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...

ongeveer 2 maanden ago | 0

| accepted

Answered

What happen with confusion matrix ?

It looks like you have 55 observations. 51 of them were classified correctly (along the diagonal, indicated in green). But 4 of ...

What happen with confusion matrix ?

It looks like you have 55 observations. 51 of them were classified correctly (along the diagonal, indicated in green). But 4 of ...

2 maanden ago | 0

| accepted

Answered

Vectorized Search of substrings in Cell Array

Discovered a much cleaner way: contains(t,'bc');

Vectorized Search of substrings in Cell Array

Discovered a much cleaner way: contains(t,'bc');

2 maanden ago | 0

Answered

Vectorized Search of substrings in Cell Array

Here is one way: cellfun(@(x)not(isempty(x)),strfind(t,'bc'))

Vectorized Search of substrings in Cell Array

Here is one way: cellfun(@(x)not(isempty(x)),strfind(t,'bc'))

2 maanden ago | 1

Answered

Conversion of any base (n) to a base 10 number?

There is a thorough answer to this question here.

Conversion of any base (n) to a base 10 number?

There is a thorough answer to this question here.

3 maanden ago | 0

Answered

How to create this matrix without hardcoding the values

Here is one way. r = [ 1.5355 + 0.0000i -1.0914 + 1.0781i -1.0914 - 1.0781i 0.3621 + 1.3117i 0.3621 -...

How to create this matrix without hardcoding the values

Here is one way. r = [ 1.5355 + 0.0000i -1.0914 + 1.0781i -1.0914 - 1.0781i 0.3621 + 1.3117i 0.3621 -...

3 maanden ago | 0

| accepted

Answered

how to make a curve of Poisson, Rayleih, t , ....etc distribution of my random data (in histogram)

If you have the Statistics and Machine Learning Toolboox, then you could use the fitdist function. It will fit a large variety o...

how to make a curve of Poisson, Rayleih, t , ....etc distribution of my random data (in histogram)

If you have the Statistics and Machine Learning Toolboox, then you could use the fitdist function. It will fit a large variety o...

3 maanden ago | 0

| accepted

Answered

gevfit error: Operands to the || and && operators must be convertible to logical scalar values

That code works for me, in both 2018b and 2019a. Does this happen with a freshly started instance of MATLAB? If so, you might ...

gevfit error: Operands to the || and && operators must be convertible to logical scalar values

That code works for me, in both 2018b and 2019a. Does this happen with a freshly started instance of MATLAB? If so, you might ...

4 maanden ago | 0

| accepted

Answered

how to find out wether the array is Hill or not?

I think this is right, but I have to admit I have not thoroughly checked it: % Original data a=[1,2,2,3,3,4,4,2,-1,-1]; % F...

how to find out wether the array is Hill or not?

I think this is right, but I have to admit I have not thoroughly checked it: % Original data a=[1,2,2,3,3,4,4,2,-1,-1]; % F...

4 maanden ago | 0

| accepted

Answered

are there workbook front ends for matlab?

Live scripts and functions are a notebook-like functionality within MATLAB.

are there workbook front ends for matlab?

Live scripts and functions are a notebook-like functionality within MATLAB.

4 maanden ago | 0

Answered

how can I generate data mixture of 2 Normal distributions and has the form f(x) = 0.4X1 + 0.6X2 where X1 ~ N(0.4 ,0.15^2) and X2 ~ N(0.7 , 0.09^2)?

Here is one way: % The number of random samples to generate N = 10000; % First, generate a binomial variable, which 40% of ...

how can I generate data mixture of 2 Normal distributions and has the form f(x) = 0.4X1 + 0.6X2 where X1 ~ N(0.4 ,0.15^2) and X2 ~ N(0.7 , 0.09^2)?

Here is one way: % The number of random samples to generate N = 10000; % First, generate a binomial variable, which 40% of ...

4 maanden ago | 1

| accepted

Answered

Accumulate previous values in time serie

You should be able to use the movsum command.

Accumulate previous values in time serie

You should be able to use the movsum command.

4 maanden ago | 0

| accepted