Gelöst


Minimum of each diagonal
The well-known <http://www.mathworks.com/help/matlab/ref/min.html min> function can operate along either the rows or the columns...

fast 11 Jahre vor

Gelöst


Maximum of each diagonal
The well-known <http://www.mathworks.com/help/matlab/ref/max.html max> function can operate along either the rows or the columns...

fast 11 Jahre vor

Gelöst


Your favourite city!
Type your favourite city.

fast 11 Jahre vor

Gelöst


Matrix which contains the values of an other matrix A at the given locations.
If you have two matrices, which together give xc and yc coordinates into another matrix, eg : xc = [1 1 1; 2 2 1]; ...

fast 11 Jahre vor

Gelöst


Sum the Infinite Series II
For any x in the range 0 < x and x < 2*pi radians, find the sum of the following infinite series: c = 1 + 1/2*cos(x) + 1/2*3...

fast 11 Jahre vor

Gelöst


Make visible max values
Make visible maximum values of rows input = [1 2 3 4 5; 6 9 8 2 1; 2 1 4 5 8; 1 9 7 9 2]; ...

fast 11 Jahre vor

Gelöst


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

fast 11 Jahre vor

Gelöst


UICBioE240 2.10
Given a vector of numbers, give the difference between the maximum and minimum values.

fast 11 Jahre vor

Gelöst


UICBioE240 2.8
Convert x number of hours into seconds.

fast 11 Jahre vor

Gelöst


UICBioE240 2.9
Find the number of minutes between September X1th 9:15AM to September X2th 2:44PM.

fast 11 Jahre vor

Gelöst


UICBioE240 2.7
Given x1 and x2, create a 3x3x3 matrix Y where (:,:,1) has all values of x1*x2, (:,:,2) has all values of x1-x2, and (:,:,3) has...

fast 11 Jahre vor

Gelöst


UICBioE240 2.6
Given a row vector containing all x1, and a column vector containing all x2, and their lengths are equal, create a column vector...

fast 11 Jahre vor

Gelöst


UICBioE240 2.5
Given a row vector containing all x1, and a column vector containing all x2, and their lengths are equal, create a row vector co...

fast 11 Jahre vor

Gelöst


UICBioE240 2.4
Given equation for half-life of a drug

fast 11 Jahre vor

Gelöst


UICBioE240 2.3
Make a 4D matrix of 4x4x3x4 containing all zeros.

fast 11 Jahre vor

Gelöst


UICBioE240 2.2
Make a 3x4 matrix that contains all ones.

fast 11 Jahre vor

Gelöst


UICBioE240 2.1
This will be useful later in the course, in conjunction to clc and clear all, what is the command to close all figure windows th...

fast 11 Jahre vor

Gelöst


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

fast 11 Jahre vor

Gelöst


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

fast 11 Jahre vor

Gelöst


Is this function available?
Sometimes it is difficult to remember which functions are not allowed on the Cody platform. Given a function as a string, return...

fast 11 Jahre vor

Gelöst


Factorizing a number into a given number of factors
Given a positive integer, n, and another positive integer, b, return a matrix, M, of width b, with the following properties: (a)...

fast 11 Jahre vor

Gelöst


Back to basics 16 - byte order
Covering some basic topics I haven't seen elsewhere on Cody. Switch the byte order of the input (i.e. if little-endian -> big...

fast 11 Jahre vor

Gelöst


List of built-in demo images
Return a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies wh...

fast 11 Jahre vor

Gelöst


Integer Sequence - II : New Fibonacci
Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

fast 11 Jahre vor

Gelöst


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

fast 11 Jahre vor

Gelöst


Computing Wind chill
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

fast 11 Jahre vor

Gelöst


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

fast 11 Jahre vor

Gelöst


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

fast 11 Jahre vor

Gelöst


Compute Fibonacci Number
Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

fast 11 Jahre vor

Gelöst


the proud tradition of zero scores in Cody
The short version is: *_your function should return a zero and also have a zero score/size_* The long version comes with a li...

fast 11 Jahre vor

Mehr laden