A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

Réponse apportée
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...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 2 ans il y a | 0

Réponse apportée
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 ...

presque 2 ans il y a | 0

| A accepté

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

Réponse apportée
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...

environ 2 ans il y a | 0

Réponse apportée
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...

environ 2 ans il y a | 0

A soumis


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

environ 2 ans il y a | 8 téléchargements |