Answered

How to find the indeces of same values within two vectors with repetitive values?

flip it to another way should work: idx = find(ismember(B,A)==1);

How to find the indeces of same values within two vectors with repetitive values?

flip it to another way should work: idx = find(ismember(B,A)==1);

1 year ago | 0

Answered

Tolerance, correct digits

You can try to type that in Command Window and you might have your answer right there :)

Tolerance, correct digits

You can try to type that in Command Window and you might have your answer right there :)

1 year ago | 0

Answered

How we can get snapshot in matlab after a time limit say 3 second automatically

Maybe timer can help?

How we can get snapshot in matlab after a time limit say 3 second automatically

Maybe timer can help?

1 year ago | 0

Answered

3 subplots of those three intervals in a horizontal line

Do you mean using something like subplot? Eg: figure subplot(1,3,1) plot(x,A) subplot(1,3,2) plot(x,B) subplot(1,3,3) pl...

3 subplots of those three intervals in a horizontal line

Do you mean using something like subplot? Eg: figure subplot(1,3,1) plot(x,A) subplot(1,3,2) plot(x,B) subplot(1,3,3) pl...

1 year ago | 0

Answered

Graph of sin(10*x*cos(x))

Do you mean something like this? x = 0:0.01:10; plot(sin(10.*x.*cos(x)));

Graph of sin(10*x*cos(x))

Do you mean something like this? x = 0:0.01:10; plot(sin(10.*x.*cos(x)));

1 year ago | 0

Answered

How to find the unique elements in multiple strings?

unique([strsplit(A,', '), strsplit(B,', ')])

How to find the unique elements in multiple strings?

unique([strsplit(A,', '), strsplit(B,', ')])

1 year ago | 0

| accepted

Answered

How to assign a different color to lines being plotted in a loop?

* Edits: Sorry for the wrong information about the default line color. Otherwise, you can try figure hold on randColor = ra...

How to assign a different color to lines being plotted in a loop?

* Edits: Sorry for the wrong information about the default line color. Otherwise, you can try figure hold on randColor = ra...

1 year ago | 1

| accepted

Answered

How to create a black border in each figure of a subplot with colormaps?

Have you tried box?

How to create a black border in each figure of a subplot with colormaps?

Have you tried box?

1 year ago | 0

| accepted

Answered

Plot P50 value with range from P10 to P90 for different groups on same plot

Do you mean errorbar?

Plot P50 value with range from P10 to P90 for different groups on same plot

Do you mean errorbar?

1 year ago | 0

| accepted

Answered

how do i compare my test image with the one in my database using euclidean distance?

I assume that you have RGB images. Do you mean that you want to compute the euclidean distance of the pixes at same location on...

how do i compare my test image with the one in my database using euclidean distance?

I assume that you have RGB images. Do you mean that you want to compute the euclidean distance of the pixes at same location on...

1 year ago | 0

Solved

Solve a System of Linear Equations

*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

1 year ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

1 year ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

1 year ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

1 year ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

1 year ago

Answered

how to solve 'Index exceeds the number of array elements (1)'?

Your x and y are single value, so it will have error when i==2. You can make use of 'Pause on Errors' under the drop down menu ...

how to solve 'Index exceeds the number of array elements (1)'?

Your x and y are single value, so it will have error when i==2. You can make use of 'Pause on Errors' under the drop down menu ...

1 year ago | 0

| accepted

Answered

2D array in for loop problem

Unlike Python, C, C++ and other programming languages, Matlab starts the matrix index with 1 instead of 0. So just change the f...

2D array in for loop problem

Unlike Python, C, C++ and other programming languages, Matlab starts the matrix index with 1 instead of 0. So just change the f...

1 year ago | 0

| accepted

Answered

problem with xlswrite windows

I think the filename doesn't allow ':' if you use datestr(now) Try using sprintf('%02.0f',clock) Besides, I would suggest us...

problem with xlswrite windows

I think the filename doesn't allow ':' if you use datestr(now) Try using sprintf('%02.0f',clock) Besides, I would suggest us...

1 year ago | 0

| accepted

Answered

Training data in ANN (Artificial Neural Network) code

I noticed that you have saved the data in a new sheet in Excel, is that intended? If not, you can simply delete the empty sheet...

Training data in ANN (Artificial Neural Network) code

I noticed that you have saved the data in a new sheet in Excel, is that intended? If not, you can simply delete the empty sheet...

1 year ago | 0

Answered

How to calculate this values manually.

Why not just refer to the documentations of the functions at: https://www.mathworks.com/help/matlab/ref/double.cos.html https:...

How to calculate this values manually.

Why not just refer to the documentations of the functions at: https://www.mathworks.com/help/matlab/ref/double.cos.html https:...

1 year ago | 0

Answered

while loop until x amount correct digits

Have you considered using built-in function 'round'? https://www.mathworks.com/help/matlab/ref/round.html Then you can just do...

while loop until x amount correct digits

Have you considered using built-in function 'round'? https://www.mathworks.com/help/matlab/ref/round.html Then you can just do...

1 year ago | 1

| accepted

Answered

How to save every iteration of for loop and plot

What is your numerical range of raw_image? If it is between 0 and 1, all elements of Mp2 will be 0, thus the while loop while c...

How to save every iteration of for loop and plot

What is your numerical range of raw_image? If it is between 0 and 1, all elements of Mp2 will be 0, thus the while loop while c...

1 year ago | 0