Solved


Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

mer än 6 år ago

Solved


So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

mer än 6 år ago

Solved


Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not. eg. x = 1884 output = 1 eg. x = 3 output = 0

mer än 6 år ago

Solved


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

mer än 6 år ago

Solved


Matlab Basics - Switching Assignments
Switch assignments for variables x and y, for example start with x = 1 and y = 3 end with y = 1 and x = 3 Do NOT simply r...

mer än 6 år ago

Solved


UICBioE240 problem 1.4
So if A = [ 1 2 3; 4 5 6; 7 8 9] B = [ 3 3]

mer än 6 år ago

Solved


UICBioE240 problem 1.15
Calculate: sin(pi/6) cos (pi) tan(pi/2)

mer än 6 år ago

Solved


square root
Find the square root (y) of an input (x).

mer än 6 år ago

Solved


Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

mer än 6 år ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

mer än 6 år ago

Solved


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

mer än 6 år ago

Solved


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

mer än 6 år ago

Solved


Equal to their cube
Tell me three real numbers that are equal to their cubes?

mer än 6 år ago

Solved


03 - Matrix Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3d.png>> A 3x4 NaN (Not a Number) matrix (Hint: use ...

mer än 6 år ago

Solved


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;...

mer än 6 år ago

Solved


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

mer än 6 år ago

Solved


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

mer än 6 år ago

Solved


Product of Array
Given an array of numbers. Get the product of the array.

mer än 6 år ago

Solved


Determine the mean of matrix
Determine the mean of matrix without using mean function Hint: use simple algorithm

mer än 6 år ago

Solved


Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

mer än 6 år ago

Solved


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

mer än 6 år ago

Solved


Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1

mer än 6 år ago

Solved


07 - Common functions and indexing 5
Create the vector _lin_: <<http://samle.dk/STTBDP/Assignment1_7e.png>> (the integers from 1 to 20) Make every other val...

mer än 6 år ago

Solved


Find nearest prime number less than input number
Find nearest prime number less than input number . For example: if the input number is 125, then the nearest prime number whi...

mer än 6 år ago

Solved


Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

mer än 6 år ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

mer än 6 år ago

Solved


Least common multiple of many numbers
1:6 -> 60

mer än 6 år ago

Solved


Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
Example: in = magic(5) in = 17 24 1 8 15 23 5 7 14 16 4 6 13 20 ...

mer än 6 år ago

Solved


Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

mer än 6 år ago

Solved


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

mer än 6 år ago

Load more