Top 5% contributor
I am using MATLAB 2015a. I tried to download arduino support packages for several times, it would download the file, but then I ...
Asked 1 month ago
this is a function, I, Sx, Sy, f, theta are the inputs. try typing something like this,
[G,gabout] = gaborfilter2(1,2,3,4,30)...
Answered 7 months ago
Builds the array , and checks stability.
1 year ago
I'm trying to plot this function. It gives me the following error.
Warning: Matrix is singular to working precision
Asked 1 year ago
For a given number between 1-365 (a day number in a non leap year), you should check which day of which month it is.
Hi, I need to solve an equation, but I don't know how. here's the equation set.
P and G are...
Asked 7 months ago
Can anyone explain how Cody calculates the size of a program?
I read the help, but couldn't understand. :(
Triangle numbers are the sums of successive integers. So 6 is a triangle number because
6 = 1 + 2 + 3
which can be displa...
If length, breadth and height of the walls are given, find the area of the four walls.
If a number (n) is provided as an input, find the square of the sum of the digits of the number.
If n = 21, the an...
Just find the number of columns of the given matrix.
x = [1 2
y = 2
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN.
Remove the nth column from input matrix A and return the resulting matrix in output B.
A = [1 2 3; 4 5 6];
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
Given a and b, return the sum a+b in c.
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false.
Find the sum of all the numbers of the input vector x.
Input x = [1 2 3 5]
Output y is 11
Input x ...
Regardless of input, output the string 'yes'.
Given the input n, return true if n is odd or false if n is even.
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
I'm trying to learn how to code uicontrols! I want the user to input a number (n), and I want the program to produce (n+1) edit ...