Solved


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

meer dan een jaar ago

Solved


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

meer dan een jaar ago

Solved


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

meer dan een jaar ago

Answered
Save two variables generated within a for loop
Variables generated inside a function are locl variables inside the function only. you can return the wanted variables from you...

meer dan een jaar ago | 0

| accepted

Answered
how to display those value of M, which is only less than 1?
I'm not sure if you want to replace the values higher than 1 by one specific value or you want to remove them completely; if it ...

meer dan een jaar ago | 0

Answered
while loop keeps running forever
First, it's "end" not "endwhile" for closing the loop. Second, the condition must be logical value; in other words, you should ...

meer dan een jaar ago | 0

| accepted

Solved


Dartboard Average II
A dartboard arranges the numbers 1 to 20 such that each value is typically flanked by quite different values - for example, 20 i...

meer dan een jaar ago

Solved


Boustrophedon
Given a vector v and a positive integer n, return an m-by-n matrix containing the elements of v row-wise, alternating left-to-ri...

meer dan een jaar ago

Solved


Extract the Acrostic Message
An acrostic cipher is a way of embedding one message within another by taking the first (or last) word of each line. Given a str...

meer dan een jaar ago

Solved


Angle Between Analog Clock Hands
Given a datetime variable t, return the angle (in degrees) between the hour and minute hands of an analog clock at the time repr...

meer dan een jaar ago

Solved


Triangle Coordinates
Given a natural number n, return two -element vectors, x and y, containing the coordinates of a triangular arrangement of points...

meer dan een jaar ago

Solved


Create block matrix of integers (j+k-1) - Part II
Given m, n, p, and q, create an m-by-n matrix made up of submatrices, each sized p-by-q (if possible - the last row and column o...

meer dan een jaar ago

Solved


Create block matrix of integers (j+k-1) - Part I
Given m, n, p, and q, create a matrix of m-by-n blocks (submatrices), each sized p-by-q. The elements of the (j,k)th block all h...

meer dan een jaar ago

Solved


Dartboard Average I
A dartboard arranges the numbers 1 to 20 such that each value is typically flanked by quite different values - for example, 20 i...

meer dan een jaar ago

Solved


Possible Rugby Scores
Given a natural number s (> 4), representing a rugby team's score, return an n-by-3 matrix representing all n possible combinati...

meer dan een jaar ago

Solved


Split Even Number Into Two Primes
Given an even whole number n (> 2), return a 2-element vector of primes, p, such that p(1) + p(2) = n. Fun note: technically it...

meer dan een jaar ago

Solved


Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
Given a positive integer n, determine whether n is "oddish" or "evenish" - that is, whether the sum of the digits of n is odd or...

meer dan een jaar ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

meer dan een jaar ago

Answered
Change of variables with a double integral
Example to illustrate the flow: syms u v %integration limits x_min=0; x_max=1; y_min=2; y_max=4; F_original=@(x,y) x*y...

meer dan een jaar ago | 0

Answered
How do I get sliders to change the background color/ RGB values of axes in a GUI?
You should add "SliderchangingValue" callback functions for the three sliders and add their "changingValue"s to app properties w...

meer dan een jaar ago | 0

Submitted


Fano Code Generator
Matlab function produces binary Fano code of an independent discrete variable.

meer dan een jaar ago | 6 downloads |