Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Change output from Array{Array{Float64,1},1} to Array{Float64,2} #80

@ahwillia

Description

@ahwillia

When I run

t,x = ode45(f,x0,tspan)

I get:

typeof(x) # Array{Array{Float64,1},1}

Which is annoying because I want to, for example, plot the evolution for the first dynamic variable:

plot(x[:,1])

Which doesn't work... It just plots all the dynamic variables. Is there a workaround for this? Or an easy way to convert Array{Array{Float64,1},1} to Array{Float64,2}? Shouldn't ode45 be modified to return a 2D array?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions