フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

HI, I wanted to create a new function that plots a scatterplot of 2 columns of data and saves the Figure in a jpg. I was unable to do this using my code and wanted to know why, and what would work. format

1 回表示 (過去 30 日間)
Sara  Renmiu
Sara Renmiu 2020 年 5 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
%I created some data for my scatterplots
Data = randi(10, [20,2])
%then I tried to make a function
function[X,Y] = ScatterGraph(x,y)
%plots a scatterplot
%plots a scatterplot of x against y
x = (Data ( : , 1))
y = (Data ( : , 2))
Scatter(x,y)
end
saveas( 'scatterplot.jpg')

回答 (1 件)

darova
darova 2020 年 5 月 23 日
It's because of the letter you use. IT should small 's'

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by