Best method to be implimented
Having a couple of equations inside a function. This function has an output.This output is again an input in the same equation u...
adding matrices with different dimensions
I got an equation similar to this : X-sin(thita).
size(X) = 1x50
size(thita) = 1x180.
My output should be a matrix of 50x1...
Vectorization of for/loop
I have the following code:
for ii = 1: length(angles)
laminate.ply(ii).angle = angles(ii)/180*pi;
laminate.ply(ii)...
10 years 前 | 2 个回答 | 0
2
个回答
提问
More efficient way of this code?
Lets say that i have a function : y=fun(x,z) that do the following calculations :
ex1:
fun([0 45 90],2) , y=[0 45 90 0 4...