Alexander Ross
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Can the knight take out the pawn?
* position of knight = k * position of pawns = p can the knight take out those pawns? * k='Nf4' * p={'g6','g7'} then...
대략 9시간 전
문제를 풀었습니다
Castling-03
Given the position of different chess pieces on the chessboard, figure out whether castling is valid or not in the next move (wh...
대략 12시간 전
문제를 풀었습니다
Castling-02
This is a follow up of problem <https://www.mathworks.com/matlabcentral/cody/groups/1/problems/45329-castling-01> Given...
대략 15시간 전
문제를 풀었습니다
Castling-01
Given the position of only one player's chess pieces(some of them) on the chessboard, figure out whether castling is valid or no...
대략 16시간 전
문제를 풀었습니다
Take it out
Consider the integer number sequence N (1 to infinity). After each iteration, take out the (k+1)th elements; where k is the n...
대략 17시간 전
문제를 풀었습니다
Abelian Sandpile - 01
Generate a matrix like abelian sandpile where the center of the matrix is n. For example, n=3 out=[0 0 0 0 ...
대략 17시간 전
문제를 풀었습니다
find subscripts from linear index
a matrix and the linear index of an element is given as input. find the subscripts of that element. if linear index=3 , outp...
1일 전
문제를 풀었습니다
Repeat elements of a vector
Repeat each elements of a given vector according to their values. * x=[1,2,1,3] * y=[1,2,2,1,3,3,3]
1일 전
문제를 풀었습니다
Sky full of stars - 03
draw the following pattern with asterisks. For example, for n=6 '************' '***** *****' '**** ****' ...
1일 전
문제를 풀었습니다
ZigZag - 05
Given a matrix, print all its elements in the alpha form. For example - a=[16 2 3 13 5 11 10 8 ...
7일 전
문제를 풀었습니다
Quarantine Days
In these quarantine days, a list of what Max may do on a typical day is given in a table with the starting hour to ending hour. ...
8일 전
문제를 풀었습니다
Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...
대략 1개월 전
문제를 풀었습니다
generate the matrix
given a value n (say 4) - generate the matrix like below y= [0 1 2 3 4; -1 0 1 2 ...
대략 1개월 전
문제를 풀었습니다
ZigZag - 04
Given a matrix, print all its elements in the spiral form (clockwise direction). For example, a=[16 2 3 13 ...
대략 1개월 전
문제를 풀었습니다
ZigZag - 03
Given a matrix of any size, print its elements from the zigzag form of the matrix. For example, a=[1 2 3; 4 5 6; ...
대략 1개월 전
문제를 풀었습니다
Assign matrix elements to separate variables
Given an input array, return each element of the array as a separate variable. If the number of output arguments (k) is less tha...
대략 1개월 전
문제를 풀었습니다
MATLAB 101: Unique elements of the array with unchanged sequence
An array is given. Find the unique elements of the array. [keep the sequence unchanged] For example if input x=[2 ,4 , 9 ,2 ,...
대략 1개월 전
문제를 풀었습니다
Implement full adder circuit
Implement full adder circuit (Full Adder) Inputs signals are a, b and cin. Output signal y = [cout sum]
대략 2개월 전
문제를 풀었습니다
Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...
대략 2개월 전
문제를 풀었습니다
Extract Increasing Integers from Digit String
Given a string containing only digits, the function get_integers should return the list of increasing integers obtained by readi...
대략 2개월 전
문제를 풀었습니다
Ring Matrix
Given n (only odd), return output matrix a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. ...
대략 2개월 전
문제를 풀었습니다
Namespace
Create a set of n variable names 'a_1',...,'a_n' The result should be a column oriented cell array of strings. Example inp...
대략 2개월 전
문제를 풀었습니다
Airline Ticket Mod7 Checksum
There are 13 digits in an airline ticket number. If an airline ticket number is valid, the 13th digit should be the remainder of...
대략 2개월 전
문제를 풀었습니다
MATLAB 101: Find alternating sum
Given an array, find alternating sum i.e. – y = x (1) – x (2) + x (3) – x (4) + x (5) - …
대략 2개월 전
문제를 풀었습니다
Convert a diagonal representation of a matrix element to linear index or subscripts
Elements in matrices in MATLAB can be retrieved by linear index or subscripts. For example, the 1 in the matrix below has a line...
대략 2개월 전
문제를 풀었습니다
Pascal's Pyramid - A Variation with an Arial View
Let's create a matrix of size N x N containing a Pascal's Triangle in each quadrant that diverges from the centre to form an ari...
대략 2개월 전
문제를 풀었습니다
First Unique Character
Given a character vector s, return the first character that appears exactly once in s. If every character repeats at least once...
대략 2개월 전











