Jump to content

Empty string: Difference between revisions

→‎{{header|MATLAB}} / {{header|Octave}}: empty string in Matlab and Octave
(Add LabVIEW)
(→‎{{header|MATLAB}} / {{header|Octave}}: empty string in Matlab and Octave)
Line 336:
str=!="" (*test not empty*)
</lang>
 
=={{header|MATLAB}} / {{header|Octave}}==
 
<lang Matlab> % Demonstrate how to assign an empty string to a variable.
str = '';
% Demonstrate how to check that a string is empty.
isempty(str)
(length(str)==0)
% Demonstrate how to check that a string is not empty.
~isempty(str)
(length(str)>0)</lang>
 
=={{header|Mirah}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.