Commit 3d0994d
committed
Convert retrieved values to double
We rely on MatlabControl to extract data from MATLAB and pass it to our
current JVM (if different). Unfortunately, the MatlabNumericArray class
can only wrap MATLAB double arrays. When unwrapped arrays are returned
directly their dimensionality is lost (a 1D array is returned).
So we must convert to double arrays using the MATLAB "double" function
to ensure data is wrappable by MatlabControl.1 parent 2106890 commit 3d0994d
1 file changed
Lines changed: 23 additions & 6 deletions
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
206 | | - | |
| 212 | + | |
| 213 | + | |
207 | 214 | | |
208 | 215 | | |
209 | | - | |
210 | | - | |
211 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
212 | 223 | | |
213 | | - | |
214 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
215 | 232 | | |
216 | 233 | | |
217 | 234 | | |
| |||
0 commit comments