Wolfgang Schwanghart
University of Postdam
Followers: 0 Following: 0
Professional Interests: GIS, Physical Geography, Hydrology, Geomorphology
Statistiques
RANG
867
of 289 973
RÉPUTATION
79
CONTRIBUTIONS
4 Questions
41 Réponses
ACCEPTATION DE VOS RÉPONSES
25.0%
VOTES REÇUS
18
RANG
134 of 19 614
RÉPUTATION
8 818
CLASSEMENT MOYEN
4.50
CONTRIBUTIONS
17 Fichiers
TÉLÉCHARGEMENTS
327
ALL TIME TÉLÉCHARGEMENTS
79571
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
A résolu
Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...
environ 2 ans il y a
A résolu
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
environ 2 ans il y a
A résolu
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...
environ 2 ans il y a
A résolu
Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...
plus de 3 ans il y a
A résolu
Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...
plus de 3 ans il y a
A résolu
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
plus de 3 ans il y a
A résolu
index of n in magic(n)
let input=5; magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 ...
environ 10 ans il y a
A résolu
Order of things - 1
Let's assume you have a number of calculations to perform, that depend on each other. E.g. 'A' can be calculated, once the outco...
environ 10 ans il y a
A résolu
Count decimal digits of a number
* Given an integer number you have to return the number of its digits. * For example 248 has 3 digits and 1589 has 4 digits ...
plus de 10 ans il y a
A résolu
Check if equal
Return true if all the elements of an nD array are equal, false otherwise.
plus de 10 ans il y a
A résolu
Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.
plus de 10 ans il y a
A résolu
Too Many Zeros, Dump Them!
Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...
plus de 10 ans il y a
A résolu
Enlarge array
Given an mxn numeric array (A) and a 1x2 vector (sz) indicating the dimensions [p q] to enlarge each element, return an (m*p)x(n...
plus de 10 ans il y a
A résolu
Pascal's pyramid
In Pascal's triangle each number is the sum of the two nearest numbers in the line above: 1 1 1 ...
plus de 10 ans il y a
A résolu
Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...
plus de 10 ans il y a
A résolu
Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...
plus de 10 ans il y a
A résolu
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...
plus de 10 ans il y a
A résolu
Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...
plus de 10 ans il y a
A résolu
Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3
presque 11 ans il y a
A résolu
Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...
environ 11 ans il y a
A résolu
Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...
environ 11 ans il y a
A résolu
Find smallest integer type to accommodate your number
MATLAB supports 1-, 2-, 4-, and 8-byte storage for integer data. Find the smallest integer type to accomodate a scalar integer. ...
environ 11 ans il y a
Problème
Find smallest integer type to accommodate your number
MATLAB supports 1-, 2-, 4-, and 8-byte storage for integer data. Find the smallest integer type to accomodate a scalar integer. ...
environ 11 ans il y a | 3 | 32 solveurs
A résolu
Max index of 3D array
Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...
environ 11 ans il y a
A résolu
Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...
environ 11 ans il y a
A résolu
Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...
environ 11 ans il y a
A résolu
It's race time again! Write a function that is at least twice as fast as the test suite call of repmat().
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. This must be done in l...
environ 11 ans il y a
A résolu
Convert elements in numeric array into different class
Write a function that converts elements in a numeric array into a different class. Example: a = [1:5]; % class: double b...
environ 11 ans il y a