Info

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

Format numbers in spreasheet

조회 수: 1 (최근 30일)
Sofia Fourkioti
Sofia Fourkioti 2017년 11월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi!I would like to format a spreadsheet because it has wrong values and I can't create the right graph(no commas in some cells,for example the number 657667 intead of 65.7667).I tried to format the excel file first and it showed the correct values. I saved it and I imported the data in matlab ,but once again the wrong values appeared. Any help?
**These data need to get corrected as I have to do some calculations before the graph. For example:
A=1018,637 and B=917,5432 and y=A/B=1.11017. So , the value for y-axis is 1.11017. In fact the value I get is 11017 which is wrong!! **Any help please!!
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 11월 22일
This may be a difficult problem to deal with, as it deals with whether the decimal separator is comma or period in the file itself.
Is your spreadsheet .xls or .xlsx ? Can you attach a sample of it?

답변 (2개)

Chayban Ghabech
Chayban Ghabech 2017년 11월 22일
Hello Sofia,
Please upload your excel file.
Or send it via email:
I have faced similar problems before.
Hopefully i can help.

Image Analyst
Image Analyst 2017년 11월 22일
You can create an Excel template, with all the proper formatting and appearance. Then copy it to the file you want for output and call xlswrite() to put the data into the properly formatted file:
copyfile(templateFileName, thisFileName); % Create output file from template.
xlswrite(thisFileName, yourData, sheet, cellReference);

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by