A résolu


Simpsons's rule (but not Homer Simpson)
I wonder what Homer Simpson would have thought of Simpson's rule? Somehow I doubt his thoughts would have included the phrase Ne...

presque 4 ans il y a

A résolu


Total energy

presque 4 ans il y a

A résolu


Potential energy calculation

presque 4 ans il y a

A résolu


Kinetic energy calculation

presque 4 ans il y a

A résolu


Laws of motion 7

presque 4 ans il y a

A résolu


Laws of motion 6

presque 4 ans il y a

A résolu


Laws of motion 5

presque 4 ans il y a

A résolu


Laws of motion 4

presque 4 ans il y a

A résolu


Laws of motion 3

presque 4 ans il y a

A résolu


Laws of motion 2

presque 4 ans il y a

A résolu


Laws of motion 1

presque 4 ans il y a

A résolu


Find the repeating elements and repetitions of a row vector.
So let's say that x is a vector, for example, x = [4, 4, 5, 5, 5, 6, 7, 7,8, 8, 8, 8] Now we want to get the following two ve...

environ 4 ans il y a

A résolu


Vertical matrix sort
Given a matrix x with n rows and m columns, return a matrix y with 2n rows and m columns, such that every column in x is sorted ...

environ 4 ans il y a

A résolu


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

environ 4 ans il y a

A résolu


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

environ 4 ans il y a

A résolu


Triangle of numbers
Create a matrix with the integers from 1 to |n| arranged in a triangular shape. Every row |i| of the matrix contains |i| inte...

environ 4 ans il y a

A résolu


Back to basics 2 - Function Path
Covering some basic topics I haven't seen elsewhere on Cody. Given a string that is the name of a MATLAB function, return a s...

environ 4 ans il y a

A résolu


Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

environ 4 ans il y a

A résolu


Given a matrix A return a vector of the product of the elements in each column using a loop without using prod.
--------------------- for m: 3 1 3 3 10 1 9 1 9 4 1 4 5 6 5 ...

plus de 4 ans il y a

A résolu


Product of Each Column
Given a matrix |mat| with |n| columns, return a row vector |v| of length |n|, where every element in |v| is the product of the |...

plus de 4 ans il y a

A résolu


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

plus de 4 ans il y a

A résolu


Area of a pentagon
Given the side of a regular pentagon and its apothem return the area of pentagon. Remember the area of pentagon is calculate ...

plus de 4 ans il y a

A résolu


Find the area of ​​the square
There are *n²* circles inscribed in the square ABCD. The perimeter of each circle is *aπ* <<http://imgfz.com/i/3wzCeAT.png>> ...

plus de 4 ans il y a

A résolu


Times 5
Try out this test problem first. Given the variable x as your input, multiply it by five and put the result in y. Examples...

plus de 4 ans il y a

A résolu


Times 10
Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...

plus de 4 ans il y a

A résolu


Doubling elements in a vector (★★)
(copy of prob. 1024) Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] t...

plus de 4 ans il y a

A résolu


Mo money, mo math #2! (★★★)
(adapted from Prob 9 Cody team) You have a matrix for which each row is a person and the columns represent the number of quar...

plus de 4 ans il y a

A résolu


Sort even numbers from 1 to 100
Sort even numbers from 1 to 100 for ex: x=1:100

plus de 4 ans il y a

A résolu


Sum of terms in a series 1 (★★★)
Given x and n, compute the following sum: |x|+|x|^(1/2)+|x|^(1/3)+|x|^(1/4)+|x|^(1/5) ... + |x|^(1/n) where ||x|| indica...

plus de 4 ans il y a

A résolu


Power Numbers
Find the n-th power of m.

plus de 4 ans il y a

Charger plus