Items tagged with import import Tagged Items Feed

hi all

I want to plot a 2D fig by maple. my data are in an excel file and they are too much to import them one by one manually. When I copy and paste them in maple, they appear in a column... 

thank a lot for your help.

I am trying some data analysis on an Excel worksheet using Maple. I have the following procedure but I don't know how to make it work for a specific subset of cells (this is a psychological studiy, so I want to have all my scores for each subject, located on the rows, and variable, located on a subset of columns). Example: I want to get an array of all the average scores in a rectangle of cells which goes horizontallyfrom A to AB, and vertically from row 1 to 15. Hope you can help me out! Cheers!

MediaRighe := proc (M) local i, j, r, c, S, N; r := LinearAlgebra:-RowDimension(M); c := LinearAlgebra:-ColumnDimension(M); S := Array(1 .. r); for i to r do S[i] := 0; N := 0; for j to c do if M(i, j) <> "-" then S[j] := S[j]+M(i, j); N := N+1 end if end do; S[i] := S[i]/N end do; return S end proc

I also have this for the columns (same thing, basically):

MediaColonne := proc (M) local i, j, r, c, S, N; r := LinearAlgebra:-RowDimension(M); c := LinearAlgebra:-ColumnDimension(M); S := Array(1 .. c); for j to c do S[j] := 0; N := 0; for i to r do if M(i, j) <> "-" then S[j] := S[j]+M(i, j); N := N+1 end if end do; S[j] := S[j]/N end do; return S end proc

Thanks everybody!

Hi,

Our school is using a hosted version of Maple TA 9. We have a lot of questions in Moodle we would like to export to Maple TA. Is this possible?

Thanks in advance,

Henrik

Good morning everbody,

I am currently trying to get string and numerical datas from a txt.file but I don't get how to do this.
I have done this in matlab but I would like to make it in maple.
I have read other post about the subject and try tried this command:

 fd := fopen(dataFile,READ,TEXT):
    theData:=readdata(fd,string, 3): # 3 columns
  fclose(fd):

  A:=convert(theData,Array);

but it didn't help me.
Hi everybody,
I have a follow problem:
Maple offers generate graph (network) for example in this way:
G:=Graph({{1,2},{1,3},{2,3}})

where {{1,2},{1,3},{2,3}} is a list of edges.

In my study I need to generate a big graph (network), where list of edges is very long
(contains more than 100000 edges).
Can I import from my directory (for example C:\\Desktop\) file, contains edges.
Now I copy from txt file all list of...

Hi, I use Maple 13 and have this issue to solve.

In an archive.txt there is the following Vector:

-1/64*cosdincl^2*cos(2*ele-2*g-2*anom-2*w)
+1/16*sinfJ*cosfK*sindincl*cos(2*ele+g-h+om-2*anom-2*w)
-1/16*sinfJ*sinfK*cosdincl*cos(2*ele-g-2*h+2*om-2*anom-2*w)
+1/16*sinfJ*cosfK*sindincl*cos(2*ele-g-h+om-2*anom-2*w)
-1/16*sinfJ*sinfK*cosdincl*cos(2*ele-g+2*h-2*om-2*anom-2*w)
+1/16*sinfJ*cosfK*sindincl*cos(2*ele-g+h-om-2*anom-2*w)
+1/128*cos(2*ele+2*g-2*h+2*om-2*anom-2*w)

Hey guys,

 

I do have a problem with Excel Import.

What I wanna do is import 2 collumns from a Excel-File.

The first Column are the X-coordinates and in the second column are the y-coordinates.

After the import of the two columns (each with around 1000 rows) I would like to run a formula for each of this x/y pairs. Means for example a formula i1:=2*x+y or something like this.

And I would like to get the results also in a...

Hi

Is there a way of importing data in NetCDF format into Maple 15? This format is very widely used in atmospheric sciences as a data standard for experimental data such as satellite-derived data.

Thanks

Hello,

I am trying to force Maple to read big matrices from files, produced by other programs (GAP in my case).

 

The output looks like this after it's been saved in a *.txt file:

[ [ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0,

I am trying to write a script that will read in vector files using ImportMatrix, perform a simple calculation then output a matrix file using ExportMatrix.

 

The difficulty I am having is that I would like to do this on a number of files,

eg.

for i from 1 to 600 do

Mi:=ImportMatrix(rowi):

do calc....

ExportMatrix(matrixi,Mi):

end do:

The variable i is in italics...

Hello,

1. Is it possible to create a function file in Maple and call the function(file) from the main program(like Matlab?). If yes, please give me an example case.

I want to create a function file which has the general input terms and call the function from another script file without copying/running all the code.

2. Is it possible to run 'recursive function' in maple?

3. How can I create library of my function files?(like in Matlab I can create...

How can we import data directly from a zip file?  Does someone know how to?

When I use ImportMatrix to import a MATLAB mat file, I get a list of names and values. Should I write a "for" loop to assign them in Maple or there is an easier way to do it?

Dear Maple users

I am working on importing data from an Excel-file "Data.xlsx" into Maple. This is done using the following commands:

> restart;
> with(ExcelTools);
> X := Import("Data.xlsx", 1, "A3:A63");

One strange behavior is the fact that I receive an error message: Error, (in ExcelTools:-Import) Could not open the file.

When I close the Maple file and open it again and reexecute, the error disappers and everything works....

Hi there,

I've written a maple worksheet file (*.mw) that does some long calculation and got a result.

If it matters, the result is a 3X3 matrix with different parameters (not only numbers). 

So far so good. 

I want to use this result in another maple worksheet file.

Can I import only the result by somehow referancing the filename and equation number in that file?

Just...

1 2 Page 1 of 2