Community Profile

# Pauli Huusari

##### Last seen: 약 1달 전
734 2019 이후 총 참여 횟수

#### Pauli Huusari's 배지

세부 정보 보기...

참여 게시물
보기 기준

해결됨

"Low : High - Low : High - Turn around " -- Create a subindices vector
Let two vectors *lo* and *hi* be given. The job is to create a index vector like so idx = [lo(1):hi(1) lo(2):hi(2) ...]...

약 1달 전

해결됨

find out eigenvector of matrix
find out eigenvector of matrix A =eye(3); Answer is [0 0 1; 0 1 0; 1 0 0];

약 1달 전

해결됨

Matlab Basics II - Determine if an array has a 3rd dimension
For an array A, determine whether it has 3 dimensions, return 0 if x is only 2D, and 1 if x is 3D

약 1달 전

해결됨

Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

약 1달 전

해결됨

Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

약 1달 전

해결됨

Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

약 1달 전

해결됨

Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...

약 1달 전

해결됨

Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

약 1달 전

해결됨

Back to basics 19 - character types
Covering some basic topics I haven't seen elsewhere on Cody. Return the number of punctuation characters in the input variabl...

약 1달 전

해결됨

Sum of integers numbers
Sum of the numbers from 1 to 100

약 1달 전

해결됨

Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

약 1달 전

해결됨

Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

약 1달 전

해결됨

Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

약 1달 전

해결됨

Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...

약 1달 전

해결됨

Matlab Basics II - Log and natural log
Write a function that calculates the difference between the log and natural log of a vector, to two decimal places example: ...

약 1달 전

해결됨

Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

약 1달 전

해결됨

Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

약 1달 전

해결됨

Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

약 1달 전

해결됨

Find out Harmonic mean.
Find out Harmonic mean.

약 1달 전

해결됨

Find the sum of n squares
What is the sum of the squares of the first n integers?

약 1달 전

해결됨

Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.

약 1달 전

해결됨

Find Out sum of principal diagonal element of given matrix
Find out sum of principal diagonal element of given matrix If A=[1 0 0; 0 1 0;0 0 1], then answer must be 3.

약 1달 전

해결됨

Matlab Basics - Set unwanted parts of a vector to zero
Consider a vector x, of length >= 7, write a script to set elements 2, 5, and 6 to zero. Example x = [1 2 3 4 5 6 7] --> ...

약 1달 전

해결됨

Back to basics 14 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of all MATLAB keywords

약 1달 전

해결됨

find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

약 1달 전

해결됨

Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

약 1달 전

해결됨

Replace May with April
For instance, if the input is input_str = 'The flowers may bloom in April'; then the output is output_str = 'The flo...

약 1달 전

해결됨

06 - Matrix Equations 3
Define the matrices _aMat_, _bMat_, and _cMat_: <<http://samle.dk/STTBDP/Assignment1_3a.png>> ( _aMat_ = 9x9 matrix full o...

약 1달 전

해결됨

03 - Matrix Variables 5
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3e.png>>

약 1달 전