Community Profile

# Tom Odak

Last seen: 2 giorni fa Attivo dal 2021

Master Student Vehicle Engineering participating in Formula Student Germany

Programming Languages:
Python, C++, MATLAB
Spoken Languages:
English, German
Professional Interests:
Vehicle Dynamics, Automotive, Power and Energy Systems

All

Visualizza badge

#### Content Feed

Visto da

Risolto

Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

circa 2 mesi fa

Risolto

Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

circa 2 mesi fa

Risolto

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

circa 2 mesi fa

Risolto

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

circa 2 mesi fa

Risolto

Make a Plot with Functions
Make a plot and test

circa 2 mesi fa

Risolto

Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

circa 2 mesi fa

Risolto

Dog Statistics
The vectors ht and wt contains the heights and weights of 20 golden retrievers. In some cases, it was not possible to make both ...

circa 2 mesi fa

Risolto

There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

circa 2 mesi fa

Risolto

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

circa 2 mesi fa

Risolto

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

circa 2 mesi fa

Risolto

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

circa 2 mesi fa

Risolto

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

circa 2 mesi fa

Risolto

Return area of square
Side of square=input=a Area=output=b

circa 2 mesi fa

Risolto

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

circa 2 mesi fa

Risolto

Determine if x is a combination of m and n
Given positive integers x, m, and n, determine if x can be written as x = am + bn for any (non-negative) integers a and b. Your ...

circa 2 mesi fa

Risolto

Generate this matrix
Generate the following matrix. n = 2; out = [-4 -3 -2 -1 0 -3 -2 -1 0 1 -...

circa 2 mesi fa

Risolto

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

circa 2 mesi fa

Risolto

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

circa 2 mesi fa

Risolto

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

circa 2 mesi fa

Risolto

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

circa 2 mesi fa

Risolto

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

circa 2 mesi fa

Risolto

Find max
Find the maximum value of a given vector or matrix.

circa 2 mesi fa

Risolto

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

circa 2 mesi fa

Risolto

Inner product of two vectors
Find the inner product of two vectors.

circa 2 mesi fa

Risolto

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

circa 2 mesi fa

Risolto

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

circa 2 mesi fa

Risolto

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

circa 2 mesi fa

Risolto

Calculating Student Grades
The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...

circa 2 mesi fa

Risolto

Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

circa 2 mesi fa

Risolto

Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

circa 2 mesi fa