## Conversion problem from matlab to maple...

Hi everyone, I am a new member of your group. I have a problem about matrix conversion from Matlab to Maple. In Matlab 7.0 i have created a program,this program sends a result matrix namely AT.This matrix is not symbolic, it is totally numeric. I would like to see this matrix inside of Maple 10. So far i could not make it. I would be grateful if you could help me. Greetings.

## Export data produced in a loop...

Hello everyone I have a question about the use of ExportMatrix and ExportVector. I am currently working on a sheet, where a matrix is changed within a loop. At the end of each cycle of the loop, the eigenvalues of the matrix are calculated and given out in form of a vector. How can I export these eigenvalue-vectors to a textfile together with the index of the loop? I already tried to use ExportVector at the end of each cycle, but the command overwrites entries of previous cycles, so that only the very last eigenvalue-vector is noted. Thank you very much for any help.

## retrieving the constant in an equation...

Hi, I want to know if there is a function or simple way that retrieves the constant of an equation? e.g eq=2x^2+4y-6 the constant here is -6

## simultaneous equations...

ex how do i command # 1 3x+2y+z=2 # 2 4x+2y+2z=8 # 3 x-y+z=4 i can do the math. (3*#3)+ #1=-5y+2z=10 (4*#3) +#2=6y-2z=-8 add both together y=2 sub in one equation above 6y-2z=-8 z=10 sub into x-y+z=4 x=-4 set this up in maple for me

## How do I create a function with conditionals in it...

Simplest example I can think of. I want to define f(x) to be the absolute value function (yes, of course, without using the built-in Maple absolute value function) f:=x->x; is great for defining a function. I've used that many times to define n-vector-valued functions of m variables. But how do I do f:=x->x if x>0 f:=x->-x if x

## Determining an Equation's Accuracy...

Hi, I have a modeling equation and a set of data points, and I want to compute the accuracy of my equation relative to the data points. Is there anyway to compute the R squared value of my equation relative to these data points? All of the commands I can find in Statistics are used to fit an equation to the data points, which I don't want to do, I just want to have a qualitative measurement of how accurate my equation is.

## What is wrong with my program?...

How is it possible that the following program works correctly: printlevel:=2: for n from 1 to 10 do if (0=0 mod 5) then 0; end if; end do; It correctly outputs ten 0's. But, when I change 0 to n inside the if conditional printlevel:=2: for n from 1 to 10 do if (n=0 mod 5) then 0; end if; end do; I get nothing for output. I should get two 0's. n is 0 mod 5 exactly twice as n runs from 1 through 10. I have experimented with adding spaces and deleting spaces between keywords and parentheses and numerical values to test if that was the problem. Nothing works.

## Float (Undefined)"...

Dear Sir/Madam, I have written a small program to calculation a kind of integration. This integral depends on the values of another function which is given numerically. I want to calculate numerical results of this integral. But the I just have sucu result as "Float (Undefined)" . Please help me to find where is wrong. Thank you very much! Download 7745_Float undefined.mws
View file details

## RootOf problem in 5x5 Matrix of one parameter...

In this Maple 10 classic worksheet I'm trying to get the eigenvalues of the matrix H, which are dependent of the parameter F>=0. Please help me to get rid of those RootOf's. The result may be numeric because I only need it for plotting. Download 5085_20_H.mws
View file details

## Setting value of a matrix...

Hi Guys i have 2 matrices, A and B, a[i,j] and b[i,j] are the elements of the matrices respectively. How can i set the entries of A to equal the entrices of B, so then when i use the command, evalm(A), the previous a[i,j] values will become b[i,j]? Thanks.

## How do I get rid of "unable to match delimiters" e...

for n from 1 to 2 do if(isprime(L[n]) then 7 else 9; end if; end do; No matter combination of semicolons or colons I put at the end of each line or omit, I cannot get this little test routine not to spit back "unable to match delimiters" error message. L := [4, 5]; P1 := [-8, 9]; if (5 > 6) then P1[1] else L[2]; end if; Ironically, this routine worked. I do not see the difference.

## Euler's Method...

The equation y'= ((2-t)(2-y))/y , y(0)=1 How do I use Euler's method to calculate an approximation to y(1) using step size i. h=0.2 ii. h=0.1 iii. 0.05