plotting in matlab

This page covers plotting functions of 2D and 3D curves in matlab. It covers plot and plot3 functions.

plot and plot3 matlab code

clc;clear all;close all;
x=[1 2 3 4 5 6 7 8 9 10];
y=[0.1 0.2 0.3 0.4 0.5 0.35 0.25 0.15 0.05 0.02];
z=[10 20 30 40 50 60 70 80 90 100];
figure;plot(x,y);
figure;plot3(x,y,z);

Another plot3 code

clc;clear all;close all;
t=linspace(0,1,1000);
x=t;
y=t.^2;
z=t.^3;
plot3(x,y,z);

Output

plot3D matlab

The other matlab function is stem3(x,y,z) to plot in 3D.

Useful Links to MATLAB codes

Refer following as well as links mentioned on left side panel for useful MATLAB codes.
OFDM Preamble generation  Time off estimation corr  Freq off estimation corr  channel estimation  11a WLAN channel  PN sequence generation  OFDMA Tx Rx  AES DES  carrier aggregation  CCDF  FIR Filter  IIR Filter  Low Pass FIR  Viterbi decoder  CRC8 CRC32 

RF and Wireless tutorials

WLAN  802.11ac  802.11ad  wimax  Zigbee  z-wave  GSM  LTE  UMTS  Bluetooth  UWB  IoT  satellite  Antenna  RADAR