comparison libinterp/corefcn/ls-oct-ascii.cc @ 17199:9deb214ae9d5

Use 2-D, not 2D, in error messages. * libinterp/corefcn/cellfun.cc, libinterp/corefcn/ls-oct-ascii.cc, libinterp/octave-value/ov-bool-sparse.cc, libinterp/octave-value/ov-cx-sparse.cc, libinterp/octave-value/ov-re-sparse.cc, scripts/plot/private/__go_draw_axes__.m, scripts/polynomial/private/__splinefit__.m, scripts/sparse/svds.m, scripts/special-matrix/gallery.m: Use 2-D, not 2D, in error messages.
author Rik <rik@octave.org>
date Wed, 07 Aug 2013 13:42:49 -0700
parents 68fc671a9339
children bc924baa2c4e
comparison
equal deleted inserted replaced
17198:81f3b09e3e6e 17199:9deb214ae9d5
365 octave_idx_type nr = tc.rows (); 365 octave_idx_type nr = tc.rows ();
366 octave_idx_type nc = tc.columns (); 366 octave_idx_type nc = tc.columns ();
367 367
368 if (tc.is_real_matrix ()) 368 if (tc.is_real_matrix ())
369 { 369 {
370 os << "# 3D data...\n" 370 os << "# 3-D data...\n"
371 << "# type: matrix\n" 371 << "# type: matrix\n"
372 << "# total rows: " << nr << "\n" 372 << "# total rows: " << nr << "\n"
373 << "# total columns: " << nc << "\n"; 373 << "# total columns: " << nc << "\n";
374 374
375 long old_precision = os.precision (); 375 long old_precision = os.precision ();
406 406
407 os.precision (old_precision); 407 os.precision (old_precision);
408 } 408 }
409 else 409 else
410 { 410 {
411 ::error ("for now, I can only save real matrices in 3D format"); 411 ::error ("for now, I can only save real matrices in 3-D format");
412 fail = true; 412 fail = true;
413 } 413 }
414 414
415 return (os && ! fail); 415 return (os && ! fail);
416 } 416 }