Resuelto


Approximate functions 1 (★★★)
Compute the following sum for any given x and positive integer n. <<https://i.imgur.com/eUwXdSE.gif>> <> Here m! denote...

más de 3 años hace

Resuelto


solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end

más de 3 años hace

Resuelto


Sort the vector with the given index
Given x = [1 2 4 8 17] and t = [1 3 2 5 4] then y = [1 4 2 17 8].

más de 3 años hace

Resuelto


Find the nearest value to the given one

más de 3 años hace

Resuelto


Triple function composition
Given three functions f,g and h, create the composed function y=f(g(h)). Example f = @(x) x+1 g = @(x) x/2 h = @(x) ...

más de 3 años hace

Resuelto


Delete blanks at the end of string
you got to delete all blank spaces which appears at the end of string

más de 3 años hace

Resuelto


Number of o rderd pairs of integers (I,J) that can be formed.
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the condit...

más de 3 años hace

Resuelto


Count the non-zero elements along the diagonals that are immediately next to the main diagonal
Suppose, you are being told to write a matrix, *a* as input in MATLAB with having the possibility of containing zero and non-zer...

más de 3 años hace

Resuelto


Tridiagonal matrix
Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

más de 3 años hace

Resuelto


Définir une fonction creneau
Definr une fonction "creneau" qui prend en entrée un vecteur et renvoie la valeur 1 pour chaque élément positif du vecteur et...

más de 3 años hace

Resuelto


Matrizes Multiplicaveis
Dadas duas matrizes M1 e M2, verifique se as matrizes podem ser multiplicadas uma pela outra M1 = [1 2 3; 4 5 6] M2 = [7; 8; 9...

más de 3 años hace

Resuelto


Número Repetido
Dado um número inteiro N, verifique se o número é composto apenas do mesmo inteiro VerificaRepetido(123) = false; VerificaRepe...

más de 3 años hace

Resuelto


Basic Mathematics 4
Team #1 is in first place but only one point higher than Team #2. The sum of their two scores is N. What are each team’s scores...

más de 3 años hace

Resuelto


i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i". So correct the input string x, but be aware that other u...

más de 3 años hace

Resuelto


Volume difference between Ellipsoid and Sphere
Given an ellipsoid of semi principal axis (a,b,c) find the volume of the difference between this ellipsoid and the sphere with...

más de 3 años hace

Resuelto


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

más de 3 años hace

Resuelto


Period of a pendulum
Consider a small object hanging on a massless thread and pulled back from equilibrium at a small angle. Assuming that the pivot ...

más de 3 años hace

Resuelto


Linear Motion 4
A robot accelerates at a rate of A ft/s2. Assuming the robot starts from rest how much time is required to reach an object loca...

más de 3 años hace

Resuelto


Determine if a row vector has NaN
Determine if a row vector x has NaN

más de 3 años hace

Resuelto


Electric Flux
Calculate the flux passing through a surface. E is electric field, A is area.

más de 3 años hace

Resuelto


struct2values()
Convert a struct object into a column vector. You can assume that the struct elements are scalars Example: a = struct();...

más de 3 años hace

Resuelto


Please check if calorie intake is less than 300 kcal.
I like eating some puddings and some chocolate cookies around 3 o'clock. However, I care about calorie intake. Please check whe...

más de 3 años hace

Resuelto


Set x value to each even index of vector y.
Set x value to each even index of vector y.

más de 3 años hace

Resuelto


Percentage profit:2
If you are selling at x dollar, you are facing r1% profit; what will be the selling price for making r2% profit?

más de 3 años hace

Resuelto


Circular Shift Me
Given a vector v=[1 3 6 9 11], circular shift them while iterating m=[1 3 6 9 11; 11 1 3 6 9; 9 11 1 3 6; 6 9 11 1 3; 3 6 9 1...

más de 3 años hace

Resuelto


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

más de 3 años hace

Resuelto


Filter British English into American English
Given a sentence written with British spelling, return the sentence with the offending word(s) replaced with the American spelli...

más de 3 años hace

Resuelto


Back to basics 17 - white space
Covering some basic topics I haven't seen elsewhere on Cody. Remove the trailing white spaces from the input variable

más de 3 años hace

Resuelto


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

más de 3 años hace

Resuelto


Easy Sequences 23: Hat Guessing Game!
Consider the following Game Show: Hats, with numbers written on each, were placed on the heads of the participants. Participant...

más de 3 años hace

Cargar más