Sine function plotting help

조회 수: 5 (최근 30일)
Nana Fernandes
Nana Fernandes 2017년 4월 14일
댓글: Nana Fernandes 2017년 4월 15일
I have fourteen values of voltage and fourteen values of time and i want to read these six values from excel sheet and plot them all on a single sine wave how can i do that?
Voltage
1.06 1 1.01 0.966753089 0.975973845 1.07 0.97036187 0.970362 0.964296537 0.971589314 1.01469118 1.042514216 1.029149117 0.965374791
Time
0 -0.090033876 -0.314484214 -0.238352019 -0.205512343 -0.370186674 -0.331612302 -0.331612302 -0.381852625 -0.386896711 -0.380912159 -0.392083906 -0.392418059 -0.41415126
All these values are in a single row of the excel sheet i know i can use xlsread but how to make these values in a sine wave? Also i have another excel sheet which has 16801 rows and 28 columns , how can i plot all these values as a single wave?
ALso i have tried assigning them with two variable and plotting but it doesnt give me a sin wave
Thanks in advance
  댓글 수: 9
John D'Errico
John D'Errico 2017년 4월 15일
Only you know what the data has to do with a sine wave. There is no visibly sinusoidal relationship there. That you don't see a sine wave in the plot should be a big hint - that you have something wrong.
Nana Fernandes
Nana Fernandes 2017년 4월 15일
ok thanks
can u please help me out with this question too https://in.mathworks.com/matlabcentral/answers/335536-please-help-with-my-code

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by