Matlab to Scilab Code Conversion

Discussion in 'Math Software' started by TahaNadeem, Mar 16, 2021.

  1. TahaNadeem


    Mar 16, 2021
    Likes Received:
    I am doing a project on the motion of spherical objects through air. It has 3 equations which need to be solved using the ODE solver. The SS of Matlab Code is provided.


    As you can see in the Matlab Code equations have variables that are matrices. When i try to replicate that in SCILAB it gives me error. My SCILAB code is provided below:


    Please Note that the rest of the code is Fine in SCILAB as it works when i change the matrix to a single variable. However just to be sure i have attached the complete SCILAB and Matlab Code. The 3 equations i am trying to solve are:


    Matrix need to be used as equations have the same variable "velocity" with different values in x,y and z directions. All depending on the variable against which we have taken derivative and trying to solve the equation. This is distance the independent variable

    Can Anyone Please Help me

    Attached Files:

    TahaNadeem, Mar 16, 2021
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.