Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

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

mehr als 6 Jahre vor | 0

| akzeptiert

Gelöst


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

mehr als 6 Jahre vor

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 2

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

mehr als 6 Jahre vor | 1

Gelöst


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.

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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.

mehr als 6 Jahre vor

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Mehr laden