A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

Réponse apportée
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: ...

plus de 14 ans il y a | 6

| A accepté

Réponse apportée
System time Matlab
Using FFF: datestr(now,'dd-mm-yyyy HH:MM:SS FFF')

plus de 14 ans il y a | 4

| A accepté

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

plus de 14 ans il y a | 52

| A accepté

Réponse apportée
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: ...

plus de 14 ans il y a | 2

Réponse apportée
GUI help - Possible to have somethings grayed out until needed
You must use *enable* property of uicontrols.

plus de 14 ans il y a | 6

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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)

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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',...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
How to plot a single point depending on three variables in a 2d figure?
doc plotyy

plus de 14 ans il y a | 2

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

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
error when call fun.
Just add initSwarm.m in your MATLAB path and it will work.

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 3

Charger plus