Statistik
RANG
17.742
of 300.847
REPUTATION
2
BEITRÄGE
7 Fragen
0 Antworten
ANTWORTZUSTIMMUNG
71.43%
ERHALTENE STIMMEN
2
RANG
of 21.094
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Discussions
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Gelöst
Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to find the logical indices o...
5 Monate vor
Gelöst
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.
5 Monate vor
Frage
Is it possible to make this tiny loop faster?
It seems that it might be possible to make this loop faster. Does anyone have any thoughts? I have to call a loop like this mi...
8 Monate vor | 2 Antworten | 0
2
AntwortenGelöst
Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.
9 Monate vor
Gelöst
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
9 Monate vor
Gelöst
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
9 Monate vor
Frage
Generate Code for transforming structure array to cell array
I have a structure array that I want to convert to a cell array. I can do this in MATLAB, but this function is part of a larger...
10 Monate vor | 0 Antworten | 0
0
AntwortenFrage
Make for loop more efficient
I have a function with the following for-loop that seems to be pretty efficient. However, I'm wondering if this is the most eff...
11 Monate vor | 0 Antworten | 0
0
AntwortenGelöst
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 3 3 3 4...
11 Monate vor
Gelöst
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...
11 Monate vor
Gelöst
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...
11 Monate vor
Gelöst
Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.
11 Monate vor
Gelöst
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 ...
11 Monate vor
Frage
Fast reorganization of cell arrays
I have two cell arrays which store row indices to other arrays for processing. TB is a column cell array that stores the indice...
11 Monate vor | 1 Antwort | 0
1
AntwortFrage
Eliminate for-loop in recursive computation?
I'm trying to speed up a recursive calculation that is currently using a for-loop. A minimum working example is below. There a...
12 Monate vor | 1 Antwort | 0
1
AntwortGelöst
Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...
12 Monate vor
Gelöst
Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...
12 Monate vor
Frage
How can I more fully vectorize to eliminate for loops?
I have three vectors that must be comined to form a forth vector as where . I want to completely vectorize this computation to...
etwa 3 Jahre vor | 1 Antwort | 0
1
AntwortFrage
How do I include my simulink model in a live script
I have created a live script that calls a simulink model. The live script calls the simulink model just fine and it runs well, ...
etwa 8 Jahre vor | 1 Antwort | 2

