I have a table of phase and amplitude in a excel sheet...i want to plot a graph of phase vs amplitude......... can anyone tell me how i do it ?
4 ビュー (過去 30 日間)
古いコメントを表示
PLease anyone?
4 件のコメント
採用された回答
KSSV
2016 年 9 月 2 日
I don't about the last attached image...but with your phase amp.png and attached xl file. Run the below code.
clc; clear all
file = 'example_alumi.xlsx' ;
[num,txt,raw] = xlsread(file) ;
phase = num(:,1) ;
amp = num(:,2) ;
loop = linspace(-10,10,length(num));
figure
subplot(211)
plot(loop,amp,'r')
ylabel('Aplitude')
subplot(212)
plot(loop,phase,'b')
ylabel('Phase Shift')
xlabel('loop')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!