jonathf / matlab2cpp

Convertion program from Matlab to C++ using Armadillo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

another struct problem

jwmelto opened this issue · comments

Here is a minimal failing program:

function [zz] = foo( )

h.z = zeros(30,1);
z1 = zeros(30,1);

zz = z1(1:2);
%zz = h.z(1:2);

return

The commented line causes a crash:

ValueError('missing return in function Fget in file structs, Matlab: Crash with file: foo.m, on line: 7',)

but when commented out, it works just fine.

I apologies, but this project is currently unmaintained. There will therefore not be any more bugfixes unless someone takes ownership. I've added a note to the frontpage now to make everyone aware.

Thanks for letting us know. I don't see the note...

Sorry, thanks. Looks like it wasn't pushed through. Fixed it now.