From: Nick N on 16 Feb 2010 11:44 Dear all, I am new to this forum & Matlab. Just wondering if Matlab supports this kind of statement like in C programming: (expr1) ? expr2:expr3 This is equivalent to if (expr1) expr2; else exp3; end; Any help would be much appreciated. Thanks!
From: dpb on 16 Feb 2010 21:54 Nick N wrote: .... > ... wondering if Matlab supports this kind of statement like in C programming: > > (expr1) ? expr2:expr3 .... nope, ML is not C (nor particularly "C-like") --
|
Pages: 1 Prev: Initialization of a 3d matrix of Handle Objects Next: corr2 und corrcoef only produce Nans |