我希望Matlab返回变量输入函数的所有输出.例如,
[varargout] = cpd_intersect(varargin {:});
这只返回最后一个输出但我知道该函数被定义为提供多个输出.
而不是在[A,B,C ...] = pd_intersect(varargin {:})中定义虚拟变量A,B,C等.我希望像单元格一样根据输入的值来存储所有输出值.我希望这是有道理的.提前谢谢了.
我在MSV2010中尝试以下内容
namespace statismo {
template<>
struct RepresenterTraits<itk::Image<itk::Vector<float, 3u>, 3u> > {
typedef itk::Image<itk::Vector<float, 3u>, 3u> VectorImageType;
typedef VectorImageType::Pointer DatasetPointerType;
typedef VectorImageType::Pointer DatasetConstPointerType;
typedef typename VectorImageType::PointType PointType;
typedef typename VectorImageType::PixelType ValueType;
};
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
错误C2899:typename不能在模板声明之外使用
我们将非常感谢您提供解决方案的帮助.