필터 지우기
필터 지우기

RandomPoints plot &scatter

조회 수: 2 (최근 30일)
Marwen Tarhouni
Marwen Tarhouni 2016년 12월 27일
편집: Marwen Tarhouni 2016년 12월 30일
Bonjour,
Je besoin de tracer une figure qui contient 20 points randomisées dans une area [-100 100]. Je veux obtenir cette figure 10^6 càd 10^6 figures, chacune contient 20 points. pourriez vous m'aider,j'essaye d’utiliser la syntaxe rand(n)
merci
set(gca,'xtick',-100:20:100);
set(gca,'ytick',-100:20:100);
axis([-100 100 -100 100]);
grid
  댓글 수: 3
Image Analyst
Image Analyst 2016년 12월 27일
What does "I want to get this figure 10 ^ 6 càd 10 ^ 6 figures" mean? How many figures do you want to create with 20 points each in them? And don't say an array of a million by a million figures. You can't fit a billion figures on your screen.
Marwen Tarhouni
Marwen Tarhouni 2016년 12월 27일
편집: Marwen Tarhouni 2016년 12월 30일
je veux exécuter plusieurs fois l'algorithme pour obtenir plusieurs scénarios c'est à dire l'emplacement des points chaque exécution se change

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2016년 12월 27일
How about this:
x = 200 * rand(1,20) - 100;
y = 200 * rand(1,20) - 100;
plot(x, y, 'b*');
grid on;
  댓글 수: 1
Marwen Tarhouni
Marwen Tarhouni 2016년 12월 27일
편집: Marwen Tarhouni 2016년 12월 30일
merci

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by