Items tagged with read read Tagged Items Feed

Is there a command (possibly in a package) which can help in reading parameters from ini text files like

    [section1]

    option1=1.0

    option2=2.0

    [section2]

    option3=3.0

 

Thanks in advance!

Suppose I have a file of text that I would like to read into a Maple (16) worksheet as a string. (I have in mind encrypting the string using the RSA encryption scheme.)

If I paste the text directly into the worksheet and surround it by ",  I have no problem, but if I try to read, for example, a file some_text.txt using a command like

     read("C:\\Users\\MyName\\Desktop\\some_text.txt");

Hi all.

I want to make a graphical application for a webpage, showing curves with a certain number of points on X axis (about 10 or 15), and some sort of “handles” on curve values (for every curve,...

Hello.
A simple procedure:
> restart;
> A := Array([1, 2, 3,4,5,6])
> for i from 1 to 6 do
   B[i]:=2*A[i];
    od;
This procedure is runed, the results are
B[1] := 2
B[2] := 4
B[3] := 6
B[4] := 8
B[5] := 10
B[6] := 12

However, what I want is:
If A is saved in a arbitrary folder, for example c:\myp\*.txt(or excel,dat), how can I read these data?
Then, if I want last results to be saved in a folder, for example c:\myp\*.txt...

http://www-igm.univ-mlv.fr/~gauthier/HYPERG.html

> Read("D:/Feb2012/HYPERG.mw"); with(HYPERG);
Error, invalid input: with expects its 1st argument, pname, to be of type {`module`, package}, but received HYPERG

HYPERGLIB := "D:/Feb2012/";
libname := libname, HYPERGLIB:

both methods above.

after typing PolyRecSol(H...

no result in Maple 15, just return similar command, no equation return.

Am i undestand right that all GUI-changed properties of plot are not accessable via command-line because with already pictured plot there are no binded variables and no method to bind? For example after manual streching and moving i need to work in interest area of graph i.e. includding new textplots there and so on. See only way to work with via DocumentTools component and it events to get e.g. xrange  and yrange. Is there better way?

In case if you like notepad++  under windows, and still didn't do smth like that then this is for you .userDefineLang.zip

Unpack to notepad++ folder. In case if you already had had other
own language then just copy "Maple language" section.

Hello,

For a face recognition program I need to import all the jpg files that are in a map
on the hard drive. I can already do this by f(i):=Read("C:xxx\\xx\\xxx\\xxx.jpg"); 
that gives f(i) a single jpg file.
But this requires every file to be imported separately. Is there a way to import all the jpg
files from that map?
e.g. f:=Read("...\\*.jpg"); that would give f a list of all the jpg files in the map.

KR 

This is a question about how to read standard input in UNIX (bash).

I would like to write code in an easy to use editor (BBEdit) and use maple to take input from what other systems would refer to as STDIN or $stdin. The motivation for using an external text editor is to reduce the memory burden on the Maple editor in a program that rotates hundreds, hopefully thousands, of Maple points and other objects (See: http://www.mapleprimes.com/questions/123184...

Hi there,

Often an expression has more than one output, for example, when simply more solutions exist: sol1, sol2, ...

Then I would get the second solution by %[2]. So far so good.

Anyway sometimes the output is splited in cases, with the { notation. How do I read out a specific case of such a solution?

thx :)

Hi,

I am using maple x64 to read/ open some large TIF files.   The files are 57 Mb each and I want to open 16 of them.  Maple looses kernal connection twards the end of the calculations each time.  This is anoying. Is there a way to fix this?

If I take the result form y and defign it as y and delete x them maple will calculate 1 more function set.

document setup;

x=read-image (using the actual maple commant)

y=entropy (x...

Dear all,

I wrote some simple functions in Maple 13, called "myproc" file,

and used startup code (edit-->startup code) to initialize it in a worksheet by: read "myproc";

Now I am using Maple 14, it does not work, says, "unable to read", sort of thing.

 

I have also tried to rename the file to myproc.m and read "myproc.m";

does not work either.

Is there any compatibility problem?

Thanks.

casper

Hi there,

I've got a weird error which kept me busy for two hours now:

I'm doing computations outside Maple and successfully read in a string, e.g.

s := "T(3)^5*T(5)^35";

Then I parse s by performing

t:=parse(s)

Then

u := subs({seq(T(i) = S[i], i = 1 .. 5)}, parse(t))

gives me

S[3]^5 * S[5]^35

Now the weird part: This works all fine if I put those command right in a Maple10-sheet.

If I however use this in a function fun(...

Reading a text file

January 12 2011 by Deadstar 187 Maple 13

This happens every single time I try to do this and I need to resolve it once and for all.

 

I have a text file called be which is sitting on my desktop. It consists of two columns of data seperated by whitespace. How do I get maple to read this file? The help pages are of no use since it just tells me to do something like...

 

readdata(be,2): or readdata(be,1):


both of give the same "Error, (in readline) file or directory...

hey there,

i have a textfile with three columns and i am using the "readdata" command. the first column is a filepath that i read in as a string. unfortunately the filepath is saved with backslashes ("c:\data\...") and therefore i cannot open the file that is indicated by the path. how can i replace the backslashes with forward slashes? any other ideas are also appreciated. thanks!

1 2 Page 1 of 2