Community Profile

# Lucas Schakel

Last seen: 7日 前 2021 以来アクティブ

Use MATLAB for MBSD, Embedded Control Systems

バッジを表示

#### Content Feed

Find Logic 19

Find Logic 10

Find Logic 9

Find Logic 8

Find Logic 7

Find Logic 6

Find Logic 4

Find Logic 3

Find Logic 1

Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

Given input in radians, output to degrees

Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

You just measured its surface area, that is the input.

Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

Create a vector
Create a vector from 0 to n by intervals of 2.

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.