Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

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

6 years ago | 0

| accepted

Solved


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

6 years ago

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

6 years ago | 1

| accepted

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

6 years ago | 2

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

6 years ago | 1

Solved


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.

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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.

6 years ago

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

Solved


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

6 years ago

Solved


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

6 years ago

Load more