Community Profile

photo

Darcy Chou


Last seen: 8 months ago Active since 2018

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

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

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

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

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

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

6 years ago | 3 answers | 0

3

answers