Effacer les filtres
Effacer les filtres

how can i convert cell to matrix?

1 vue (au cours des 30 derniers jours)
vishnuvardhan naidu tanga
vishnuvardhan naidu tanga le 3 Juin 2020
Hello,
I am trying to convert the data obtained into matrix. so the dimensions of the T, P and h_out after I run the code are 1x999. is there any way to convert the scalar cell of h_out to matrix or vector?
Please guide me.
a = 1000;
b = 1;
h_out = zeros(1,((a-1)/b));
L = length(h_out);
for i = 1:L
T(i)= 1+b*i;
p(i) = 1+b*i;
h_out(i) = XSteam('h_pT', p(i), T(i));
end

Réponse acceptée

Daniel Woolnough
Daniel Woolnough le 3 Juin 2020
Does exactly what you want.
  1 commentaire
vishnuvardhan naidu tanga
vishnuvardhan naidu tanga le 3 Juin 2020
thank you so much it worked

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by