Info
This question is closed. Reopen it to edit or answer.
Excel table to Matlab to create a graph
1 view (last 30 days)
Show older comments
I have the following data in an excel table,
S11 = 68995, 483140, 764250,794170,794170,59520,471840,356550,254850,167220,93693,41496,-9572
distance = 0, 0.015188353, 0.032416695, 0.051959017, 0.074126118, 0.099270546, 0.127792174, 0.160144621, 0.196842396, 0.238469148, 0.285686904, 0.339246595, 0.4
I am trying to plot this as a line graph but I can't get it to work. Any help please?
1 Comment
dpb
on 28 Oct 2014
So what have you tried and what has been the result including whatever errors you got?
Answers (1)
Star Strider
on 28 Oct 2014
With the data you posted, this works:
S11 = [68995, 483140, 764250,794170,794170,59520,471840,356550,254850,167220,93693,41496,-9572];
distance = [0, 0.015188353, 0.032416695, 0.051959017, 0.074126118, 0.099270546, 0.127792174, 0.160144621, 0.196842396, 0.238469148, 0.285686904, 0.339246595, 0.4];
figure(1)
plot(distance, S11)
grid
xlabel('Distance')
ylabel('S_{11}')
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!