Solved


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

12 years ago

Solved


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.

12 years ago

Solved


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

12 years ago

Solved


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

12 years ago

Solved


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

12 years ago

Solved


matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

12 years ago

Solved


Negative matrix
Change the sign of all elements in given matrix.

12 years ago

Solved


Largest Twin Primes
<http://en.wikipedia.org/wiki/Twin_prime Twin primes> are primes p1, p2 = p1 + 2 such that both p1 and p2 are prime numbers. Giv...

12 years ago

Solved


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

12 years ago

Solved


Unique - Very Very Large Numbers
Given a vector column, with some very large numbers, create the ascending sort and unique vector. *Input:* A (column vector)...

12 years ago

Answered
how to select first 23 rows and 25 columns from a 25 X 25 matrix in matlab
a = rand(25); b = a(1:23,:); <http://www.mathworks.com/help/matlab/math/matrix-indexing.html>

12 years ago | 2

| accepted

Solved


Recurrence relation
A recurrence relation is given by P(1) := 1 P(n+1) := exp(1) - (n+1)*P(n) Write a function that, given an integer |...

12 years ago

Solved


Usage of java.math : Add, Multiply, Pow
This challenge is an introduction to the wonderful word of java.math that allows unlimited precision calculations. The primary ...

12 years ago

Solved


Animated GIF Creator
This Challenge is to execute the Function Template which has a fully functional Animated GIF creator of a shape related to a Zer...

12 years ago

Solved


Matrix which contains the values of an other matrix A at the given locations.
If you have two matrices, which together give xc and yc coordinates into another matrix, eg : xc = [1 1 1; 2 2 1]; ...

12 years ago

Solved


Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...

12 years ago

Solved


Wind outward from the center ...
Create an n-by-n matrix with elements ranging from 1 to n^2 in a rectangular spiral pattern. Example if n = 5 : 21 ...

12 years ago

Solved


Min of a Matrix
Return the minimum value in the given matrix.

12 years ago

Solved


Implement a counter
Write a function that returns a function that counts the number of times it is invoked. Example: >> h = counter; >> h() ...

12 years ago

Solved


Toolbox check part 3
In my ongoing quest to highlight obscure parts of MATLAB, the latest challenge is to take 2 string inputs, one a MATLAB toolbox ...

12 years ago

Answered
how to create a .mat file
Use *imread* function to load images, then you can save you variables in MAT file using *save* function. MAT-files can be loaded...

12 years ago | 0

Answered
save the results of who function
You have to use quotation marks, because an argument of *who* should be string: List = who('B*')

12 years ago | 0

| accepted

Answered
Getting value from a listbox. Error: Cell contents reference from a non-cell array object.
I suppose that your listbox contains only one string. Compare two codes: 1: lb = uicontrol('Style','listbox','Position',...

12 years ago | 0

| accepted

Solved


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

12 years ago

Answered
Calculate daily average out of many files per day
Let suppose that all file names are stored in *filename* variable: d = zeros(495,595,35); for k=1:35 d(:,:,k) = imp...

12 years ago | 0

Answered
How to delete a frame after use?
<http://www.mathworks.com/help/matlab/ref/delete.html> <http://www.mathworks.com/help/matlab/ref/recycle.html>

12 years ago | 0

| accepted

Solved


01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

12 years ago

Solved


02 - Vector Variables 3
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2c.png>> (all the numbers from 5 to -5 in increments of ...

12 years ago

Solved


02 - Vector Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 1...

12 years ago

Solved


02 - Vector Variables 5
_eVec_ = _Hello_ ( _eVec_ is a string, which is a vector of characters )

12 years ago

Load more