help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1 i 2


From: slaythemall
Subject: Re: 1 i 2
Date: Wed, 22 Jun 2016 00:47:45 -0700 (PDT)

%zadanie 1%
function [Y] = f1(X)
        Y = zeros(size(X));
        B = X < 0;
        
        Y(B) = sin(3 .* X(B));
        Y(~B) = (X(~B).^2)/atan(X(~B));
endfunction

%main%
X = -3:0.1:3;
Y = f1(X);



--
View this message in context: 
http://octave.1599824.n4.nabble.com/1-i-2-tp4677888p4677892.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]