Items tagged with output output Tagged Items Feed

 

Hello

I have Problem with the Maple command plotsetup, it does not seem to work within an if-statement.

What i would like to do is this:

1. Make a matrix with 0 or 1 as enteries

2. convert this matrix into a list where the 1's are points. (So the Matrix entery Matrix[1][1]:=1 would give the listvector:=[1,1]

3. plot these vectors as graphs and store them with the help of plotsetup

4. changing the matrix and rinse and repet 2,3,4 until satisfied

Dear All,

I would like to know the easiest way to write data, that are stored in a matrix after a computation, to a file with a specific format. To be more precise, I wish to have the possibility to change the format for a given column.

Here is a trial (output is wrote to the terminal for simplification) based on some examples I found, but without success.

WritedataMatrix.mw

Hi,

Is it possible in Maple to output a complex number using j (or i) instead of I ?

thanks,
Andrew

Typically, plots on a Maple worksheet fill substantial portions of the printed page when they're printed out.  What I'd like to do is resize plots, prior to printing, such that they're smaller when printed.  I'd also like all plots on a worksheet to print out at the same size.  Note that simply highlighting a plot on the Maple worksheet and then pulling the corner to resize it, is not what I want to do:  I find it very difficult to anticipate the...

Displaying output

March 16 2012 by Ronan 5 Maple 15

Thank you Your more general solution works very well. I am very new to maple so still struggling with basics.

How would I get maple to display each part of the output on a line, i.e. A,B,C,D prints on seperate lines.

Hi, this is what i have

With(LinearAlgegra):

K:=ZeroMatrix(2):

J:=K.K^T

how do I get J to show me just a 2x2 zero matrix again? The output that I got is ZeroMatrix(K).ZeroMatrix(K)^T

Please help. Thanks.

Hello experts in Maple,

I'm going to solve IVP numerically by this command bellow:

var:={u(t),v(t),w(t)}: 
dsys1 :=diff(u(t),t)=-(Gamma+AM*cos(q*t+phi))*u(t)+(Delta-AM*sin(q*t+phi))*v(t)+Omega*w(t), diff(v(t),t)=-(Delta+AM*sin(q*t+phi))*u(t)-(Gamma-AM*cos(q*t+phi))*v(t), diff(w(t),t)=-0.5-2*Gamma*w(t)-Omega*u(t):
dsol1 :=dsolve({dsys1,ini1},numeric,method=lsode,var, abserr=1e-9, relerr=1e-8,output=listprocedure):
dsolu:=subs(dsol1,u(t)):dsolv:=subs(dsol1,v(t)):dsolw:=subs(dsol1,w(t)):...

I would like to save a simple plot to jpeg file on my hard disk. I've got a Maplet, and a Button which looks like that

Button['SIM']
 (
     "Save image",
     onclick=Evaluate('function'='saveImage()')
)

and a procedure:

saveImage := proc()

   plotsetup('jpeg', 'plotoutput'="plot.jpeg", 'plotoptions'="portrait,noborder");
   plot3d(sin(x)+cos(y), x=0..2*Pi, y=0..2*Pi, 'axes'='boxed');

A very useful feature of the plotting program gnuplot is that you can generate an output which is a file instead of a graph. For instance the following short script

################
f(x)=sin(x)+cos(pi*x)
set samples 5000         
set table "outfile.dat"
plot [0:10][] f(x)
################

produces a  file containing a sampling of the function f(x) on the interval [0,10] based on a grid...

Hi, I am trying to have a sequence of (0,Pi/32,2Pi/32,3Pi/32...Pi)

Here is what I did : theta:=[seq((Pi/33).n,n=0..32]:

Question 1 : Is this the same as doing 0:Pi/32:Pi in matlab?

Question 2 : how do i select the output? for example output 5 which is 4Pi/32.

Question 3 : how do I multiply it with another sequence of (0,2,4,6,.......64)? for example to get a new set of numbers (0,2Pi/32,8Pi/32.....)

Please help. Thanks.

Hi, I have a formula with variable unknowns, lets say p,q,r.

How do I get the answer giving me the output for different combination of input that I'm inserting?

For example : f(p,q,r):=(34p9-7q)/r

Calculate when (p=2,q=8,r=7) and (p=3,q=0,r=3) and (p=4,q=1,r=9) and so on...

Please advice. Many thanks

Nested loop in MAPLE

January 22 2012 by samantasubho 0 Maple 14

MAPLE is not able to show me the output of nested loop. How can I get it?

for i from 0 to N do for j to 3 do

eqn[i] := sort(coeff(lhs(dequn[j]), epsilon, i)) = coeff(rhs(dequn[j]), epsilon, i)

end do

nested_loops.mwend do

ODE system output

January 13 2012 by hmao 0 Maple

What's the best (or even A way) to numerically solve a system of first order ODE's and output the result to a functional form that could be used later. My first impression was to try to do a curvefit of some sort.

I recently had a journal article accepted but was told that several of the graphs had to be redone because the axes were not thick enough to reproduce. Unfortunately, Maple has no way to edit the axes for thickness, so I had to export the differential equations to Matlab and integrate them there to get publication quality graphs. I have been having more trouble every year with the quality of Maple's graphics output, and this really puts a cherry on it. I would be pleased as punch if Maple could include a graph editor that would let us customize a graph to make it presentable to publishers. Maple does so many things so well it is a shame to leave this on the back burner.

I have been using Maple in Document mode to provide documentation of engineering calculations according to various design standards.

I have been asked to provide more detail about certain critical calculations.

Ideally, I would want to enter the formula as a symbolic espression, then the output would begin with and echo of the expression with numberic values substituted for the variable names (ie without performing any mathematical operations), and then give the evaluated answer.

1 2 3 4 5 Page 1 of 5