## How to export result from Optimization[NLPSolve]...

I can't cut and paste from my maple worksheet (because syntax somehow gets changed in the process), so perhaps the following attempt at carefully worded  prose will do (alternately, please someone tell me how to attach screen shots).  Here goes...

I execute

The optimization succeeds and the assignment takes place.  The result is what I'ld like to cut and paste so youall can see...  it looks as follows. 'r:=' (but no quotes)  followed by open square bracket, then a number, then a comma, then another open square bracket, then a vertically arranged list of stuff, then two close brackets.  I presume the vertically arranged stuff in the innermost matching square brackets somehow represents the point in the search space where the minimum takes place, and the minimum is the number that follows the first square bracket and is before the comma.  My goal is to write to disk the the point in the search space where the minimum takes place (I suppose that vector is in some sense r[2]) .  My attempt to write it to disk is

ExportMatrix("maple.txt", r[2], target = auto)

but maple complains

ExportMatrix("maple.txt", r, target = auto);
Error, invalid input: ExportMatrix expects its 2nd argument, M, to be of type {Matrix, list(Matrix)}, but received [293148935266.099426, Vector(28, {(1) = -233674.34818878854, (2) = 12.62636610207248, (3) = 0.3337043409389546e-2, (4) = 0.13303915611938133e-1, (5) = .0, (6) = .2589485687872699, (7) = 0.9341600279762804e-1, (8) = 0.3293862590239189e-1, (9) = 0.12892649003200331e-1, (10) = 0.606528143324688e-1, (11) = 0.17524827222051658e-1, (12) = -0.16059611469561555e-17, (13) = 0.621465506367271e-1, (14) = .29826235341855, (15) = -0.16288776533795546e-17, (16) = 0.15301368661023716e-1, (17) = 0.1529933711903137e-18, (18) = 0.4375115591744606...

How can I write the result of optimization to disk as a plain ascii text file (tsv format)?

Thanks

## how i can save results in text file?...

hi

i want save result in text file?

how i can do it?

for example eta and F(eta) in two  column

sample file is attache.

printf.mw

txtop1.txt

sample for save results::::

eta                     F(eta)

0.00000000, 0.00000000
0.10000000, 0.00096663
0.20000000, 0.00373543
0.30000000, 0.00810907
0.40000000, 0.01388926
0.50000000, 0.02087683
0.60000000, 0.02887169
0.70000000, 0.03767307
0.80000000, 0.04707963
0.90000000, 0.05688968
1.00000000, 0.06690139

## Are NetCdf files supported by Maple ?...

Hello all,

A question concerning NetCdf files was asked in 2012 and is still unanswered today.
Browsing the questions only returns this item, suggesting the NetCdf topic is not a concern in the Maple community.
Nevertheless, does it exist some capabilities in reading and writting NetCDF files ?
If not, are there some planned development on the subject ?

Let's hope now for not having to wait four years for an answer, all responses will be greatly appreciated, even negative.

years

PS : NetCdf capabilities already exist in Sage or Mathematica

## Bad quality when exporting to PDF...

Hello all,

I have a question regarding printing to PDF. I am using Maple 2016.1 on Mac OS Sierra. When I choose print and use "Open PDF in Preview", I get to see something like this:

As you can see, the fonts are ugly and not anti-aliased at all (and it makes no difference whether I select that option explicitly in Maple preferences or not).
I've also tried Maple 2015, and it gives the same ugly result.

As a comparison, here is an example of a similar print of the same document that I've made in 2015:

Here, the font looks much better, properly aliased this time.
I also get this result when using Maple 18 on Sierra.

I am wondering: do other people also get this ugly result? In that case, it could indicate an issue with Maple 201X and Mac OS Sierra. Unfortunately, I no longer have Mac OS X El Capitan to compare...

P.s.: If someone wishes to try: just create some text input, choose Print, Open PDF in Preview, and then zoom in on the document.

Regards,

Franky

## defining a vector and store data in it, then writi...

I having a hard time with defining a vector, in order to store in it some data, then plot it and export it to a file, I copied all what's in the help instructures but it doesn't work everytime, please it's urgent for my PhD thesis !

## How to place a 3-d animation on the web so that on...

I have created several animated 3-d figures using Maple.  Exporting an animation as a gif file I find that with, for example, Quicktime, I can run the animation. However I cannot rotate the 3-d figures using Quicktime.  Is there some other way to make such animations available to people not having Maple, so they can rotate the figure as well as run the animation? I would appreciate any ideas about this.

## FITS output from a plot?...

Does anyone know how to take a Maple plot and convert it to FITS format?  FITS is commonly used in astronomical images and stands for Flexible Image Transport System.

## problem with writing the result to a file...

i want to write the result of a calculation to a file in a way that i can be able to call them later. for example :

restart;
n := 40; h := 40;
a := h*i/(2*n);

sys1 := [diff(x(t), t) = 2*t+1, diff(y(t), t) = 1+5*t, x(0) = 1, y(1) = 0];

for i from 0 by .5 to 1 do res := dsolve(sys1, numeric); res(a) end do;

i would like to write just the values of t and y(t) to a file/vector or whatever.

## How do I access attributes and members in modules...

Hi,

I want to write my first module, and I failed!  I create an instance of the class (module?)

myList := TestModule(3);                    # works.

But I've no acess to the members, since I use export! What's wrong?

myList:-get_n;
myList:-set_n(20);
myList:-run();

Error, `myList` does not evaluate to a module
Error, `myList` does not evaluate to a module
Error, `myList` does not evaluate to a module

# *****************************************************************************

TestModule := module()
export get_n, set_n, run;
local  n, result, ModuleApply, profileRun;
option package;
description "A testmodule";

# Constructor
ModuleApply := proc(n)
print("Calling of Module Apply...");
thismodule:-n := n;
result := [];
profileRun();
return result;
end proc:

# Implementation of member run
run := proc()
print("Calling of run...");
dummy := [];
for i from 1 to 20000 do
dummy := [op(dummy), i]
end do;
result := TRUE;
end proc;

# Implementation of member runprofile;
profileRun := proc()
print("Call of profileRun...");
CodeTools[Profiling]:-Profile(run);
run();
CodeTools[Profiling]:-PrintProfiles(run);
CodeTools[Profiling]:-UnProfile(run);
end proc;

# getter
get_n := proc()
n;
end proc;

# setter
set_n := proc(n)
thismodule:-n := n;
end proc;

end module;

## MAPLE To MATLAB...

 >

Paramétres

 >
 (1.1)
 > beta := 30;
 (1.2)
 >
 (1.3)

 >
 >
 (1.4)
 >
 (1.5)

Résolution & plots

 >
 (2.1)
 >
 (2.2)
 >
 (2.3)
 >

ET

 >
 (3.1)
 >
 (3.2)
 >
 >
 (3.3)
 >
 (3.4)

Hi evey ones ;

how can i convert these code below TO matlab

thank a lot Maple_to_MATLAB.mw

## How do I insert Maple plots into LaTeX documents?...

How do I insert Maple18 plots into LaTeX documents?

## how i can save results in maple in text file?...

hi...

how i can save results in text file?

for example in attached code maple i want save results for different ''x'' and fy(x), wherer x is between 0 to 1 i.e. (0,fy(0)) , (0.1,fy(0.1)) ,(0.2,fy(0.2)),....

in text file two column should be create.one of them for ''x'' and the onther for ,fy(x)

thanks...

Numerical_.mw

 (1)

## Trouble by exporting 3dplot to PS...

There are 4 points which I want to plot as solid spheres in 3d. Here is the code:

Rplot := pointplot3d(`<,>`(r, Transpose(Vector([0, 0, 0]))), style = point, symbolsize = 40, color = [red, grey, grey, green])

plotsetup(ps, plotoutput = `E:\\.../C.eps`, plotoptions = `width=2000, height=2000, noborder`); print(plots:-display(Rplot, axes = boxed, labels = [x, y, z], symbol = solidsphere));

plotsetup(default, plotoptions = `width=2000, height=2000, noborder`); display(Rplot, axes = boxed, labels = [x, y, z], symbol = solidsphere)

In Maple itself everything looks fine, but once I try to export it to ".ps" I see this.

The problem lies in "symbol = solidsphere". When I change it to "diamond", for example, export is successful:

But I need solidsphere. What should I do to fix this error (except manual editing in Adobe Illustrator)?

## Convert plot into image type...

Hi, community

I want to take a series of plots and convert them into an image-type to export using the ImageTools (Write) command.

Something like this:

for i from 1 to N do

x[i]:=procedure;    <--- This procedure has a plot as output

y[i]:= ** convert x[i] into an image type ** <-- This is the part that I haven't figured out

Write( filename[i], y[i]);

end do;

I don´t know if something like this is possible. Any hints or suggestions would be appreciated.

I guess I could generate N plots and then right click the images to save them... But N is large (hundreds of images) and it is not a nice option to sit all day long saving N images one by one.

Thanks and regards...

## numerical equation using loop for...

hello evrey one ,

my question is how can i solve numerical equation using loop

for each beta => deolve and export via excel
thank you

 >
 >
 >
 (1)

 >
 (2)
 >
 (3)
 >
 (4)
 >
 >