Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Could not add the data

1 visualización (últimos 30 días)
Duy Nguyen
Duy Nguyen el 2 de Sept. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Does anyone know how to add the inputData into the 5th row of the result? I tried many times and it not work :((
thank you so much
  2 comentarios
Walter Roberson
Walter Roberson el 2 de Sept. de 2019
instead of using
string({var1 var2 var3 var4})
use
[string(var1) string(var2) string(var3) string(var4)]
Duy Nguyen
Duy Nguyen el 2 de Sept. de 2019
still not working :((, i want the inputData as the 5th row of the results

Respuestas (1)

Sai Sri Pathuri
Sai Sri Pathuri el 5 de Sept. de 2019
You can add the inputData to the fifth row of results by the following code.
results(5,:)=inputData;
However, this gives an error since the number of columns are different in results and inputData.
You may try either of the following before using above code
  • Remove volume element from inputData (This makes number of columns = 4)
  • Add a column of volumes to the results array (This makes number of columns = 5)

Community Treasure Hunt

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

Start Hunting!

Translated by