Where is the polyIntersect.m function in R2024 and how do I load it ?
Show older comments
I have updated my R2022 license and can't locate the polyIintersect.m function and load it ? I need the function
for an old program
Accepted Answer
More Answers (1)
Walter Roberson
on 2 Jul 2024
1 vote
polyintersect appears to be part of MRST (MATLAB Resevoir Simulation Toolbox), https://www.sintef.no/contentassets/2551f5f85547478590ceca14bc13ad51/nwm.html
16 Comments
Chuck Dalby
on 2 Jul 2024
Steven Lord
on 3 Jul 2024
Chuck Dalby
on 3 Jul 2024
Steven Lord
on 3 Jul 2024
That's not the full text of the error message. Please show all the text displayed in red (and/or orange) when you run that code.
Depending on exactly what your polyintersect function did, intersect may not be a strict "find and replace" replacement. The exact text of the message may tell us what you need to do to modify your code to use it.
Chuck Dalby
on 3 Jul 2024
Steven Lord
on 3 Jul 2024
Okay, so what exactly is CoRegErrData? Nothing in the code you've posted shows what it is. If it's not a polyshape object but it represents a polygonal region, make a polyshape using that data and then call intersect.
Chuck Dalby
on 3 Jul 2024
Walter Roberson
on 3 Jul 2024
Sorry, I was not able to find any polyIntersect function anywhere -- only polyintersect
Chuck Dalby
on 4 Jul 2024
Walter Roberson
on 4 Jul 2024
polyintersect is also available from:
Chuck Dalby
on 4 Jul 2024
Walter Roberson
on 4 Jul 2024
Or just copy the individual polyintersect.m into your current directory.
Chuck Dalby
on 4 Jul 2024
Steven Lord
on 4 Jul 2024
Use your coordinate data from the CoRegErrData struct to create polyshape objects. Then just use intersect.
Chuck Dalby
on 5 Jul 2024
Chuck Dalby
on 6 Jul 2024
Categories
Find more on MAVLink Support in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!