필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

While loop won't plot while remebering numbers

조회 수: 1 (최근 30일)
NielsDS
NielsDS 2016년 12월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
I'm trying to write a kind of gambling game, in which all the results should be plotted in a graph. I used a While loop and nestled a switch in it, the program works but it won't plot. Would be great to get some help!
Small piece of the programm

답변 (1개)

Kelly Kearney
Kelly Kearney 2016년 12월 5일
You're overwriting b each time though the loop, and not saving values to an array as you go along. So at the time of plotting, both b and n are scalars. And if you plot a single plot point without a marker, nothing will be visible.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by