Community Profile

photo

Jide Williams


Last seen: plus de 2 ans il y a Actif depuis 2018

Followers: 0   Following: 0

Statistiques

All
  • Thankful Level 2
  • Solver
  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

presque 3 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

presque 3 ans il y a

A résolu


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

presque 3 ans il y a

A résolu


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:...

presque 3 ans il y a

Question


storing fprintf as an array.
The outcome of the code below gives H T H T T depending on random function. How do I store the outcome of the 20 iterations into...

environ 4 ans il y a | 2 réponses | 0

2

réponses

Question


Function for Compliance Matrix
I want to know what I am doing wrong with these codes function y = Sbar(S,theta) %Sbar This function returns the transformed r...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

A répondu
Radius of Curvature Array
the code isn't wrong xinput = x(i), x(i+1), x(i+2); and y(i), y(i+1), y(i+2); it just that its not looping all through the 77 po...

environ 5 ans il y a | 0

Question


Radius of Curvature Array
The code generates radius of curvatures for three points(coordinates x1,y1 x2,y2 and x3,y3. However, i have a set of coordinates...

environ 5 ans il y a | 2 réponses | 0

2

réponses

Question


Hi, I am trying to develop an algorithm that will plot random disc(circles) in square axis and then find the probality of isolated circles, i.e circle(s). Although the code worked but I am unsure its right if you look at the probability.
r = 0.05; a = 1-r; b = r; nc = 50; x = (a-b) .*rand(nc,1) + b; y = (a-b) .*rand(nc,1) + b; centers = [x y]; radii = r.*on...

plus de 5 ans il y a | 1 réponse | 0

0

réponse

Question


Hello, I am trying to plot circles and then get rid of the circles touching the axis as shown when you run my code. After this, I am trying to find the distance between these circles so as to know the circle that is farthest from the rest. THANKS
%generate random numbers %centers of circle x = rand(100,1); y = rand(100,1); centers = [x y]; radii = 0.05.*ones(length(...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

A répondu
Plotting multiple objects on same axis
Ok, Thanks

plus de 5 ans il y a | 0

Question


Plotting multiple objects on same axis
I am new to MATLAB but I am trying to plot multiple circles on the same axis. I am using rand function to generate the centers b...

plus de 5 ans il y a | 4 réponses | 0

4

réponses

Question


What is percolation algorithm
Hello, can someone help with codes for 'percolation' algorithm. Using discs in the N*N grid. I do not mind any type of algorith...

plus de 5 ans il y a | 1 réponse | 0

0

réponse