Risolto


UICBioE240 2.8
Convert x number of hours into seconds.

oltre 9 anni fa

Risolto


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

oltre 9 anni fa

Risolto


Make a vector of prime numbers
Input(n) - length of vector with prime numbers Output(v) - vector of prime numbers Example: * n=1; v=2 * n=3; v=[2 3 5...

oltre 9 anni fa

Risolto


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

oltre 9 anni fa

Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

oltre 9 anni fa

Risolto


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

oltre 9 anni fa

Risolto


Print true if (2)
There are 0. a=[1 2 3 4 0]; b=[1 1 1 1 1]; function(a) is true, and function(b) is false.

oltre 9 anni fa

Risolto


Box!
Given a box, find the volume of the cube. With each side = a.

oltre 9 anni fa

Risolto


Change the first and last diagonal element of the identity matrix to zero
Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

oltre 9 anni fa

Risolto


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

oltre 9 anni fa

Risolto


Create square matrix with given conditions.
Create square matrix which should be like given matrix M. M = [ n^2 n*(n-1) n*(n-2) ... n*2 n; n*(n-1)...

oltre 9 anni fa

Risolto


Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

oltre 9 anni fa

Risolto


Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

oltre 9 anni fa

Risolto


Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

oltre 9 anni fa

Risolto


UICBioE240 problem 1.6
Find the tangent line of a right triangle given the two of the sides. So if A = [1 1] B = sqrt(2)

oltre 9 anni fa

Risolto


Solving a quadratic equation
Given a, b ​​and c, Return the solution of the following quadratic equation: a*x^2 + b*x + c = 0.

oltre 9 anni fa

Risolto


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

oltre 9 anni fa

Risolto


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

oltre 9 anni fa

Risolto


Sum the squares of numbers from 1 to n
For a given value of n return the sum of square of numbers from 1 to n. Example For n = 2 then sum of squares = 5 (1^2 + ...

oltre 9 anni fa

Risolto


Is the paranthesis sequence balanced ?
Quantum mechanics and computer science are interested in <http://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation bra-kets>. Today...

oltre 9 anni fa

Risolto


UICBioE240 problem 1.5
Find the size of the matrix, then multiply both values by 10 and make it into a column vector. So if A = [ 1 2 3; ...

oltre 9 anni fa

Risolto


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

oltre 9 anni fa

Risolto


UICBioE240 problem 1.18
exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.

oltre 9 anni fa

Risolto


Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

oltre 9 anni fa

Problema


Create square matrix with given conditions.
Create square matrix which should be like given matrix M. M = [ n^2 n*(n-1) n*(n-2) ... n*2 n; n*(n-1)...

oltre 9 anni fa | 4 | 140 risolutori

Risolto


NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

oltre 9 anni fa

Risolto


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

oltre 9 anni fa

Risolto


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

oltre 9 anni fa

Risolto


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

oltre 9 anni fa

Risolto


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

oltre 9 anni fa

Carica altro