Resuelto


Guess the number I'm thinking of (Part 2)
Have you tried the original "Guess the number I'm thinking of" (Problem 44630)? This problem is just like that, except that the...

2 meses hace

Resuelto


ICFP2021 Hole-In-Wall: Figure Validation
The ICFP held its annual 3-day contest in July 2021 with Hole-In-Wall. Contest Specification. The contest folds the figure in R...

2 meses hace

Resuelto


Backgammon #2 - Your turn!
A previous problem in this occasional series (Problem 45967) set up a possible representation of a backgammon board: White ston...

2 meses hace

Resuelto


Truncatable Primes
A truncatable prime is a leading digit is successively removed, then all resulting numbers are prime. Wiki When given a number...

2 meses hace

Resuelto


Sort Except Zeros
Sort the numbers in a vector. But the position of zeros should not be changed. Example: sort_except_zeros( [5 3 0 0 2 4] ) == [...

2 meses hace

Resuelto


Solve an ODE: diffusion problem 1

2 meses hace

Resuelto


Draw Letter 'L'

2 meses hace

Resuelto


Locate a family on a long street

2 meses hace

Resuelto


Area of the yellow shaded region

2 meses hace

Resuelto


Number Puzzle - 049

2 meses hace

Resuelto


Upper case and lower case!

2 meses hace

Resuelto


Product of elements in a column

2 meses hace

Resuelto


GPA
Math's credit is 5 and you got x | Physics's credit 7 and you got y what is your GPA

2 meses hace

Resuelto


Most Frequent Characters
Given a document file or a character array, identify the 'n' most frequently occurring characters and the number of times each a...

2 meses hace

Resuelto


Mean number of letters per word (Hard)
The previous problem in this series is <https://www.mathworks.com/matlabcentral/cody/problems/44852-mean-number-of-letters-per-w...

2 meses hace

Resuelto


Scalar Matrix Manipulation
Assume, input x is a scalar matrix such as, x = 2 0 0 0 2 0 0 0 2 th...

2 meses hace

Resuelto


Let's Make A Deal: The Player's Dilemma 2
Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. Y...

2 meses hace

Resuelto


determine the sum of decimal part for given matrix
determine the sum of fraction part for the given matrix

2 meses hace

Resuelto


Alternative Dimensions
Given a multidimensional matrix, transform the matrix so the dimensions are in the order given by variable ord. For example, giv...

2 meses hace

Resuelto


Solve t^(a*x^2+b*x+c)=s
Solve t^(a*x^2+b*x+c)=s. Return x vector as result. Example a=1, b=2, c=1, t=3, s=15. Result x(1)= 0.5700 x(2)=-2.5700 H...

2 meses hace

Resuelto


X plus binary inverted x
Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-)...

2 meses hace

Resuelto


Construct a precedence graph from a code segment
A hypothetical MATLAB code segment containing n lines is given in the form of a cell array. The i-th cell contains the i-th line...

2 meses hace

Resuelto


Return elapsed time
Write a function that returns the amount of time it takes to run the function, as measured by tic and toc. Your answer must be c...

2 meses hace

Resuelto


Polybius Square
Given a string, calculate the coordinates. Input will be always in lowercase. If string is a sentence then use 0 (zero) to indic...

2 meses hace

Resuelto


Problem Set 2
Make a calculator by the four main operators (op): + - * / And the two numbers (n1, n2). Don't forget to check to divisio...

2 meses hace

Resuelto


Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then... If it's length from 1 to 5, sz = ...

2 meses hace

Resuelto


Switch-Case-Otherwise
You should make random numbers to 10, by 3 rows and 3 columns. Cases from 1 to 3, b = true. Otherwise, b = false.

2 meses hace

Resuelto


NOT
If a not equal to zero, b = true, else, b = false.

2 meses hace

Resuelto


OR
If a greater than zero or c less than 10, b = true, else, b = false.

2 meses hace

Cargar más