Solved


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

14 years ago

Solved


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

14 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

14 years ago

Solved


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

14 years ago

Solved


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

14 years ago

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

14 years ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

14 years ago

Solved


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

14 years ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

14 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

14 years ago

Solved


Remove any row in which a NaN appears
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...

14 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

14 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

14 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

14 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

14 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

14 years ago

Answered
input arguments of type 'struct' !?
Just type : which -all ndsort I guess this function is not on your path. You will get the same error by typing: ...

14 years ago | 6

| accepted

Answered
System time Matlab
Using FFF: datestr(now,'dd-mm-yyyy HH:MM:SS FFF')

14 years ago | 4

| accepted

Answered
how to remove empty cell array contents?
To remove empty cell array contents (title of your question) : R(~cellfun('isempty',R))

14 years ago | 52

| accepted

Answered
what does this error mean?
Just type : which -all adpmedian I guess this function is not on your path. You will get the same error by typing: ...

14 years ago | 2

Answered
GUI help - Possible to have somethings grayed out until needed
You must use *enable* property of uicontrols.

14 years ago | 6

Answered
MATLAB won't launch in Ubuntu 11.10
Do you have the libc.so.6 error? If yes: <http://www.mathworks.com.au/support/solutions/en/data/1-F68FSA/index.html?solution=1...

14 years ago | 0

Answered
making checkboxes in uitable mutually exclusive
You need to perform this task by using the property CellEditCallback (callback when data in a cell is changed)

14 years ago | 1

| accepted

Answered
How to search for Max and Min value?
Let's call your example toto.txt: You can write : fid = fopen('toto.txt','r') A = textscan(fid,'%f %f %f %f %f %f',...

14 years ago | 2

| accepted

Answered
How to arrange rows in uitable?
To start : Answer 1: [sorted,d]=sort(penalty); newMatrix= A(d,:); Answer 2: parentA= newMatrix(1:2,:); ...

14 years ago | 1

| accepted

Answered
Function to find if B is an echelon or row equivalent of A
Let's say B has the same second row of A : >>A = [1 2 3; 4 5 6; 7 8 9]; >>B = [ 4 5 6;10 11 12]; You could use ism...

14 years ago | 1

Answered
How to speed up calculations?
You have made a lot of things already about hardware enhancement like setting the 3GB Switch. You should use the *profiler* of M...

14 years ago | 1

| accepted

Answered
error when call fun.
Just add initSwarm.m in your MATLAB path and it will work.

14 years ago | 1

| accepted

Answered
How do I change the Matlab Desktop font preferences using commands?
To display MATLAB on a screen for a public , I run this function : function largefonts(state) % LARGEFONTS ON Turn o...

14 years ago | 3

Load more