Matlab and Excel (Differences Finder)

조회 수: 4 (최근 30일)
Labs
Labs 2022년 5월 4일
답변: Jaswanth 2023년 9월 27일
How do you find the difference between two graphs (one being an excel file )and another one being generated by a sensor (so matlab outputs data)? (assume they have the same amount of data points)

답변 (1개)

Jaswanth
Jaswanth 2023년 9월 27일
Hi Labs,
I understand that you would want to compare plots of a set of data stored in Excel and data stored in MATLAB from a sensor.
This can be achieved by first loading the Excel data set into MATLAB using “readtable” function, and then plotting both available data sets on graphs.
For more information on this, please refer to the following resources:
  1. “readtable” function creates a table by reading column-oriented data from a text file, spreadsheet etc. Documentation for “readtable” function - https://in.mathworks.com/help/matlab/ref/readtable.html?searchHighlight=readtable&s_tid=srchtitle_support_results_1_readtable
  2. “plot” function creates a 2-D line plot of the data in Y versus the corresponding values in X. Documentation for “plot” function - https://in.mathworks.com/help/matlab/ref/plot.html?searchHighlight=plot&s_tid=srchtitle_support_results_1_plot
  3. Following is the example of how to show difference between two plotted data in graph – https://in.mathworks.com/support/search.html/answers/622243-how-to-show-difference-between-two-plotted-data-in-graph.html?fq%5B%5D=asset_type_name:answer&fq%5B%5D=category:matlab/geographic-plots&page=1
Hope this Helps.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by