plot([complex(0) complex(2)]) not the same plot as MATLAB

Bug #1960835 reported by Rob Frohne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octave (Ubuntu)
New
Undecided
Unassigned

Bug Description

It looks like complex(0) simplifies to 0 real in octave, but not MATLAB. MATLAB plots this in the complex plane, but octave does not. Furthermore, when plotting with other complex numbers that force the complex plane, it looks like octave defaults complex(0) to 1 or something.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: octave 6.2.0-1
ProcVersionSignature: Ubuntu 5.13.0-28.31-generic 5.13.19
Uname: Linux 5.13.0-28-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Feb 14 07:29:02 2022
InstallationDate: Installed on 2021-05-25 (265 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: octave
UpgradeStatus: Upgraded to impish on 2021-09-29 (138 days ago)

Revision history for this message
Rob Frohne (frohro) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.