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

4 vues (au cours des 30 derniers jours)
Ashwinraj Gnanavel
Ashwinraj Gnanavel le 6 Oct 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 commentaire
Walter Roberson
Walter Roberson le 6 Oct 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.

Connectez-vous pour commenter.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by