The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Speed up fairly short code
Replies: 9   Last Post: Jul 17, 2013 4:48 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 5
Registered: 7/15/13
Re: Speed up fairly short code
Posted: Jul 16, 2013 1:40 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Steve, I'm quite unsure about how one would proceed with this. First of all, I guess I would have to use integral2 since I'm performing a surface integral. Second of all, it doesn't seem like MATLAB likes numerically integrating a matrix per entry. I was trying the below example as a demonstrator.



q = integral2(b,0,1,0,1)

I get a bunch of errors. I have no doubt that I can extract each entry from the matrix individually, define it as a function, and then integrate it numerically. However, there are so many operations here that it seems at first glance it wouldn't be efficient.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.