Create graphics with different sizes?

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

Ameer Hamza
Ameer Hamza 2020년 3월 6일
Can you show us an example of the graph you are trying to make?
Lev Mihailov
Lev Mihailov 2020년 3월 6일
I can show. I need to make a scatter graph for the matrix, and I just don’t know how to do it
Ameer Hamza
Ameer Hamza 2020년 3월 6일
From the description of the question, the issue is not entirely clear. Please attach a sample figure or some dataset with which you want to make the scatter plot.
x=[1:0.5:6]; % x coordinates for matrix с
c=rand(11,100); % matrix of values ​​that I need to do
y=length(c); % y coordinates for matrix с
scatter(x,y,[],c)
here is a small example of how this should work, but due to different dimensions the graph is not created
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 2020년 3월 6일
Consider using image() with Xdata and ydata parameters instead of scatter()

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

제품

태그

질문:

2020년 3월 6일

댓글:

2020년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by