Community Profile

CHENG QIAN LAI

Last seen: 3 maanden ago
7 total contributions since 2020

View details...

Contributions in
View by

how can i make this animation faster in MATLAB?
% If you draw x,y ,you will get 1000 Line objects. % (ball_bounce1=1000 Line obj) ball_bounce1= plot(x,y,'c'); numel( ball_bo...

5 maanden ago | 0

Vectorize two for loops
[i,j]=ndgrid(1:100,1:200); % 1 2 3 . . . 200 %--------------------------- % i= 1 1 1 . . . 1 | 1 % 2...

6 maanden ago | 0

Matrix operation connecting two Matrix
For example: B(1,1)=2 means second element of A (=15) --> A( B(1,1),1 ) = A( 2,1 ) = 15 B(2,2)=4 means forth element of A (...

6 maanden ago | 0

| accepted

How to lock the axis origin and limits for an axes figure in app designer
t = linspace(0,10*pi,200); x = sin(t); y = cos(t); hAxes=axes; line(hAxes,x,y,t) view(3) hBehavior = hggetbehavior(hAx...

6 maanden ago | 0

Solved

Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

6 maanden ago

Solved

Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

6 maanden ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

6 maanden ago