Community Profile

photo

Jan Orwat


2.494 total contributions since 2013

Contact

Jan Orwat's Badges

  • Cody 5th Anniversary Author
  • Scavenger Finisher
  • 3 Month Streak
  • Thankful Level 1
  • Knowledgeable Level 2
  • Matrix Patterns II Master
  • Introduction to MATLAB Master
  • Project Euler I
  • First Review
  • First Submission
  • Indexing IV Master
  • Matrix Patterns I Master
  • First Answer
  • Indexing I Master
  • Indexing III Master

View all

Contributions in
View by

Solved


Find the complement of a number in binary
Input x is a decimal number and output y is the complement of binary representation of x. For example, x = 10 has the binary ...

11 maanden ago

Solved


Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

11 maanden ago

Solved


Lunar Arithmetic (Addition)
<https://oeis.org/A087061 OEIS link for a description of lunar arithmetic> Simply take the larger digit. Example 1: ...

12 maanden ago

Solved


Find the right number make the equation
Given positive integer number n, find the right positive integer number a, b , so that (1) sqrt(a + n * b) is a positive inte...

12 maanden ago

Solved


Make an anonymous function that has variable output
Make a anonymous function that has variable output. f = @(x)... the following equation→equation(s) as followed has(ve) ...

12 maanden ago

Solved


How many solutions has this problem?
Guess, predict or calculate :-) (You will be scored by the accuracy). Update: <http://www.mathworks.co.uk/matlabcent...

meer dan een jaar ago

Solved


Test your luck!
This problem is designed to test your luck, and therefore the contents of your function are irrelevant. In order to do so, the t...

ongeveer 2 jaar ago

Problem


Tautology
Check if given expression is always true. For example sentence '~(A & B) == (~A | ~B)' is always true. Characters in ...

ongeveer 2 jaar ago | 3

Problem


Polarisation
You have n polarising filters stacked one on top of another, and you know each axis angle. How much light gets passed through th...

ongeveer 2 jaar ago | 2

Problem


Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer whi...

ongeveer 2 jaar ago | 8

Solved


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

ongeveer 2 jaar ago

Solved


OXO counting
Count the number of occurrences of "OXO" in rows, columns, diagonals and anti-diagonals. Example: >> board = ['OOX' ...

ongeveer 2 jaar ago

Solved


Twist 'n' Match
Given n and m, construct an n-by-n matrix a such that a, when rotated 90 degrees and compared with itself, matches itself in exa...

ongeveer 2 jaar ago

Solved


Oh Zero Zero Zero!!!
Hello all, So you have to find the largest section of zeros in a vector and then find the length of those zeros and there start...

ongeveer 2 jaar ago

Problem


OXO counting
Count the number of occurrences of "OXO" in rows, columns, diagonals and anti-diagonals. Example: >> board = ['OOX' ...

ongeveer 2 jaar ago | 2

Solved


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

ongeveer 2 jaar ago

Solved


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

ongeveer 2 jaar ago

Solved


How many problems and solutions did you like?
When I started to create problems in my early stages of playing Cody, one day, I realized that Aurelien Queffurust liked one of ...

ongeveer 2 jaar ago

Solved


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

meer dan 2 jaar ago

Solved


Use R2016b Text Manipulations to Fix These Addresses (Part 1)
We have a series of addresses like the following which we'd like to reformat. Can you remove the latitude and longitude from the...

bijna 3 jaar ago

Solved


Use R2016b Text Manipulations to Fix These Addresses (Part 3)
We have a series of addresses like the following which we'd like to reformat. Each of the addresses lacks a space and a comma ...

bijna 3 jaar ago

Solved


Combine the first and last names
MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

bijna 3 jaar ago

Solved


Use R2016b Text Manipulations to Fix These Addresses (Part 2)
We have a series of addresses like the following which we'd like to reformat. All the addresses are in the Boston area of Mass...

bijna 3 jaar ago

Solved


if
if value n is larger than or equal to 100, return true, else false.

bijna 3 jaar ago

Solved


Quantization Level
Given an 3-bit Quantizer ranging from 0-5 Volts, Determine the number of quantization level.

bijna 3 jaar ago

Solved


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

bijna 3 jaar ago

Solved


String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

bijna 3 jaar ago

Solved


String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

bijna 3 jaar ago

Solved


String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

bijna 3 jaar ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

ongeveer 3 jaar ago

Load more