Problem in using xlswrite command
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello All,
I am trying to get the output in excel file but I am unable to do that. I have attached the screen shot of my code along with some information.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205123/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205124/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205125/image.png)
here is the output in Excel and I think that the problem is becuase the result is not a scalar number
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205126/image.png)
I will be great if someone please help me with this.
Thank You
3 Kommentare
Geoff Hayes
am 20 Feb. 2019
Ron - is it just the diameter data that is not being written to the Excel file? I notice that this data is of type sym. Perhaps try converting to a number before writing to file...
Akzeptierte Antwort
Ron
am 20 Feb. 2019
2 Kommentare
madhan ravi
am 21 Feb. 2019
Ron always remember solve returns a symbolic object so in order to convert it to a double class use double() , vpa() also returns a symbolic object so using vpa() here is superflous.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Number Theory finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!