Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Could not add the data

조회 수: 2 (최근 30일)
Duy Nguyen
Duy Nguyen 2019년 9월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Walter Roberson
Walter Roberson 2019년 9월 2일
instead of using
string({var1 var2 var3 var4})
use
[string(var1) string(var2) string(var3) string(var4)]
Duy Nguyen
Duy Nguyen 2019년 9월 2일
still not working :((, i want the inputData as the 5th row of the results

답변 (1개)

Sai Sri Pathuri
Sai Sri Pathuri 2019년 9월 5일
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