help-octave
[Top][All Lists]
Advanced

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

Re: Matrices, functions


From: Sebastian Schöps
Subject: Re: Matrices, functions
Date: Sat, 2 Dec 2017 03:45:51 -0700 (MST)

Egshiglen Bat-Erdene wrote
> I have a quetionabout function on matrices. Its a homework
> The question is
> Write a function that applies the function 2(sinx)^2 +1 to every second
> column of a matrix.

The exercise is quite clear, so what is your actual question about it? 
You do not expect us to solve it for you, do you?

Some links that may be useful
* learn how to do element-wise operations
https://www.gnu.org/software/octave/doc/v4.2.1/Arithmetic-Ops.html

* how to index a matrix
https://www.gnu.org/software/octave/doc/v4.2.1/Index-Expressions.html

* find out about trigonometric functions
https://www.gnu.org/software/octave/doc/v4.2.1/Trigonometry.html

Sebastian



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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