Risolto


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

quasi 13 anni fa

Risolto


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.

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

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

quasi 13 anni fa | 2

| accettato

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

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

quasi 13 anni fa | 0

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

quasi 13 anni fa | 0

| accettato

Risposto
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',...

quasi 13 anni fa | 0

| accettato

Risolto


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

quasi 13 anni fa

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

quasi 13 anni fa | 0

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

quasi 13 anni fa | 0

| accettato

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Carica altro