Community Profile Ramon Villamangca

Last seen: Today Active since 2018

Learner and Math Enthusiast

Programming Languages:
C++, C, Javascript, MATLAB, Assembly
Spoken Languages:
English

Statistics

All
• • • • • • • • • • • • Content Feed

View by

Solved

Time reverse indices
Time reverse the index values as follows IndexIn = [7 1 0] IndexOut = [7 6 0] Note that the indices are zero based and so...

6 hours ago

Solved

Combine complex conjugates first when computing the product of vector
Analytically, the product of complex conjugates yields a real result. When numerically computing the product of a vector contai...

9 hours ago

Solved

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

19 hours ago

Solved

Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

19 hours ago

Problem

Easy Sequences 66: Fractional Part of Sum of Consecutive Powers over a Prime
Given three postive integers, , and , create the function , defined as follows: Where is the th prime and the s...

1 day ago | 1 | 1 solver

Solved

Sum of two number using (regexp, varargin) comand?
Sum two number a &b and get there result in c using the rexp and varargin comand.

2 days ago

Problem

Easy Sequences 65: Fractional Part of Square Roots
The fractional part function of a positive real number , denoted as , is defined as: , where , is the 'floor' of . Thus, , and ...

2 days ago | 0 | 0 solvers

Solved

Negation the hard way
Write a function that has the following property: f(f(x)) = -x for any numeric array x. Note that there is no restriction on ...

3 days ago

Solved

Create a function that returns an array P the same size as X and Y containing the element-by-element, four-quadrant inverse tang...

3 days ago

Solved

String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

3 days ago

Solved

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

3 days ago

Solved

Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

3 days ago

Solved

Calculate the values of a polynomial.
Calculate the values of a polynomial.Input parameter p - vector of polynomial coefficients, x - matrix of the argument values. ...

3 days ago

Solved

Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

3 days ago

Solved

Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

3 days ago

Solved

Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

3 days ago

Solved

Back to basics 24 - Symbolic variables
Covering some basic topics I haven't seen elsewhere on Cody. Given a string algebraic expression, return the symbolic variables...

3 days ago

Solved

System of Linear Equations

3 days ago

Solved

Falling on the Moon.

3 days ago

Solved

Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

3 days ago

Solved

An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the si...

3 days ago

Solved

Calculate feeling temperature before climbing a mountain
I sometimes climb a mountain. As is well known, when the altitude becomes 100 (m) higher, the temperature lowers by 0.6 degrees...

3 days ago

Solved

Sales Tax

3 days ago

Solved

List the dopey numbers
If vile numbers have binary representations that end with an even number of zeros (even vile), then numbers with binary represe...

3 days ago

Problem

Easy Sequences 64: Base-14 Arithmetic Function
For an integer , the base-14 arithmetic function, , is defined as follows: Convert to base-14, using the letters '' for digits...

4 days ago | 0 | 0 solvers

Solved

Basic: fft
Calculate the value using fft

4 days ago

Solved

Volume of Cylindrical Shell

4 days ago

Solved

List the vile numbers
Evil numbers, the subject of Cody Problem 2733 have an even number of ones in their binary representations, whereas odious numbe...

4 days ago

Solved

Find a Prime Number
Find a prime number from a vector Example: [2 51 8 65 19] a = 51

4 days ago