Skip to content

another struct problem #135

Open
Open
@jwmelto

Description

@jwmelto

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions