photo

George Bashkatov


Last seen: 대략 1개월 전 2020년부터 활동

Followers: 0   Following: 0

통계학

All
  • Solver
  • Thankful Level 3

배지 보기

Feeds

보기 기준

질문


How to speed up my code?
I have a code with a lot of cycles and matrix multiplication. Input data: vector M of matrices 2x2, n2 - length of vector M (num...

거의 3년 전 | 답변 수: 1 | 0

1

답변

답변 있음
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 ...

3년 초과 전 | 0

| 수락됨

질문


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...

3년 초과 전 | 답변 수: 1 | 1

1

답변

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

3년 초과 전

질문


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...

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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...

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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); % Интенсивность накачк...

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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. ...

거의 4년 전 | 답변 수: 2 | 0

2

답변

질문


Help me with plotting, please.
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 ...

거의 4년 전 | 답변 수: 1 | 0

1

답변

질문


Problem with plotting equation
I have an implicit equation where x and y - variables. I want to make a graph, but ezplot function doesn't work. MATLAB writes: ...

거의 4년 전 | 답변 수: 1 | 0

1

답변