Mercurial > octave
comparison scripts/plot/draw/stemleaf.m @ 21568:3d60ed163b70
maint: Eliminate bad spacing around '='.
* Figure.h, PopupMenuControl.cc, annotation-dialog.cc, gl-select.h,
files-dock-widget.cc, find-files-dialog.cc, history-dock-widget.cc,
file-editor.cc, main-window.cc, webinfo.cc, resource-manager.cc,
shortcut-manager.cc, workspace-view.cc, __ichol__.cc, __ilu__.cc,
__lin_interpn__.cc, bitfcns.cc, debug.cc, filter.cc, ft-text-renderer.cc,
graphics.cc, graphics.in.h, hex2num.cc, jit-typeinfo.cc, load-save.cc,
ls-mat5.cc, mxarray.in.h, oct-stream.cc, pr-output.cc, variables.cc,
__init_fltk__.cc, __magick_read__.cc, chol.cc, ov-struct.cc, op-scm-cs.cc,
pt-assign.cc, CollocWt.cc, randpoisson.c, inputParser.m, quadgk.m, waitbar.m,
imwrite.m, __imread__.m, textread.m, fileattrib.m, __xzip__.m, what.m,
fsolve.m, fix_depends.m, stemleaf.m, bicgstab.m, ichol.m, io.tst:
maint: Eliminate bad spacing around '='.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 30 Mar 2016 22:09:26 -0700 |
parents | f7f97d7e9294 |
children | b571fc85953f |
comparison
equal
deleted
inserted
replaced
21567:3d25f9f4a62b | 21568:3d60ed163b70 |
---|---|
246 endif | 246 endif |
247 endif | 247 endif |
248 | 248 |
249 ## Vectorized version provided by Rik Wehbring (rik@octave.org) | 249 ## Vectorized version provided by Rik Wehbring (rik@octave.org) |
250 ## Determine leaves for each stem: | 250 ## Determine leaves for each stem: |
251 new_line = 1; | 251 new_line = 1; |
252 for kx = 2: numel (stems) | 252 for kx = 2: numel (stems) |
253 | 253 |
254 stem_sign = signbit (stems(kx)); | 254 stem_sign = signbit (stems(kx)); |
255 if (stems(kx) <= 0) | 255 if (stems(kx) <= 0) |
256 idx = ((x <= stems(kx)*stem_step) & (x > (stems(kx-1)*stem_step)) | 256 idx = ((x <= stems(kx)*stem_step) & (x > (stems(kx-1)*stem_step)) |