Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años 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 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años 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 6 años hace

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

más de 6 años hace | 0

| aceptada

Resuelto


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

más de 6 años hace

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 2

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

más de 6 años hace | 1

Resuelto


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.

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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.

más de 6 años hace

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Cargar más