[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43614] Plotting of a Nested Function Fails
From: |
Matthias Jüschke |
Subject: |
[Octave-bug-tracker] [bug #43614] Plotting of a Nested Function Fails |
Date: |
Fri, 14 Nov 2014 19:38:17 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:33.0) Gecko/20100101 Firefox/33.0 |
Follow-up Comment #1, bug #43614 (project octave):
x is a vector. If you multiply a vector with another vector, the dimensions
must fit. Because they don't fit, the error message is displayed.
You want to multiply each element of one vector with the corresponding element
of the other vector. So you have to insert a dot in front of the operator '*'
and write
plot(x,sin(x)+sin(x.*4*sin(x)));
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43614>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/