Statistiques
RANG
6 339
of 295 467
RÉPUTATION
7
CONTRIBUTIONS
9 Questions
6 Réponses
ACCEPTATION DE VOS RÉPONSES
33.33%
VOTES REÇUS
3
RANG
of 20 234
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
What does this error message mean?
I've got two vectors: times = 0 0.0005 0.0050 0.0500 0.5000 5.0000 mittel = ...
environ 10 ans il y a | 3 réponses | 2
3
réponsesCalculate max(diff(A)) fast and memory efficient.
Just as a comparison: I implemented the for loop way in Julia: elapsed time: 0.016319368 seconds
plus de 10 ans il y a | 0
Question
Calculate max(diff(A)) fast and memory efficient.
Say I have a giant array A of 2 gb and I want to make something like an analog edge-detection: [max, index] = max(diff(A))...
plus de 10 ans il y a | 3 réponses | 0
3
réponsesQuestion
How do i calculate the frequency of signal with low sampling rate
I've got a sinusoidal signal with a low sampling rate: x = 0:0.2*pi:6*pi; y = sin(x) -0.25 + 0.5* rand(size(x)); Is...
plus de 10 ans il y a | 1 réponse | 0
1
réponseQuestion
How can I calculate max and min in degree?
I've got an Array with my Phase Phi in degrees:[ 170°,179°,180°,-179°...] ranging from -180° to 180° and I want to calculate how...
plus de 10 ans il y a | 2 réponses | 0
2
réponsesQuestion
Improper Arguments. Waitbar Error
I have problems using my waitbar. This is the code I want to run: h = waitbar(0,'uiae'); for file_num = 1:numel(files)...
plus de 11 ans il y a | 1 réponse | 0
0
réponseQuestion
Vectorizing the creation of an offset vector
Is there any possibility to vectorize this piece of code: BIN_1 = 7; C = randi(10,1000,1); offset_vec = zeros(size(C...
plus de 11 ans il y a | 2 réponses | 0
2
réponsesHow to reduce the time to calculate the inverse of a matrix
I think the inv function implemented by Mathworks is as fast as it gets for the general purpose. There are two inv-functions in ...
plus de 11 ans il y a | 0
Question
Optimize this program on a GPU
I'm trying to speed up my program on a GPU. But it is much slower than the CPU version, although I use a very powerful GPU. I ha...
plus de 11 ans il y a | 1 réponse | 0
1
réponseA résolu
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
plus de 11 ans il y a
A résolu
Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
plus de 11 ans il y a
A résolu
How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...
plus de 11 ans il y a
A résolu
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...
plus de 11 ans il y a
A résolu
Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...
plus de 11 ans il y a
A résolu
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
plus de 11 ans il y a
A résolu
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
plus de 11 ans il y a
A résolu
Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...
plus de 11 ans il y a
A résolu
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
plus de 11 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 11 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 11 ans il y a
A résolu
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
plus de 11 ans il y a
A résolu
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
plus de 11 ans il y a
A résolu
Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0
plus de 11 ans il y a
A résolu
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
plus de 11 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 11 ans il y a
A résolu
Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...
plus de 11 ans il y a
how do i sort a single row in terms of descending terms
If you only want to sort the first column have a look at B = sort(A,dim) http://www.mathworks.de/de/help/matlab/ref/sor...
plus de 11 ans il y a | 0
How can you separate incoming serial data?
I don't have an Arduino, so I couldn't test it. But how about that: c_str=regexp(C,'?','split');
plus de 11 ans il y a | 0
| A accepté
A résolu
Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...
plus de 11 ans il y a
A résolu
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
plus de 11 ans il y a