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

8 visualizaciones (últimos 30 días)
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 comentario
Walter Roberson
Walter Roberson el 6 de Oct. de 2019
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.

Iniciar sesión para comentar.

Respuesta aceptada

Ashwinraj Gnanavel
Ashwinraj Gnanavel el 7 de Oct. de 2019
by combining function , i am trying to combine image pixel values at different heights. I want to combine ratios of different heights.
  1 comentario
Walter Roberson
Walter Roberson el 7 de Oct. de 2019
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)

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by