Community Profile

photo

Likun


California Institute of Technology

Active since 2013

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Print depsc is slow
Hello, I am using quiver3 to generate some 3d vector field pictures and using print -depsc to save them as eps file. The i...

10 years ago | 0 answers | 0

0

answers

Question


how to fprintf vectors of symbolic function with parentheses
Hi all, I am using fprintf to output a vector of symbolic function, here is a piece of my code: fvec = sym('fvec', [1 ...

10 years ago | 1 answer | 0

1

answer

Question


How to define a vector of symbolic functions
Hi all, I have a vector of functions f(x), where f and x are vectors. For example, f(x)=[x1^2+x2-x3; x2+x3^2; x1*x2]; H...

10 years ago | 1 answer | 1

1

answer

Question


How to define a symbolic vector
Hi all, I want to define a symbolic vector with dimension N, e.g u(1..N) and use it to do some symbolic calculations, e.g. u(...

10 years ago | 1 answer | 0

1

answer

Question


parallel computing of optimization problem
Hi all, I am trying to parallelize my optimization code. Below is my original code options=optimset('TolX',1e-8,'TolFun...

10 years ago | 1 answer | 0

1

answer

Question


how to add multidimensional arrays
Hi all, I have the following commands: j=1:N elem(j,1,1)=alfa(j).*E0(1,1).*sigma(j,1,1); elem(j,1,2)=alfa(j).*E0(1,2)...

10 years ago | 1 answer | 0

1

answer

Question


data type on matlab performance
Hi all, I am analyzing the performance of my code using profile. Here is part of my code: global NX1 NX2 LU_nr dx1 dx2 u...

10 years ago | 0 answers | 0

0

answers

Question


How to vectorize the for loop
Dear all, I am trying to vectorize the following statement: u=zeros(n,2,2); v=zeros(N); w=zeros(n,2,2); for...

10 years ago | 1 answer | 0

1

answer

Question


How to Vectorize if statement
Dear all, Here is part of my code for vectorizing the for loop and if statement: u=zeros(N,1); du=zeros(n,1); j=1:...

10 years ago | 1 answer | 0

1

answer