[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33982] Use of tilde (~) operator to ignore ou
From: |
PL |
Subject: |
[Octave-bug-tracker] [bug #33982] Use of tilde (~) operator to ignore outputs is not supported |
Date: |
Thu, 11 Aug 2011 08:00:48 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1 |
URL:
<http://savannah.gnu.org/bugs/?33982>
Summary: Use of tilde (~) operator to ignore outputs is not
supported
Project: GNU Octave
Submitted by: gbhrt
Submitted on: tor 11 aug 2011 08.00.47
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.2
Operating System: Microsoft Windows
_______________________________________________________
Details:
In matlab, inputs or outputs can be selectively ignored using the tilde ~
operator, Octave seem to think the use of ~ in these cases is a syntax error.
Example:
function [a, b] = example(a,b)
a = a +b;
b = a - b;
end
octave-3.2.4.exe:5> [a, ~] = example(1,2)
parse error:
syntax error
>>> [a, ~] = example(1,2)
^
Matlab documentation on the subject:
http://www.mathworks.com/help/techdoc/matlab_prog/bresuxt-1.html#br67dkp-1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33982>
_______________________________________________
Meddelandet skickades via/av Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33982] Use of tilde (~) operator to ignore outputs is not supported,
PL <=