I am not able to run combine function in this code.
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ashwinraj Gnanavel
el 6 de Oct. de 2019
Comentada: Walter Roberson
el 7 de Oct. de 2019
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
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.
Respuesta aceptada
Ashwinraj Gnanavel
el 7 de Oct. de 2019
1 comentario
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)
Más respuestas (0)
Ver también
Categorías
Más información sobre Whos en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!