Why only scatter function is not working?

조회 수: 3 (최근 30일)
GD
GD 2023년 10월 11일
댓글: GD 2023년 10월 12일
x=27:0.5:29
y= [2.41 2.4 2.395 2.39 2.38]
scatter(x,y)
scatter plot is not showing by using thus code.Please clarify.
  댓글 수: 10
GD
GD 2023년 10월 12일
@Dyuman Joshi Sir the following error is coming.
GD
GD 2023년 10월 12일
@Cris LaPierre sir I am getting this error after putting scatter(x,y)

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

채택된 답변

Dyuman Joshi
Dyuman Joshi 2023년 10월 12일
You have named your script after a built-in MATLAB function i.e. error.
It's not a good idea to name variables or scripts or user-defined functions by using built-in function names.
Rename the script and run it again to check if there are any other errors or not.
  댓글 수: 6
Bruno Luong
Bruno Luong 2023년 10월 12일
편집: Bruno Luong 2023년 10월 12일
How to change error.m file?
Open Windows File explorer Browse to C:\Users\Debarati Ghosh\Documents\MATLAB
Check if error.m is size 0, if yes delete it.
If not rename error.m to something else, e.g. myerror.m then change accordingly what of your mfile that call error to myerror.
I short just basic usage of computer.
GD
GD 2023년 10월 12일
@Dyuman Joshi Going by your suggestion it is done.Now I am getting proper result.Thank you sir.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by