A résolu


Find max
Find the maximum value of a given vector or matrix.

plus de 6 ans il y a

A résolu


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

plus de 6 ans il y a

A résolu


Inner product of two vectors
Find the inner product of two vectors.

plus de 6 ans il y a

A résolu


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

plus de 6 ans il y a

A résolu


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

plus de 6 ans il y a

A résolu


Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

plus de 6 ans il y a

A résolu


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

plus de 6 ans il y a

A résolu


Relative ratio of "1" in binary number
Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

plus de 6 ans il y a

A résolu


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

plus de 6 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 ...

plus de 6 ans il y a

A résolu


Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

plus de 6 ans il y a

A résolu


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

plus de 6 ans il y a

A résolu


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

plus de 6 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.

plus de 6 ans il y a

Réponse apportée
Sum across columns for each row
Assuming yor question as " (row 1 col 1) - max1)^2 (row 1 col 2 - max2)^2 (row 1 col 3) - max3)^2 (row 1 col 4) - max...

plus de 6 ans il y a | 0

| A accepté

A résolu


Generate a random matrix A of (1,-1)
Input n: is an positive integer which serves as the dimension of the matrix A; Output: A=(Aij),where each entry Aij is either...

plus de 6 ans il y a

Réponse apportée
Create a cumulative sum under certain conditions
Assuming your imported data from csv as variables Day, Name, Output all are column matrices with same length I don't know var...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Storing data in cell array using for loop
In your case for each for loop new empty dataBase cell creating thats why you didn't get the stored result as you require. Alway...

plus de 6 ans il y a | 2

Réponse apportée
how can i plot a power spectrum for my signal?
It is from the reference https://in.mathworks.com/help/matlab/math/basic-spectral-analysis.html N=1024; fs=1000; % signal ...

plus de 6 ans il y a | 1

A résolu


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

plus de 6 ans il y a

A résolu


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

plus de 6 ans il y a

A résolu


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

plus de 6 ans il y a

A résolu


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

plus de 6 ans il y a

A résolu


Return area of square
Side of square=input=a Area=output=b

plus de 6 ans il y a

A résolu


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

plus de 6 ans il y a

Réponse apportée
How to read data from a file with fixed format?
importdata gives you data in cell data type. A=importdata(test1); A = A{1}; % get the data from cell % now you will get v...

plus de 6 ans il y a | 0

Réponse apportée
want to join two audio files and write /save using audiowrite
First argument of the audiowrite is filename not variable need to be written, change accordingly See the help https://in.mathw...

plus de 6 ans il y a | 0

Réponse apportée
How can I generate changing length of legend for a scatter graph generated in a while loop?
M = [ 0.12 0.21 0.356 0.458 0.3659 0.2458 0.5412 0.324 0.2121]; M_2 = [0.35 0.56 0.12 0.321 0.987 0.88 0.44 0.66 0.23]; M_3 = ...

plus de 6 ans il y a | 0

A résolu


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

plus de 6 ans il y a

A résolu


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

plus de 6 ans il y a

Charger plus