Items tagged with string string Tagged Items Feed

I'm using the BoxPlot function and am trying to change the colour of two dates in the title="string" part, so they correspond with the colours of the two related box plots. Is there a way to do this?

I came across a thing that does not make sense in Maple. If you click on:

http://ichart.finance.yahoo.com/table.csv?s=CSV&a=10&b=15&c=1996&d=03&e=24&f=2012&g=d&ignore=.csv

Then you will get a csv-file.

Now if you download and save that file on your computer then you can open it with:

Dear everyone,

 

  Hello,

 

  I have a stupid question. From

http://www.maplesoft.com/support/help/Maple/view.aspx?path=examples/string

  There are many examples about "" '' `` related to character string (let me call it in this way for a moment )

  Actually what is the precise difference between these symbols?

 

Thank you very much in advance

with best regards

Hi,

See the code mli.mws

What is the mistake in this command ?

chfonc:=cat('piecewise(' , seq(cat(convert(t<lf[k],string) , ' , 1 , ' ,convert(t<lf[k],string), ' , 1 , ' ) , k=1..p) , '1) ') :

How do I mask an input string?

That is when queried for an input, as the characters are typed they are presented differently.

Here is a simple example from the Maple Help (nersion 9.03):
###
i := 5; cat( "The value of i is ", i, "." );
###
which yields
  "The value of i is 5."

I would like to use the same syntax to generate a string to be printed at the beginning of a data file (so that I can remember what are the figures in the files); for instance I want to specify that this set has been generated choosing the value of a parameter alpha to be 0.618. So I write

Counting Characters in String

January 10 2012 by Sam54 5 Maple

Hi I'm trying to write a proc to takes a character and a string as inputs and as output tells you how many times the character shows up in the string.
I don't know what is wrong with the code


 s:=proc(Z)

local counts,C,i,L:

for C from "a" to "z" do
counts[C]:= 0:
end do:
L:=length(Z):
for i from 1 to L do
C:=Z[i];
if C >= "a" and C <= "z" then
counts[C] := counts[C] + 1
end if;
print(C,counts):

printing output to file

December 14 2011 by PatrickT 1668 Maple

I would like to export-to-file a list containing equations, variables, and constants, e.g.

xyz := [dx = x*y-(1/3)*(y-z), dy = -0.01*x, dz = z/10];
I have used fprintf to write to a file. The closest I got to what I want is by doing:
fd := fopen("xyz.m", WRITE) :
fprintf( fd, %s,  CodeGeneration[Matlab](xyz,'output'=string) ):
fclose(fd) :

Using CodeGeneration[Matlab] was the only way I found to export a list like xyz above, simply writing fprintf...

I have a procedure that gets two lists A and B, I want to restore the name of the entry lists as string. How can I do that?

 

f(A,B) [procedure]

e.g. a(MyList,LL)

 

I want to restore a:="MyList" and b="LL"

 

TIA

For given expression expr it's known that  type(expr, function) returns true. How to grab name of that function in fast way?

Unserstood that in slow way could be transform to string done and after that could be found substring till 1st '(' symbol. But i'm sure that name somewhere 'sits' directly.

Hello to all,

 

I have a chunk of letters, numbers and others symbols like in this extract:

.....XRIH*zAv/(z*Bf3)+3*AkQ4xBpTbCYJVq6qCRRUYJy1aBvSjuQXp+zr6kmMEuNR+9*u9zugTalYwXJA*mBhaiM+8*WrkyyflSAs0JssjHLArZ+l5M1sWtcMznmkmu1+NmmSb7dsacr3qJkzQH*dE3yQlI0Ly2RGa1*Yr/ZlvZFCwCiQyVTQ2GflsnOBZTf05W4Ul35uZMHFxhy1tipPyK+iHfus/mJVhEeluq9vtVzEzwbPWav+w11/ii14f78yXqsqH+XU2m....

My goal is to be able to enter that chunk into Maple for character manipulation like searching if, for example, Qxp+zr6km is part of that chunk as is (and if possible his location).  Since there is some "+", I can't define it with chunk :=.  The source is a *.txt file.  Maybe a readdata?

I am quite busy for the moment so is there someone kind enough to help me.

Thanks in advance

Page 1 of 1