photo

CHENG QIAN LAI


Last seen: 12 jours il y a Actif depuis 2020

Followers: 0   Following: 0

Statistiques

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

Afficher les badges

Feeds

Afficher par

A résolu


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

plus d'un an il y a

Réponse apportée
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...

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

Réponse apportée
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 (...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a