Solved


Number Puzzle - 075

4 months ago

Solved


Number Puzzle - 076

4 months ago

Solved


Number Puzzle - 079

4 months ago

Solved


Number Puzzle - 077

4 months ago

Solved


Number Puzzle - 078

4 months ago

Solved


Number Puzzle - 080

4 months ago

Solved


Change on Spiral Matrix
n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...

4 months ago

Solved


Convert a substructure reference string into a valid definition structure for subsref and subsasgn
You have a reference to an element in a data structure, which you want to pass to a function. Not the value itself, but the refe...

4 months ago

Solved


Prouhet–Tarry–Escott (basic)
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/660-find-a-subset-that-divides-the-vector-into-equal-halves pr...

4 months ago

Solved


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

4 months ago

Solved


Pairwise Euclidean Distance
Given two matrices A,B of dimensions NxK and NxL respectively, calculate the pairwise euclidean distance of all vectors (columns...

4 months ago

Solved


Calculate color coordinates in CIE 1931 color space
For given wavelength lambda, calculate corresponding the color coordinates (rounded to 4-decimals) in CIE 1931 color space. Exa...

4 months ago

Solved


Compute the reduced totient
The totient function counts numbers less than n that are relatively prime to n. The reduced totient function, or Carmichael lamb...

4 months ago

Solved


Count divisors of n!
The factorial of 5, or 5! = 120, has 16 divisors: 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, and 120. How many does n!...

4 months ago

Solved


Shuffle primes based on their digits
A sequence consisting of prime numbers only starts with 2, the first prime. The next term is the smallest unused prime that shar...

4 months ago

Solved


MATLAB 101: Basic Calculator
Write a MATLAB function named basic_calculator that accepts two input numbers, A and B, and returns four distinct outputs: The ...

4 months ago

Solved


MATLAB 101: Area of a circle
Write a MATLAB function named circle_area that accepts the radius r as an input and returns the area of the circle.

4 months ago

Solved


MATLAB 101: Student Marks Analyzer
An array is given that contains the marks received by a group of students in their class test. Write a function that processes t...

4 months ago

Solved


MATLAB 101: University Department Data Analyzer
You are given an array containing the number of students in various academic departments of a university, along with a parallel ...

4 months ago

Solved


MATLAB 101: Extracting Even/Odd Values
Given an array or a matrix, extract all elements that satisfy a specified parity condition ('even' or 'odd') and return them as ...

4 months ago

Solved


MATLAB 101: Area of an ellipse
Write a MATLAB function that accepts these two values a (major axis length), b (minor axis length) as inputs and returns the cal...

4 months ago

Solved


MATLAB 101: Equivalent Resistance Calculator
Calculate the equivalent resistance R_eq for n resistors connected in Series or Parallel.

4 months ago

Solved


MATLAB 101: Delta to Wye Impedance Converter
In electrical network analysis, transforming a delta (Delta) configuration of components into a wye (Y) configuration is vital f...

4 months ago

Solved


MATLAB 101: Wye to Delta Impedance Converter
n electrical network analysis, transforming a Wye (Y) configuration of impedances (Z1, Z2, Z3) into an equivalent Delta (Delta) ...

4 months ago

Solved


MATLAB 101: Conditional Product or Sum Calculator
Write a MATLAB function that accepts two integer numbers. If the product of the two numbers is less than or equal to 1000, retur...

4 months ago

Solved


MATLAB 101: List Manipulation: Add and Remove
Create a MATLAB function that performs dynamic list operations on a cell array of strings. The function should accept the curren...

4 months ago

Solved


MATLAB 101: Factorial Finder
The factorial of a non-negative integer n (denoted as n!) is the product of all positive integers less than or equal to n. For e...

4 months ago

Solved


MATLAB 101: Fibonacci Sequence
The Fibonacci sequence is defined by the rule that each number is the sum of the two preceding ones. Sequence: 0, 1, 1, 2, 3, 5,...

4 months ago

Solved


MATLAB 101: Lucas Sequence
The Lucas sequence follows the same additive rule as Fibonacci, but starts with 2 and 1. Sequence: 2, 1, 3, 4, 7, 11, 18, 29, 47...

4 months ago

Solved


MATLAB 101: Multinacci Sequence Generator
Create a function that generates a sequence of length n based on the sum of the previous l terms. If l = 2, it acts like the Fi...

4 months ago

Load more