How I define the variable B in a function [A, B] = ReadHypercube(strcat(pathname,filename)); ?
显示 更早的评论
[filename, pathname, indx] = uigetfile( ...
{'*.hdr','Image Cube(*.bil)';
'*.*', 'All Files (*.*)'},'Pick a file','file path');
if indx == 1
[A, B] = ReadHypercube(strcat(pathname,filename));
elseif indx == 2
I will appreciate it. Thanks
4 个评论
Rik
2018-4-25
That depends on the ReadHypercube function. If the top line is similar to the following line, it should do what you want.
function [A,B]=ReadHypercube(filename_and_path)
Walter Roberson
2018-4-25
Is this a question about the design of a function ReadHypercube that you are writing? If so, then what outputs would make sense for such a function?
Surya Gnyawali
2018-4-26
编辑:Stephen23
2018-4-26
Rik
2018-4-26
We have no idea what function you are trying to use/modify, so we can't help you. Based on the second block of code, I would guess that B is a columnar vector that contains the wavelengths of the hypercube, but we have no idea what your function does or how it would have to infer this vector.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Language Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!