Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

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

más de 1 año hace | 0

| aceptada

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

más de 1 año hace | 0

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

más de 1 año hace | 0

| aceptada

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

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

más de 1 año hace | 0

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

más de 1 año hace | 0

Enviada


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

más de 1 año hace | 2 descargas |