how to solve this reshape error?
2 views (last 30 days)
reading the data
like this i will be generating lot of text files
but i am getting reshaping error as no of elements changed so what changes i should make in my code so that how much ever no elements are present in text files i will be able to reshape and store it in excel sheet.
Sparameter=reshape(Sparameter,1,) %i want 1 row and multiple columns plz suggest if this s correct
Voss on 18 May 2022
Yes, this converts Sparameter into a row vector:
However, since Sparameter is a column vector beforehand, from here:
You can merely transpose it at that time instead of using reshape: