Top 5% contributor
Considering that you have 2 vectors _cos1_ and _cos2_ (of the same frequency) you can calculate their phase difference in rad us...
Answered 2 years ago
See the link below for a solution using _bintprog_ function.
Let us consider that we have a vector VEC.
Is ther a way to find which vector elements can be grouped so as they sum up to a ...
Asked 2 years ago
Hello to all,
I am trying to do some calculations with bessel function _besseli_ . The problem that I am facing is that the c...
Asked 1 year ago
Hello everyone, I am facing a problem and I would be grateful to anyone that could help. The problem is the following:
Hello to all,
I am facing the following problem:
Let us assume that we have a matrix A = [2 10;15 20;50 60;65 70;61 64;16 ...
Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.
2 years ago
Given the input n, return true if n is odd or false if n is even.
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.]
Given a and b, return the sum a+b in c.
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
Find the sum of all the numbers of the input vector x.
Input x = [1 2 3 5]
Output y is 11
Input x ...
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
does anyone know why there is a limit at the number of variables (i.e. 65535) in function bintprog?
See the answer given at the following link
Thank you all for your time and great solutions.
An issue remains... what if the original vector (vect) contains many element...
Join the conversation