Answered

Does anyone know why it is also taking point 9 as convex hull point eventhough it shouldn't?

By observation, points 8, 9 and 10 are on the same line. You have to add a condition to decimate redundant points. (points that...

Does anyone know why it is also taking point 9 as convex hull point eventhough it shouldn't?

By observation, points 8, 9 and 10 are on the same line. You have to add a condition to decimate redundant points. (points that...

4 jours ago | 0

| accepted

Answered

How to crop detected face part?

RGB Images are 3D matrices with dimenions = (resolution_x, resolution_y, 3) I suppose the bounding box contains the face. Try ...

How to crop detected face part?

RGB Images are 3D matrices with dimenions = (resolution_x, resolution_y, 3) I suppose the bounding box contains the face. Try ...

5 jours ago | 1

Answered

How to extract matrix from a bigger matrix based on threshold of each column?

here is my try based on what i understood. given a matrix a nx3: a = [5,6,8;1,2,3;2,3,4;3,4,5;4,5,6] a = 5 6 ...

How to extract matrix from a bigger matrix based on threshold of each column?

here is my try based on what i understood. given a matrix a nx3: a = [5,6,8;1,2,3;2,3,4;3,4,5;4,5,6] a = 5 6 ...

6 jours ago | 0

| accepted

Answered

Block diagonal matrix of identity times scalar.

here is my take. a=[1,2]; c = round(a(1):1/(length(b(:,1))-1):a(2)); matrix = diag(c);

Block diagonal matrix of identity times scalar.

here is my take. a=[1,2]; c = round(a(1):1/(length(b(:,1))-1):a(2)); matrix = diag(c);

9 jours ago | 0

| accepted

Answered

add vertical line on a plot for Confidence intervalle.

Have you tried this function? https://www.mathworks.com/help/matlab/ref/errorbar.html

add vertical line on a plot for Confidence intervalle.

Have you tried this function? https://www.mathworks.com/help/matlab/ref/errorbar.html

11 jours ago | 0

| accepted

Answered

Is it possible to perform additional operation on job cancellation?

Checkout this function: https://www.mathworks.com/help/matlab/ref/oncleanup.html

Is it possible to perform additional operation on job cancellation?

Checkout this function: https://www.mathworks.com/help/matlab/ref/oncleanup.html

12 jours ago | 1

Answered

How can I fill my cell array?

here is my try: U{1} = [1,2]; U{2} = [2,3]; T = [1,2,3]; S = {}; for i = 1:length(T) temp_cell = {}; k=1; f...

How can I fill my cell array?

here is my try: U{1} = [1,2]; U{2} = [2,3]; T = [1,2,3]; S = {}; for i = 1:length(T) temp_cell = {}; k=1; f...

12 jours ago | 0

| accepted

Answered

How do i create a projectile?

as example for a non-accelerating projectile (which is not your case) this could look like time = 0:1:100; % time goes from 0 t...

How do i create a projectile?

as example for a non-accelerating projectile (which is not your case) this could look like time = 0:1:100; % time goes from 0 t...

12 jours ago | 0

Answered

Creating Sine wave with random values

here is my try: random_phase_offset = rand(1,1)*2*pi; max_amplitude = 20; random_amplitude = rand(1,1)*max_amplitude; t = ...

Creating Sine wave with random values

here is my try: random_phase_offset = rand(1,1)*2*pi; max_amplitude = 20; random_amplitude = rand(1,1)*max_amplitude; t = ...

12 jours ago | 1

Answered

Saving each data from for loop

If you want to store elements (like strings) that are not the same size you can use cells. A = {'abc', 'defg', 'hijklmnop', 1...

Saving each data from for loop

If you want to store elements (like strings) that are not the same size you can use cells. A = {'abc', 'defg', 'hijklmnop', 1...

13 jours ago | 0

Answered

basic question about matrices

As i think this is an homework i'd suggest reading: https://www.mathworks.com/help/matlab/ref/ones.html https://www.mathworks....

basic question about matrices

As i think this is an homework i'd suggest reading: https://www.mathworks.com/help/matlab/ref/ones.html https://www.mathworks....

13 jours ago | 0

Answered

how can i change an indice in Matrix as vector?

Now i understand. Here is a solution that you can easily expand. clear protein(1).name = 'A'; protain(1).bool_value = [1...

how can i change an indice in Matrix as vector?

Now i understand. Here is a solution that you can easily expand. clear protein(1).name = 'A'; protain(1).bool_value = [1...

13 jours ago | 1

Answered

how can i change an indice in Matrix as vector?

I am not sure what you are trying to do as a whole, but if you want to quickly find where there are occurences of a certain stri...

how can i change an indice in Matrix as vector?

I am not sure what you are trying to do as a whole, but if you want to quickly find where there are occurences of a certain stri...

13 jours ago | 1

Answered

problem in optimization by MATLAB using genetic algorithm

Try to see if the problem is not the same as in this question: https://www.mathworks.com/matlabcentral/answers/76730-genetic-al...

problem in optimization by MATLAB using genetic algorithm

Try to see if the problem is not the same as in this question: https://www.mathworks.com/matlabcentral/answers/76730-genetic-al...

13 jours ago | 1

Answered

Create a string array (MxN) where each element is a repeated character based off a numeric array (MxN)

try this: B = arrayfun(@(x) repmat('#',1,x),A, 'UniformOutput', false) B = '####' [1x0 char] '#' '####...

Create a string array (MxN) where each element is a repeated character based off a numeric array (MxN)

try this: B = arrayfun(@(x) repmat('#',1,x),A, 'UniformOutput', false) B = '####' [1x0 char] '#' '####...

13 jours ago | 2

Answered

Delete - Variance vs standard deviation when using var() and std() with decimal values from CSV file?

Isn't this normal? As the variance is the square of the standard deviation? 0.1^2 = 0.01

Delete - Variance vs standard deviation when using var() and std() with decimal values from CSV file?

Isn't this normal? As the variance is the square of the standard deviation? 0.1^2 = 0.01

16 jours ago | 0

| accepted

Answered

Unknown operation performed.

This is called logical (or boolean) indexing. https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab....

Unknown operation performed.

This is called logical (or boolean) indexing. https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab....

17 jours ago | 0

| accepted

Solved

Extract leading non-zero digit

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

17 jours ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

18 jours ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

18 jours ago

Solved

MATLAB Basic: rounding

Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

18 jours ago

Solved

Find the maximum number of decimal places in a set of numbers

Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

18 jours ago

Answered

Run Linux Terminal Command on my External ROS Device

look at wonwon0 (me) answers in the following link: https://answers.ros.org/question/255008/roslaunch-on-matlab/#291922 it sho...

Run Linux Terminal Command on my External ROS Device

look at wonwon0 (me) answers in the following link: https://answers.ros.org/question/255008/roslaunch-on-matlab/#291922 it sho...

18 jours ago | 0

Answered

Obtain the Waviness of Graph

Does this help you get what you wnat (didn t have the time to finish with the loading ond plotting of data 1) here is the c...

Obtain the Waviness of Graph

Does this help you get what you wnat (didn t have the time to finish with the loading ond plotting of data 1) here is the c...

19 jours ago | 1

Answered

reading values from file

You are over writing the variables each loop! I'd do it this way: data = csvread('C:\Users\User\Documents\Signal processin...

reading values from file

You are over writing the variables each loop! I'd do it this way: data = csvread('C:\Users\User\Documents\Signal processin...

19 jours ago | 1

Answered

How to measure object size from an image in real world if distance is known ?

here is the answer: https://www.scantips.com/lights/subjectdistance.html scroll to where there is a diagram with the lense, ...

How to measure object size from an image in real world if distance is known ?

here is the answer: https://www.scantips.com/lights/subjectdistance.html scroll to where there is a diagram with the lense, ...

20 jours ago | 0

Answered

2D Matrix revolution

Have you tried this function? https://www.mathworks.com/matlabcentral/fileexchange/15559-solids-of-revolution

2D Matrix revolution

Have you tried this function? https://www.mathworks.com/matlabcentral/fileexchange/15559-solids-of-revolution

20 jours ago | 0

Answered

Mean of array columns with condition

I tested my solution with these matrices: a = rand(6,3) B=[1;0;1;1;0;1]; means_active = mean(a(logical(B)),2); seems to wo...

Mean of array columns with condition

I tested my solution with these matrices: a = rand(6,3) B=[1;0;1;1;0;1]; means_active = mean(a(logical(B)),2); seems to wo...

20 jours ago | 0

Answered

How do I build a text file with readable variable names?

I would try to set the 'PreserveVariableNames' flag to 'true' when uusing datastore. something like: datastore('very_file.cs...

How do I build a text file with readable variable names?

I would try to set the 'PreserveVariableNames' flag to 'true' when uusing datastore. something like: datastore('very_file.cs...

23 jours ago | 0

| accepted

Answered

When matrix is close to singular or badly scaled

My best guess is that when a matrix is close to being singular, tiny numerical errors will have an increased impact on the resul...

When matrix is close to singular or badly scaled

My best guess is that when a matrix is close to being singular, tiny numerical errors will have an increased impact on the resul...

23 jours ago | 1