Where is the polyIntersect.m function in R2024 and how do I load it ?
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 2 Jul. 2024
1 Stimme
polyintersect appears to be part of MRST (MATLAB Resevoir Simulation Toolbox), https://www.sintef.no/contentassets/2551f5f85547478590ceca14bc13ad51/nwm.html
16 Kommentare
Chuck Dalby
am 2 Jul. 2024
Steven Lord
am 3 Jul. 2024
Chuck Dalby
am 3 Jul. 2024
Steven Lord
am 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
am 3 Jul. 2024
Steven Lord
am 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
am 3 Jul. 2024
Walter Roberson
am 3 Jul. 2024
Sorry, I was not able to find any polyIntersect function anywhere -- only polyintersect
Chuck Dalby
am 4 Jul. 2024
Walter Roberson
am 4 Jul. 2024
polyintersect is also available from:
Chuck Dalby
am 4 Jul. 2024
Walter Roberson
am 4 Jul. 2024
Or just copy the individual polyintersect.m into your current directory.
Chuck Dalby
am 4 Jul. 2024
Steven Lord
am 4 Jul. 2024
Use your coordinate data from the CoRegErrData struct to create polyshape objects. Then just use intersect.
Chuck Dalby
am 5 Jul. 2024
Chuck Dalby
am 6 Jul. 2024
Kategorien
Mehr zu MAVLink Support finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!