Items tagged with import import Tagged Items Feed

Hi

I tried to import the modelica library Buildings1.6 from the modelica website and get always the error "Nothing found in the modelica library". 

Is it possible to import modelica libraries? 

Thank you very much

I have a table of data arranged in the following columns: Year, Jan, Feb, Mar,..,Dec in Excel or csv

I would like to import this data into a time series in Maple so I can plot the result.

What is the simplest way of doing this?

 

It's been a while since I touched Maple. Just picked it up again to do some stat work, and I'm feeling a bit out of my element having been to accustomed to things like Matl.... (I mean the software that shall not be named).

Is there a way to convert a single array/matrix into multiple arrays?

 Scenario:

1 1
2 7
3 8
4 9
5 10
6 14
7 20

It's easy just to copy and past this as a single element within a worksheet. However, I want to get it so that it's formated like data = [[1,1],[2,7],[3,8],etc...]

Is there a way to reformat into individual elements once everything is in one large array? I'm basically copy and pasting a huge mess of cells from Excel and am looking to see if there's a simplier solution than manual data entry.

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?

1 2 Page 1 of 2