Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

You might want to try out your last statement.

If I give writedata the name as test then the filename "test.txt"   is  produced. 

 If i delete or move the folder named data from the Maple directory the data name will work and be written as "data.txt"

Yes, the default location should work.  All examples on the help pages related to writedata or readdata don't specify a location but rather a single file name which should in theory pull the file (if it exists), or write the file, from the Maple folder. 

I was going to change the currentdir() location and not worry about the issue.  Just wanted to make sure it is indeed a real bug and not some setting I have missed.

Yes, the default location should work.  All examples on the help pages related to writedata or readdata don't specify a location but rather a single file name which should in theory pull the file (if it exists), or write the file, from the Maple folder. 

I was going to change the currentdir() location and not worry about the issue.  Just wanted to make sure it is indeed a real bug and not some setting I have missed.

I never would have thought to use `#msqrt(mn("2"))` to get the square root as a label. 

What mystifies me is that I thought anything inside the backquotes gets treated as a string so I would expect the return to that statement to be exactly as written.  Also, #, I understood as a commenting tool where maple ignores everything afterwards.  Can you provide me some insight into how that works? 

I never would have thought to use `#msqrt(mn("2"))` to get the square root as a label. 

What mystifies me is that I thought anything inside the backquotes gets treated as a string so I would expect the return to that statement to be exactly as written.  Also, #, I understood as a commenting tool where maple ignores everything afterwards.  Can you provide me some insight into how that works? 

Two cars passing at the same time probably would have a larger amplitude, that's besides the point. 

Can you show me how I can fit a curve and pick the points?

Do I need to convert the array to a list and then enumerate it first before I work with it in the manner I want?  Then maybe create a loop to search for values within a certain conditional range? Or do I need to convert the array to a matrix?

*** edit Jan 10, 2025 ***

I came across this post of mine of the past and no one can follow it because the included files have been removed.  I will add them again here.  Plus this was done in Maple 12 and beyond Maple 17 the commands have to be changed since newer versions of Maple don't retain the audio attributes.  incar.zip

now the sample.wav is the incar.wav file in the zip folder.


 

with(AudioTools):

with(Statistics):

Note in newer versions above Maple 12 the execution of a Statistics command on audio data (at least in Maple 2017) does not retain the attributes of the audio data as it does here in Maple 12

To remedy that situation, if c:=MovingAverage(b,2000):  Then you need to setattribute(c,attributes(a)) which will then allow Preview on the data to work properly.  

 

a := Read("c:/incar.wav")

"a:=?"

(1)

Preview(a)

 

b := a^2:

Preview(b)

 

c := MovingAverage(b, 2500):

d := MovingAverage(c, 2500):

e := MovingAverage(d, 2500):

Preview(e)

 

``


 

Download indycar.mwindycar.mw

Two cars passing at the same time probably would have a larger amplitude, that's besides the point. 

Can you show me how I can fit a curve and pick the points?

Do I need to convert the array to a list and then enumerate it first before I work with it in the manner I want?  Then maybe create a loop to search for values within a certain conditional range? Or do I need to convert the array to a matrix?

@Acer

just wondering if you ever happened to finish the code and make it presentable?  I'd be interested to see it. 

@Acer

just wondering if you ever happened to finish the code and make it presentable?  I'd be interested to see it. 

Thanks.  Never thought about zip.  I checked out the zip help page but it's not completely clear on this topic. 

From the ImageTools package there is not a command to change, for example, a value in the image Array equal to 3.5 to 3.7.

I can see a procedure with for loops would be needed to construct that.

for i to Height(b) do
  for j to Width(b) do
     if b[i, j] = 3.5 then b[i, j] := 3.7 end if
  end do;
end do;

Or for some range of a specified condition

end do;for i to Height(b) do
  for j to Width(b) do
     if b[i, j] < 3.8 and b[i,j] > 3.2 then b[i, j] := 3.5 else b[i, j] := 0 end if
  end do;
end do;

It then wouldn't be too hard then to convert those into some personal procedure. 

 

 Download 8990_M9AcaBro_sc.pdf
View file details

hmm... after editing and inserting new pictures the new ones are not refreshed.

 

 

 

hmm, can't edit the first post.  That should change as well, but that's come up a number of times and doesn't look like it's changing anytime soon.

I meant to add ... as a dial-up user any mistakes or problems during uploading a file multiply the time almost exponentially.  A 400kb pdf file that takes 10 min. to upload turns into almost 1/2 an hour if it doesn't work the first time.  Then finding out it won't work and just trying one last time turns a, what should've been, 10 minutes into almost a painful hour, ouch!  I certainly envy those high speed users.   

First 150 151 152 153 154 155 156 Last Page 152 of 162