Out of memory issue

조회 수: 1 (최근 30일)
Dugalls
Dugalls 2012년 8월 6일
I am trying to plot data points from several sources. I am plotting one value (s) on the x axis, and I'm plotting y as p/sqrt(s) (note p is perimeter and s is area). However, when ever I try to plot the last 5000 points, I run out of memory. Is there a way to make it work for me? My code looks like:
plot (s1(500101:505101), p1(500101:505101)/sqrt(s1(500101:505101));
If I can get just one working then the rest should also work. Thank you.

답변 (1개)

Oleg Komarov
Oleg Komarov 2012년 8월 6일
Use ./ instead of /.
Elementwise division.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by