Solved

Perimeter of a semicircle

Given the diameter d, find the perimeter of a semicircle

17 Tage ago

Solved

Height of a right-angled triangle

Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

17 Tage ago

Solved

Problem for beginners

Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

17 Tage ago

Solved

Element-wise vector product

Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

17 Tage ago

Solved

Simple Matrix

Make the following matrix without typing it in one by one. [1 2 3; 2 4 6; 4 8 12] x=[1 2 3].

17 Tage ago

Solved

Find the sum of all integers in a given matrix

Finding sum of all integers in a given matrix

17 Tage ago

Solved

Finding sum of even numbers in a vector.

Find the sum of all the even numbers present in the input vector x. Examples: Input x = [1 2 3 4] Output y is 6 Input...

17 Tage ago

Solved

Four digit number ABCD reversal

write a MATLAB function to find the four-digit number ABCD when multiplied by 4 returns DCBA. The function takes an input x=4.

17 Tage ago

Solved

Equilateral Triangle

The length of one side of the equilateral triangle is a. Calculate the area of the equilateral triangle.

17 Tage ago

Solved

Calculate a Damped Sinusoid

The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

etwa 2 Monate ago

Solved

Solve a System of Linear Equations

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

etwa 2 Monate ago

Problem

Cryptography with A Square Matrix : Decoding

Previous Problem: <https://www.mathworks.com/matlabcentral/cody/problems/45279-cryptography-with-a-square-matrix-encoding Crypto...

4 Monate ago | 1

Problem

Cyrptography with A Square Matrix : Encoding

Matrix inverse operation can be used to encode or decode of a message. For example text = 'matlab & cody'. numeric e...

4 Monate ago | 0

Solved

Last non-zero digit

Given a number n, find the last non-zero digit of the factorial of that number. You need to take care of the large values of n....

4 Monate ago

Solved

Pell numbers

Find the nth pell number <https://en.wikipedia.org/wiki/Pell_number>

4 Monate ago

Solved

Alternate list of elements

Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.

4 Monate ago

Solved

Zero

given an integer a, find the smallest possible integer b(b>0) such that their bitwise logical AND is zero. * if a=11(1011) t...

4 Monate ago

Question

Problem running methods in .jar files

There is a .jar file (https://github.com/ahmetaa/zemberek-nlp) called "zemberek" which is a Natural Language Processing tools fo...

5 Monate ago | 1 answer | 0

Solved

Question 1

Implement a function named q1 with one input argument named n. This function should return the multiplication of all odd numbers...

5 Monate ago

Solved

How many Christmas presents under the tree?

For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

5 Monate ago

Solved

Count digits

Count total number of digits from 1 to n. * n=13 * output=17 since from [1-9] total 9 digits.[10-13] total 4*2=8 digits.

5 Monate ago

Solved

check whether a number is a pentatope number

<https://en.wikipedia.org/wiki/Pentatope_number>

5 Monate ago

Problem

Double Factorial

Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

7 Monate ago | 1

Solved

Create a "+" flag

Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

8 Monate ago

Solved

Champernowne Constant

The <http://en.wikipedia.org/wiki/Champernowne_constant Champernowne constant> is a real number whose digits in decimal represen...

8 Monate ago

Solved

P-smooth numbers

This Challenge is to find <https://en.wikipedia.org/wiki/Smooth_number P-smooth number> partial sets given P and a max series va...

8 Monate ago