Community Profile

photo

CHENG QIAN LAI


Last seen: Today Active since 2020

Statistics

All
  • Knowledgeable Level 1
  • First Answer
  • Revival Level 1
  • Solver
  • First Review

View badges

Content Feed

View by

Solved


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

ongeveer een jaar ago

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

meer dan 3 jaar ago | 0

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

meer dan 3 jaar ago | 0

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

meer dan 3 jaar ago | 0

| accepted

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

meer dan 3 jaar 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...

meer dan 3 jaar 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...

meer dan 3 jaar 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 ...

meer dan 3 jaar ago