Matlab to Scilab Code Conversion

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

  1. TahaNadeem

    TahaNadeem

    Joined:
    Mar 16, 2021
    Messages:
    1
    Likes Received:
    0
    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.

    upload_2021-3-16_20-36-32.png

    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:

    upload_2021-3-16_20-38-37.png

    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:

    upload_2021-3-16_20-42-8.png

    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
    #1
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.
Loading...