I am not able to run combine function in this code.
3 次查看(过去 30 天)
显示 更早的评论
I have highlighted the last line in this code with bold letters. I have added the pre-defined function in matlab path. I get values for separate ratios but while combining those ratios , i get error stating that the value of 's' is invalid. It must satisfy the function: @(X)isa(X,'sym'), even though the combine function is a predefined code.
EDIT: Very long code removed from question and uploaded as a file.
1 个评论
Walter Roberson
2019-10-6
Unrecognized function or variable 'get_spe_raw_data2D'.
We will probably also need the file 'c_init_notip.SPE' and 'c_init_tip.SPE'
... or you could just save Ratio7, Ratio6, Ratio5, Ratio4, Ratio3, Ratio2, Ratio1 to a .mat file and upload that.
By the way, what are you expecting combine() to do for you? The combine() from the fuzzy logic toolbox arranges entries as rows with padding as needed, but that is not the combine() that would be used for symbolic expressions. Symbolic combine cannot take that many arguments.
采纳的回答
Ashwinraj Gnanavel
2019-10-7
1 个评论
Walter Roberson
2019-10-7
I do not know what you mean by wanting to combine image pixel values at different heights. Is the idea that you have a series of 2D arrays and want to produce a 3D array by "stacking" the 2D arrays in layers? If so then use
cat(3,Ratio7,Ratio6,Ratio5,Ratio4,Ratio3,Ratio2,Ratio1)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!