Solved


For a given linear index as input for n sized square matrix, find corresponding row and column.
If input is 1, the row and column will be 1 and 1 respectively.

12 dagar ago

Solved


Woodall number
Test whether the input is a Woodall number: <http://en.wikipedia.org/wiki/Woodall_number> _Please do not cheat by simply chec...

12 dagar ago

Solved


Too Many Zeros, Dump Them!
Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

12 dagar ago

Solved


Draw '5' in Chinese.
Draw a x-by-x matrix '五' using 1s and 0s. Example: x=5 ans= [1 1 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 1 1 1] x=7...

12 dagar ago

Solved


Calculate the Voltage Through a Step-Up Transformer
Given a step-up transformer has a primary coil with A number loops, a secondary coil with B number loops, and a primary voltage ...

12 dagar ago

Solved


Invert a 3D rigid-body transformation
Given an SE(3) matrix representing a rigid-body motion, compute its inverse without using |inv()| or |pinv()| .

12 dagar ago

Solved


Math with Roman Numerals
Given a function R within (+,-,*,/) and two Roman numerals a & b, compute aRb in Roman numerals.

12 dagar ago

Solved


Orientation of a 3D coordinate frame
The orientation of a body-fixed frame {B} with respect to the world frame {W} is described by an SO(3) rotation matrix. Compute...

12 dagar ago

Solved


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

14 dagar ago

Solved


Square wave average calculation
Given its peak and duty cycle, calculate avg value of square wave

14 dagar ago

Solved


Detect pair of equal values in a Matrix
A 2D matrix of 2 rows and N columns with random integer numbers. A = [3 1 2 4 6 6 7; 7 3 2 1 5 2 4] ...

14 dagar ago

Solved


Hydrogens in a Saturated Hydrocarbon
Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

14 dagar ago

Solved


World Cup 2018 Prediction!
Which team will be the winner?

14 dagar ago

Solved


intervals
Write a function that takes an interval from a to b, and divides it into 6 parts.

14 dagar ago

Solved


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

14 dagar ago

Solved


Find Min and Max Differences in a Vector
Given an array of integers, return the absolute largest and smallest (non zero) difference between any two numbers in the array....

14 dagar ago

Solved


imaginary results
Return the value of the imaginary number i to the power of input argument n.

14 dagar ago

Solved


what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

14 dagar ago

Solved


basic finance application
i watch bloomberg everyday and i want to estimate a stock price stability, so i have to calculate the momentum & the rate of cha...

14 dagar ago

Solved


Portfolio diversification: choose your stocks !
we have the returns of 3 stocks for the last 4 years and we have to combine only 2 stocks that are less correlated. Example: st...

14 dagar ago

Solved


currency converter
given a rate of exchange calculate the equivalent units of 100 USD

14 dagar ago

Solved


Range of Values in a Matrix
Create a function that accepts a matrix of real numbers as input and returns the range of the values contained in the matrix. Th...

14 dagar ago

Solved


Determine pressure altitude using field elevation and altimeter setting
Given an airfield's elevation in feet (ft) and the current altimeter setting in inches of mercury (inHg), calculate the pressure...

14 dagar ago

Solved


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

14 dagar ago

Solved


JannaT is Loved By Me
JannaT was sTarTed loved by me and that time was in 2020. A year when JannaT will starT loving me when the year divided from th...

14 dagar ago

Solved


Lancer de dés
Ecrire une fonction qui imite le lancer d'un dé, i-e qui renvoie de façon aléatoire un entier entre 1 et 6. Attention cette fon...

14 dagar ago

Solved


Array Height (no usage of size)
Find the array height, the number of rows. Size may not be used.

14 dagar ago

Solved


Array Width (no usage of size)
Find the array width. Size may not be used.

14 dagar ago

Solved


sinus de pulsation a
Ecrire une fonction sinat qui prend en entrée un vecteur t (de valeurs croissantes) et renvoie un vecteur y de de même dimensi...

14 dagar ago

Solved


Loja de tintas
Faça um programa para uma loja de tintas. O programa deverá receber o tamanho em metros quadrados da área a ser pintada. Conside...

14 dagar ago

Load more