I am not able to run combine function in this code.

조회 수: 10 (최근 30일)
Ashwinraj Gnanavel
Ashwinraj Gnanavel 2019년 10월 6일
댓글: Walter Roberson 2019년 10월 7일
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
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
Ashwinraj Gnanavel 2019년 10월 7일
by combining function , i am trying to combine image pixel values at different heights. I want to combine ratios of different heights.
  댓글 수: 1
Walter Roberson
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 CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by