Community Profile

# Howard Wilton

Last seen: etwa 2 Monate vor Aktiv seit 2022

#### Statistics

Abzeichen anzeigen

#### Content Feed

Anzeigen nach

Frage

Generate combinations with scaleable code
I have a tight piece of code which generates a 16x4 matrix which essentially is 16 vectors with 4 elements each and i want all t...

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Vectorize application of xcorr() function
For the following code, t = 0:1e-3:1-1e-3; AF_hat = []; fd_ = -8:0.1:8; for fd = fd_ AF_hat = [AF_hat; xcorr(s,s.*exp...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Vectorization of a for loop to increase speed
I am looking to embed an logical expression in an equation. The code example below is to show the problem and is not a reflecti...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Another question on eliminating for loops....
I would like to eliminate for loops in the following code, L=3; N=L; R=L^2 * N^2; mat = int8(zeros(R,4)); ind = 1; for n =...

4 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

Eliminate a for loop to increase speed
I have a code snippet below which uses a for loop that I am trying to eliminate as I need to scale up to larger values of and ....

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Code optimization by way of selective computations
I have the following code: clc; clearvars; Ts = 1e-1; t = 0:Ts:1-Ts flag = mod(1:length(t),2) s_t = exp(1i*2*pi*t) ...

4 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

Replicate matrix elements without for loop
I am trying to take the matrix base =[1 2; 3 4] and replicate the elements to give expn = [ 1 1 2 2; 1 1 2 2; 3 3 4 4; 3 3 ...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Avoid for loop in multi-dimensional problem
I am looking to create a 3D matrix the achieves the following: A(:,:,1)=[0 -2*pi; 2*pi 0]; A(:,:,2)=[0 -4*pi; 4*pi 0]; Ultimat...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Optimization of code with double for-loops
I am looking to optimize the following code specifically, and more generally, I am trying to learn optimization techniques in MA...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Generate a formula from equation
I am trying to plot the following, where , and is a constant. I wish to create a vector of data using the vector so that my...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Elimination of for loops
I am learning how to optimize code in MATLAB. I have the following mathematical experession, where is a unit pulse of lengt...

4 Monate vor | 2 Antworten | 0

Antworten