Gelöst


Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

etwa 21 Stunden vor

Gelöst


Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...

etwa 21 Stunden vor

Gelöst


Generate pi using logarithm
Generate pi using logarithm

etwa 21 Stunden vor

Gelöst


factorial_calc(n)
Write a MATLAB function called factorial_calc(n) that takes a positive integer n as input and calculates the factorial of n. The...

etwa 21 Stunden vor

Gelöst


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

etwa 21 Stunden vor

Gelöst


Distancia Vetores
Dados dois vetores a = (x1, y1) e b = (x2, y2). Calcule a distância entre os vetores e verifique se estão perto (distancia < 10)...

etwa 21 Stunden vor

Gelöst


Return the sequence element I
Given a positive integer, x, return a positive integer, y, which is the xth term in the sequence [1 2 2 3 3 3...], in which one ...

etwa 21 Stunden vor

Gelöst


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

etwa 21 Stunden vor

Gelöst


Simple Circuit of Resistors

etwa 21 Stunden vor

Gelöst


Back to basics 20 - singleton dimensions
Covering some basic topics I haven't seen elsewhere on Cody. Remove the singleton dimensions from the input variable (e.g. if...

etwa 21 Stunden vor

Gelöst


Basics: 'Find the eigenvalues of given matrix
Find the eigenvalues y for a given matrix x.

etwa 21 Stunden vor

Gelöst


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

ein Tag vor

Gelöst


easy problem
Find the last element of the array

ein Tag vor

Gelöst


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

ein Tag vor

Gelöst


square of a number
find square of a given number

ein Tag vor

Gelöst


square root
Find square root of given number

ein Tag vor

Gelöst


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

ein Tag vor

Gelöst


Multiply pi
Multiply pi with x!

ein Tag vor

Gelöst


Remove the Zero
Given an array n, remove all zeros

ein Tag vor

Gelöst


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

ein Tag vor

Gelöst


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

ein Tag vor

Gelöst


Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts example: a = 1, b = 2 output = 1 1.25 ...

ein Tag vor

Gelöst


Nearest
*Description* Find the value and index of the element in vector _x_ that is nearest to value _y_. _y_ should be able to be a ...

ein Tag vor

Gelöst


How many monitors are connected ?
How to obtain the numbers of monitors connected to your computer ?

ein Tag vor

Gelöst


collision
several cars (n) were involved in this collision, the input matrix (vm) has n rows and two columns, first column for velocity an...

ein Tag vor

Gelöst


DC chopper
Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then...

ein Tag vor

Gelöst


Filter AC, pass DC
Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

ein Tag vor

Gelöst


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

ein Tag vor

Gelöst


Find the sum of n squares
What is the sum of the squares of the first n integers?

ein Tag vor

Gelöst


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

ein Tag vor

Mehr laden