Plot Cell Array Data

Plots data stored in cell arrays
4 download
Aggiornato 28 giu 2023

Visualizza la licenza

This function plots multiple 2-D lines in a figure. It is an alternative to using: plot(X1,Y1,LineSpec1,...,Xn,Yn,LineSpecn)
plot2(X,Y) creates a 2-D line plot of the data in Y versus the corresponding values in X.
plot2(X,Y,LineSpec) creates the plot using the specified line style, marker, and color.
X,Y, and LineSpec are cell arrays with the same length, such that X{i} , Y{i} , and LineSpec{i} are X data, Y data, and line specifications of the ith line to be plotted.
Example:
X{1}=-pi:pi/100:pi;
Y{1}=cos(X{1});
LineSpec{1}='b--';
X{2}=-pi:pi/100:pi;
Y{2}=sin(X{2});
LineSpec{2}='r-';
figure;
plot2(X,Y);
figure;
plot2(X,Y,LineSpec);

Cita come

Ayad Al-Rumaithi (2024). Plot Cell Array Data (https://www.mathworks.com/matlabcentral/fileexchange/131723-plot-cell-array-data), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2023a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0