Community Profile

photo

CHENG QIAN LAI


Last seen: 13 giorni fa Attivo dal 2020

Followers: 0   Following: 0

Statistiche

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

Visualizza badge

Feeds

Visto da

Risolto


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

circa un anno fa

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

Risolto


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

oltre 3 anni fa

Risolto


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

oltre 3 anni fa

Risolto


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

oltre 3 anni fa