write a script to plot x and y values in a graph in wich x values are between 0 and 90 and y values are between 0 and 100 in matlab

You can use the plot function in MATLAB to plot x and y values. Here's an example script that generates random x and y values between 0 and 90 and 0 and 100 respectively, and then plots them:

main.m
% Generate random x values between 0 and 90
x = rand(1, 100) * 90;

% Generate random y values between 0 and 100
y = rand(1, 100) * 100;

% Plot the x and y values
plot(x, y);

% Set the x-axis limits to 0 and 90
xlim([0, 90]);

% Set the y-axis limits to 0 and 100
ylim([0, 100]);

% Add labels to the x and y axes
xlabel('X values');
ylabel('Y values');

% Add a title to the plot
title('X vs Y');
400 chars
22 lines

This should generate a scatter plot with x and y values between 0 and 90 and 0 and 100 respectively.

related categories

gistlibby LogSnag