Resuelto


Number Puzzle - 048

6 meses hace

Resuelto


Stacking vectors into a matrix
Given a 4x1 vector a, and a 2x2 matrix b, create a matrix M in which the first 2 rows are each identical to a and the last two r...

6 meses hace

Resuelto


Repeat The Components of Matrix
Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated ne...

6 meses hace

Resuelto


Homemade: Control Charts
This problem is a simple version of control charts in statistics. Intput consists from 30 or more observations. * Upper limi...

6 meses hace

Resuelto


Compound interest - number e
A moneylender wants to receive his annual interest of 12% more frequently. If he receives his interest rate every six months,...

6 meses hace

Resuelto


Draw '5' in Chinese.
Draw a x-by-x matrix '五' using 1s and 0s. Example: x=5 ans= [1 1 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 1 1 1] x=7...

6 meses hace

Resuelto


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

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

6 meses hace

Resuelto


[Thermodynamics] Estimate boiling point of n-alkanes
Estimate the boiling point (in Kelvin) of n-Alkanes (n >= 2) using the group contribution method of Joback --- ...

6 meses hace

Resuelto


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

6 meses hace

Resuelto


Siren frequency and Doppler effect.
The Doppler effect is described on OpenStax University Physics at https://openstax.org/books/university-physics-volume-1/pages/1...

6 meses hace

Resuelto


Four digit number ABCD reversal
write a MATLAB function to find the four-digit number ABCD when multiplied by 4 returns DCBA. The function takes an input x=4.

6 meses hace

Resuelto


Diagonal Cross Mandala
Generate an N×N matrix with diagonals highlighted to form an artistic X-shaped mandala pattern. e.g. N = 5; 1 0 0...

6 meses hace

Resuelto


Person of interest?
given a person_of_interest, what is his_name?

6 meses hace

Resuelto


Find argmax of a function
You are given vectors x and y (=f(x)). Return the element of x for which f(x) is maximized.

6 meses hace

Resuelto


Find Next Strictly Greater Element
Given an array of numbers, create a new array where each element represents the next strictly greater element to the right of th...

6 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] ) == [...

6 meses hace

Resuelto


2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cornelius...

6 meses hace

Resuelto


07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6 Magic squares are defined as square matrices, where the sum of a...

6 meses hace

Resuelto


Small Riddle
Mr. Smith has two children. If the older child is a boy, what are the odds that the other child is also a boy?

6 meses hace

Resuelto


Calculate the peak value of square wave
Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

6 meses hace

Resuelto


Calculate Alcohol By Volume with Original and Final Gravity
Given an initial gravity of un-fermented wort (OG) and a final gravity of fermented wort (FG), better known as beer, it is possi...

6 meses hace

Resuelto


Usage of varargout
This Challenge is to demonstrate usage of varargout. Output a cell array using varargout of magic squares of size 1 thru n. ...

6 meses hace

Resuelto


Draw 'P' !!!
Draw a n by n matrix 'P' using 0s and 1s. (n is odd and greater than 4) if n=5 , then the output will be [1 1 1 1 1 1 0 0 0...

6 meses hace

Resuelto


Problem 44444 !!! free beer everyone
just say hallelujah to solve this problem

6 meses hace

Resuelto


Find the Pattern 3

6 meses hace

Resuelto


Create cell array of numeric arrays
Convert the input to a cell array, but only if necessary. If the input is a numeric array, return a 1-by-1 cell array contain...

6 meses 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?

6 meses hace

Resuelto


Gamma Function
Evaluate the <http://en.wikipedia.org/wiki/Gamma_function/ Gamma Function>. Gamma_val(0) = Inf Gamma_val(1.2) = 0.9182

6 meses hace

Cargar más