Community Profile

# Darcy Chou

##### Last seen: 1 month ago
5 total contributions since 2018

#### Darcy Chou's Badges

View details...

Contributions in
View by

Question

how to creat a Vectorization instead of a Double Loop
for i = 1:n for j = 1:m if A(i,j)==1 output = myfcn(A,i,j); if output==0 ...

2 months ago | 1 answer | 0

### 1

answer

Question

How can I replace for loop with meshgrid?
For example, a = zeros(20,100); b = rand(20,100); for m = 2:20 for n = 2:100 a(m,n)=b(m-1,n)+1; end end ...

2 years ago | 1 answer | 0

### 1

answer

Question

Using matlab to evolute a simple vector , but not fit the inference
clear clc time = 4; size = 8; % initialize. a = ones(time,size); a(1,6) = 5; % if a(i)>1,then a(i)=a(i)-1 and a(i-1)=a(i-...

2 years ago | 2 answers | 0

### 2

answers

Question

How to calculate the rest volume of water in a pouring cylindrical cup
The schematic diagram is shownd below. <</matlabcentral/answers/uploaded_files/136804/1.jpg>> and then <</matlabcentr...

2 years ago | 1 answer | 0

### 1

answer

Question

how to get an analytical solution
syms tp t NN=((exp(-1.45*10^(-4)*tp^1.274))^1.5)/2 z=4/3*pi*NN*(t-tp)^3 Z=int(z,tp,0,t) output is...

3 years ago | 3 answers | 0

answers