0

Suppose I define

Octave:1>s = "hello";
Octave:2>mkdir s
Octave:3>cd s

This creates a directory named s (instead of hello), and changes to that directory. How to use hello instead?

1 Answer 1

3
mkdir(s)
cd(s)

Take a look at functional vs command syntax: https://octave.org/doc/v5.2.0/Commands.html

Sign up to request clarification or add additional context in comments.

2 Comments

Just asking, did you already know this from experience, or did you find it in the docs? The docs contain everything, but I often cannot find the relevant doc because I don't know which section to look at.
Hi @ArchismanPanigrahi, you can easily search within the docs from duckduckgo or google by prepending "site:" and the url you want to search from in the query. E.g. search for commands site:octave.org/doc/v5.2.0/ in duckduckgo to see what results come out!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.