Alexander Ross
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Sieve of Eratosthenes - 02
"Sift the Two's and Sift the Three's, The Sieve of Eratosthenes. When the multiples sublime, The numbers that remain a...
1일 전
문제를 풀었습니다
Reproduce this plot!
Write a function that will take a dataset (x,y), a best fit model (model), and the upper and lower prediction bounds (lb,ub) for...
1일 전
문제를 풀었습니다
Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...
1일 전
문제를 풀었습니다
Back to basics 13 - Input variables
Covering some basic topics I haven't seen elsewhere on Cody. Return as a string the name of the input variable to the functio...
1일 전
문제를 풀었습니다
Robust Main Diagonal Sum with Special Value Handling in Arrays
Compute the sum of the diagonal elements of an array (vector or matrix). If array is not square return the char array: 'no-squa...
1일 전
문제를 풀었습니다
MATLAB 101: Reverse a Vector
Write a MATLAB function that takes a 1D vector (either a row or a column vector) and returns the vector with its elements in exa...
1일 전
문제를 풀었습니다
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 ...
1일 전
문제를 풀었습니다
Is the Matrix Square?
Write a function that determines whether the input matrix x is square. Return true if x has the same number of rows and columns...
1일 전
문제를 풀었습니다
Rumis Scorer 1
<http://en.wikipedia.org/wiki/Rumis Rumis> is a multiplayer 3D block board game where the goal is to have the most squares visib...
2일 전
문제를 풀었습니다
Rumis Scorer 3
<http://en.wikipedia.org/wiki/Rumis Rumis> is a multiplayer 3D block board game where the goal is to have the most squares visib...
2일 전
문제를 풀었습니다
Sum of Elements Above the Main Diagonal of a Square Matrix
Given a square matrix as input, write a function that returns the sum of all elements above the main diagonal. If the input mat...
2일 전
문제를 풀었습니다
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...
3일 전
문제를 풀었습니다
Show me the shape of your array
Write a function that determines the shape of the input array x: Return 'square' if x has the same number of rows and colum...
3일 전
문제를 풀었습니다
Wrap a vector, but insert NaN's at the wrap-positions.
When you plot a line that wraps, and do not want the sawtooth shape to show up in the plot, you can either draw all separate lin...
3일 전
문제를 풀었습니다
Only once: cleaning up your columns
We have a logical array (with ones and zeroes). It is simple: after processing every column may only contain a single true value...
5일 전
문제를 풀었습니다
MATLAB 101: Count the Evens
Write a MATLAB function that accepts an array of integers and returns the total count of even numbers present in the array. Note...
5일 전
문제를 풀었습니다
Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...
5일 전
문제를 풀었습니다
Limiting Element Occurrences
You are given a list 'v' of numbers. This list may contain repeated numbers. Your objective is to create a new list that maintai...
5일 전
문제를 풀었습니다
Finding the Most Frequent Letter in a Text
You are given a text containing various English letters, digits and punctuation symbols. Your task is to find the most frequentl...
9일 전
문제를 풀었습니다
replace nan values iteratively.
replace nan values with the average of two neighbour non-nan value iteratively as follow; x = [2; 4; 6; nan; nan; nan; 10]; ...
9일 전
문제를 풀었습니다
Get the array of sum for three consecutive numbers in an array
Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...
9일 전
문제를 풀었습니다
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...
대략 1개월 전
문제를 풀었습니다
Vertical Mirror Mandala
Create a symmetric left-right mirrored pattern in an N×N matrix to emulate mandala reflection symmetry. e.g. N = 5; ...
대략 1개월 전
문제를 풀었습니다
Don't be mean. Be nice!
For this problem, you will be given a range of single digits R, and a separate number K. You job is to calculate the mean of al...
대략 1개월 전
문제를 풀었습니다
Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.
대략 1개월 전
문제를 풀었습니다
snake_case to CamelCase convention
The snake_case naming convention writes words in lowercase and separates them with underscores. In CamelCase convention, the fir...
대략 1개월 전
문제를 풀었습니다
Pandiagonal Prime Magic Square Verification
Verify if an NxN matrix is a Pandiagonal Prime Magic Square. Required properties: 1) N^2 prime values ( No repeats, 1 ...
대략 1개월 전
문제를 풀었습니다
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...
대략 1개월 전
문제를 풀었습니다
Cryptography with A Square Matrix : Decoding
Previous Problem: Cryptography with A Square Matrix : Encoding Now decode a double vector to a (hopefully!) meaningful text. I...
대략 1개월 전











