Community Profile # George Bashkatov

Last seen: 6 months ago Active since 2020

#### Statistics

All
• • #### Content Feed

View by

To pass a variable outside a parfor loop
1) replace (length(A)-1), length(P) and (length(B)-1). 2)make temporary variables lentemp and rtemp 3)add one more index j ...

6 months ago | 0

| accepted

Question

To pass a variable outside a parfor loop
I have a loop that looks like: parfor j=1:length(P) for i=1:(length(A)-1) %unnecessary calculations for i=1:(length(A)-1) e...

6 months ago | 1 answer | 0

### 1

Question

Vectorization of a function with system of ODE's
I want to modify famp so that it accepts a vector of y values, and reshapes the values to 2 columns, and then computes values fo...

6 months ago | 1 answer | 0

### 1

Question

Improving the speed of code with passing to a function input a cell array or structure.
I'm trying to pass some amount of numerical data as a function input. I had that row in my code: [z1,y1]=ode45(@(z,y) famplif...

7 months ago | 1 answer | 0

### 1

Question

How can I vectorize this code?
i had a loop: for j=1:length(Pa) for i=1:(length(r)-1) Ip=2*Pa(j)*exp(-2*r(i)^2/wa^2)/(pi*wa^2); % Интенсивность накачк...

8 months ago | 1 answer | 0

### 1

Question

Pass a structure to a function
I'm trying to pass this structure to the function, but matlab writes: Dot indexing is not supported for variables of this type. ...

8 months ago | 2 answers | 0

### 2

Question

Here is the code: h_s=0.1; % step for integrals and graphs n_0=1*10^19; %quantity of atoms W=0.7; %wide (cm) H=0.3; %height ...

10 months ago | 1 answer | 0