Resuelto


Tony's trick for duplicating an mx1 vector n times
Without using repmat, or for loop, or concatenation, create a function to duplicate a vector, v, a specified number of times, n....

alrededor de 5 años hace

Resuelto


User defined nextpow function
Create a function which will take 2 arguments as n and x, and return y, where, n^y >= abs(x). [ Similar to builtin "nextpow2" fu...

alrededor de 5 años hace

Resuelto


ABBREVIATION
Abbreviate the given string. Consider Only Capital Letters. EXAMPLE If input is 'Abbreviation of The Given String' then ou...

alrededor de 5 años hace

Resuelto


Make a rainbow matrix (follow-up to checkerboard matrix)
Given an integer n, make an n-by-n matrix as shown below. The a(1,1) should be 0. As we move away from the top-left, the number ...

alrededor de 5 años hace

Resuelto


Area under standard normal curve

alrededor de 5 años hace

Resuelto


Produce the following matrix
Produce the following matrix x = [2 3 4] y_correct = [1 1/2 1/3; 2 1 1/4; 3 4 1];

alrededor de 5 años hace

Resuelto


Carnot cycle
Carnot engine is considered the most efficient heat engine.When operated between two temperatures T1 and T2, the efficiency is g...

alrededor de 5 años hace

Resuelto


Find the function
Given a set of point (x,y) and the coordinate x of a new point, find the y value of new point.

alrededor de 5 años hace

Resuelto


Sum of infinite series.

alrededor de 5 años hace

Resuelto


Check availability of a number in an array
An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is prese...

alrededor de 5 años hace

Resuelto


Sum of self power series
The series, 1^1,2^2,3^3,4^4,.... Find the sum of such series when x terms are given.

alrededor de 5 años hace

Resuelto


iteration of N blank spot
we have N spot which can be blank o filled calculate the number of iteration for these spots. e.g. N=2 1- blank blank 2- bl...

alrededor de 5 años hace

Resuelto


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

alrededor de 5 años hace

Resuelto


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

alrededor de 5 años hace

Resuelto


My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.
given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

alrededor de 5 años hace

Resuelto


square a vector-Given the variable x as your input, square it and put the result in y.
function y = (x)squared y = x; end

alrededor de 5 años hace

Resuelto


Find the definite integral of various linear functions
A definite integral had a minimum and maximum limit. When you solve this type of problem you must use both quad and the trapz fu...

alrededor de 5 años hace

Resuelto


Counting Squares
An algorithm starts with a single square and on each of its next iterations adds new squares all around the outside as shown bel...

alrededor de 5 años hace

Resuelto


Odd elimination
Inspired by Project Euler problem #539 You'll be given a vector from 1 to n; Going from left to right, remove the first n...

alrededor de 5 años hace

Resuelto


Remove white space from the string
Remove the white spaces (trailing and leading) from the input variable

alrededor de 5 años hace

Resuelto


Separate even from odd numbers in a vector - with a loop
*Using a loop*, rearrange a vector of integers such that the odd numbers appear at the beginning, and even numbers at the end. T...

alrededor de 5 años hace

Resuelto


Alternating 1´s and 0´s in a matrix
Given an odd number n, write a function that creates a matrix y with dimension nxn alternating 1's and 0's, and starting with 1 ...

alrededor de 5 años hace

Resuelto


Get the value 100
Knowing that 123-45-67+89=100, write a function that gives this result for any order of the digits in the input. Otherwise, the ...

alrededor de 5 años hace

Resuelto


Determine if input is a valid AHP evaluation matrix
Input is a matrix. Output is a true or false statement (1 or 0). Return true if input is a valid Analytic Hierarchy Process eval...

alrededor de 5 años hace

Resuelto


Combined Ages 1 - Symmetric, n = 3
You have probably seen the common riddle wherein combined ages are provided and you must determine the individual ages. For exam...

alrededor de 5 años hace

Resuelto


Ackerman Function

alrededor de 5 años hace

Resuelto


Can I make a right triangle ?
Input(a) - is vector with any amount of values. Interpreted as legths of sides. Output(b): * Is true if there are any 3 va...

alrededor de 5 años hace

Resuelto


Laws of motion 6

alrededor de 5 años hace

Resuelto


Laws of motion 5

alrededor de 5 años hace

Resuelto


Laws of motion 4

alrededor de 5 años hace

Cargar más