working with excel in MATLAB code

조회 수: 1 (최근 30일)
amirmasoud kochakzadeh
amirmasoud kochakzadeh 2020년 1월 2일
답변: amirmasoud kochakzadeh 2020년 1월 4일
Hi every one,
I am working on an excel file that I attach it, and I want to compare two columns of that file and check if the value of them and if they are not equals, return 1. The excel file is not regular and number of rows are variable in each section and some empty cells are between the two sections. Now I want to know that how can I do this?
Thanks so much.
  댓글 수: 2
Walter Roberson
Walter Roberson 2020년 1월 2일
Excel Reader warns me that the sheet has formulas with circular references.
amirmasoud kochakzadeh
amirmasoud kochakzadeh 2020년 1월 2일
Hi i fix it again

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2020년 1월 2일
Col1 == Col2 | (isnan(Col1) & isnan(Col2))
  댓글 수: 2
amirmasoud kochakzadeh
amirmasoud kochakzadeh 2020년 1월 2일
thanks alot Sr.
but aother qustion how can i change the double form matrix to table form
Walter Roberson
Walter Roberson 2020년 1월 2일
array2table
Or these days it often makes sense to use readtable() instead of xlsread()

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

amirmasoud kochakzadeh
amirmasoud kochakzadeh 2020년 1월 4일
thanks alot

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by