Resuelto


Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

más de 6 años hace

Resuelto


Problem for beginners
M is a nxm matrix. Swap the fist and the second last column with eachother. X=[1 2 3;4 5 6;7 8 9] Y=[2 1 3;5 4 6;8 7 9]

más de 6 años hace

Resuelto


Problem for beginners
Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

más de 6 años hace

Resuelto


Inscribed circle in a triangle
A circle of radius r is inscribed in a triangle. In the figure, AC=x and BC=y. values of x & y are given. Find the ar...

más de 6 años hace

Problema


Inscribed circle in a triangle
A circle of radius r is inscribed in a triangle. In the figure, AC=x and BC=y. values of x & y are given. Find the ar...

más de 6 años hace | 2 | 17 solvers

Resuelto


Find the stride of the longest skip sequence
We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....

más de 6 años hace

Resuelto


Sub-sequence - 03
Given three sequences, find the length of the longest common subsequence. It is similar to the previous problem -- <https...

más de 6 años hace

Problema


Sub-sequence - 03
Given three sequences, find the length of the longest common subsequence. It is similar to the previous problem -- <https...

más de 6 años hace | 3 | 19 solvers

Resuelto


Sub-sequence - 02
Given two sequences, find the length of the longest common subsequence. a=[1,1,1,1,1,2,3,1,4] b=[2,3,0,0,9,5,4,1] longe...

más de 6 años hace

Problema


Sub-sequence - 02
Given two sequences, find the length of the longest common subsequence. a=[1,1,1,1,1,2,3,1,4] b=[2,3,0,0,9,5,4,1] longe...

más de 6 años hace | 2 | 24 solvers

Resuelto


Sub-sequence - 01
Find the length of the longest increasing subsequence in the given array. a=[2,4,2,1,3,5,6] longest increasing subsequen...

más de 6 años hace

Problema


Sub-sequence - 01
Find the length of the longest increasing subsequence in the given array. a=[2,4,2,1,3,5,6] longest increasing subsequen...

más de 6 años hace | 1 | 25 solvers

Resuelto


Find the sum of all integers in a given matrix
Finding sum of all integers in a given matrix

más de 6 años hace

Resuelto


Find the sum of all integers in a given matrix
Finding sum of all integers in a given matrix

más de 6 años hace

Resuelto


Squares of odd numbers upto a given range
Find the squares of odd numbers upto a given range. If Given x=6 return y=(1^2,3^2,5^2) y=1,9,25 If Given x=5 retu...

más de 6 años hace

Resuelto


Fibonacci Word
F1='0' F2='1' F3 is the catenation of the previous two. So, F3 = cat(F2,F1)='10'. similarly, F4 = cat(F3,F2...

más de 6 años hace

Problema


Fibonacci Word
F1='0' F2='1' F3 is the catenation of the previous two. So, F3 = cat(F2,F1)='10'. similarly, F4 = cat(F3,F2...

más de 6 años hace | 2 | 25 solvers

Resuelto


Slicing the cube
A bored matlab enthusiast has a cube with volume n^3. He decides to paint the entire surface of the cube red. Then, with slices...

más de 6 años hace

Resuelto


Singular Value Decomposition
Calculate the three matrices of the singular value decomposition (A = U*S*V^T) for each provided matrix. U and V are square unit...

más de 6 años hace

Resuelto


Characterize fluid flow in a pipe as to laminar or turbulent
In fluid mechanics, characterizing the flow in a pipe is essential to predicting its behavior. The flow pattern can either be la...

más de 6 años hace

Resuelto


Convert a temperature reading from Celsius to an unknown scale
Two of the most famous temperature scales are the Celsius and the Fahrenheit scale. In reality, however, there are so many other...

más de 6 años hace

Resuelto


Find an optimal placement of coolers on a grid
In a certain chemical plant, 6 new pieces of cooling equipment (coolers) are to be installed in a vacant space. This vacant spac...

más de 6 años hace

Resuelto


Pascal's Equilateral triangle inside a Matrix!!!
Given a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'. number of row, n = ...

más de 6 años hace

Resuelto


Parsing Expressions - Binary Arithmetic Operators I
Parse and evaluate expressions like these: '1 + 2' '51 - 78' '42 * 9' The only operators are +, -, *. Both argu...

más de 6 años hace

Resuelto


Construcción de matrices a partir de vectores
Construye la matriz A=[1 2 2 1; 2 2 3 3;2 3 3 4; 1 3 4 4] utilizando los siguientes vectores. c=[1 2 3 4]; d=[2 3 4]; b...

más de 6 años hace

Resuelto


Simple Matrix
Make the following matrix without typing it in one by one. [1 2 3; 2 4 6; 4 8 12] x=[1 2 3].

más de 6 años hace

Resuelto


Box
Give the volume of a box, x is equal to the body diagonal.

más de 6 años hace

Resuelto


Word Ladder
Given a set of words, and two other words - start and destination, Find the smallest chain from start to the destination such...

más de 6 años hace

Problema


Word Ladder
Given a set of words, and two other words - start and destination, Find the smallest chain from start to the destination such...

más de 6 años hace | 1 | 19 solvers

Resuelto


Path of least resistance - Move all direction
Extension of the wonderful <https://www.mathworks.com/matlabcentral/cody/problems/1049-path-of-least-resistance Problem 1049> (P...

más de 6 años hace

Cargar más