Community Profile

photo

Erin Pratt


Last seen: 5 months ago Active since 2018

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


Error using Parfor "Unable to classify the variable 'Sort'"
Please help, pulling my hair out; The following code is meant to sift through arrays Sort and Sort2 looking for intersections, ...

6 months ago | 1 answer | 0

1

answer

Question


How to vectorize a for loop with array multiplication?
Please help on replacing: for i=1:Nm Sloctemp(i,:,:)=Sloctemp(i,:,:)*Sort(m,i); end Where Nm = 19 Sloctemp is a 30x6x6 m...

7 months ago | 1 answer | 0

1

answer

Question


How to vectorize a for-loop please help?
I am trying to eliminate a for-loop that looks like: for k=1:N Smat1(i,j)=Smat1(i,j)+Sloctemp(k,1,1)*(Sloc(k,1,5)==countro...

7 months ago | 0 answers | 0

0

answers

Question


Need surface area of fsurf between two planes
Please help. I have generated a cone with fsurf, and two planes to model a real-world welding problem. What I am trying to find...

2 years ago | 2 answers | 0

2

answers

Question


How to load text file and extract number from file that is not organized into columns?
I am running a finite element analyzer, that deposits the results into a text file called DYNA_1, DYNA_2, ect for each load step...

3 years ago | 1 answer | 0

1

answer

Question


How to contour of 4D matrix
Please help. I have a 4D matrix (4 columns x 8000 rows) of x, y, z, coordinates and c=f(x,y,z). The data when plotted looks like...

3 years ago | 1 answer | 0

1

answer

Question


How to find point(s) of intersection between two scatter surfaces and the zero plane?
Please help, I have searched a lot for this inquiry, but couldn't find anything to solve my issue; I have two surfaces (green...

3 years ago | 1 answer | 1

1

answer

Answered
Why is vectorizing way slower than the for-next loop it replaced?
dpb and Matt, thank very much for your responses. Matt, the index is only for four, I= 1 to 4 is correct. So for my case, do ...

3 years ago | 0

Question


Why is vectorizing way slower than the for-next loop it replaced?
So wrote this program that iterates 7 variables, each nested in to the next, so my run times are from 5 to 45 minutes. Naturally...

3 years ago | 2 answers | 0

2

answers