Create graphics with different sizes?

1 Ansicht (letzte 30 Tage)
Lev Mihailov
Lev Mihailov am 6 Mär. 2020
Kommentiert: Walter Roberson am 6 Mär. 2020
Hello! I have a problem, I need to create a graph on the X scale, the size is 1x116 along the Y axis, size is 1x1289. How can I do this?
X=[1:1:116];
X=-X;
Y=rand(1,1289);
And one more question, is it possible to make Y a matrix and create a graph of X vector (size 1x116) versus Y matrix (matrix size will be 116x1289) ???
  6 Kommentare
Ameer Hamza
Ameer Hamza am 6 Mär. 2020
The vectors for x and y coordinates should be of equal length. Here is an example,
x = rand(1,100);
y = rand(1,100);
scatter(x,y)
Walter Roberson
Walter Roberson am 6 Mär. 2020
Consider using image() with Xdata and ydata parameters instead of scatter()

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by