Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

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

mehr als ein Jahr vor | 0

| akzeptiert

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

| akzeptiert

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

fast 2 Jahre vor

Gelöst


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

fast 2 Jahre vor

Gelöst


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

fast 2 Jahre vor

Gelöst


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

fast 2 Jahre vor

Gelöst


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

fast 2 Jahre vor

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

fast 2 Jahre vor | 0

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

fast 2 Jahre vor | 0

Gesendet


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

fast 2 Jahre vor | 2 Downloads |