필터 지우기
필터 지우기

Why do I get an error Plotting a listplot copied and pasted from the website? plot(plot::Listplot([1, 0, 1, 0, 1]))

조회 수: 1 (최근 30일)
Hi all,
I am copying and pasting the code from:
plot(plot::Listplot([1, 0, 1, 0, 1]))
This should give the plot shown in the website however, I get this message:
Error: File: rough.m Line: 1 Column: 11 Unexpected MATLAB operator.
It is the most basic plot, I unsure why this is giving me an error. If I could understand why that isn't working, maybe I can then work on the real issue which is to add this function into:
errorbar(ASOI,iso_Octane,STDiso_Octane,'sk-','MarkerFaceColor',[1 1 1],'MarkerSize', 5,'LineWidth', 1.3);
The real problem is that the current graph I am plotting doesn't have straight lines going through all the points (it is slightly curved). From what I understand, if I add the function 'listplot' into the line of coding above, it will connect the points with straight lines.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2014년 8월 14일
Jai - code from that link, and in particular that from your question title, is meant to be executed in MuPad which is part of the Symbolic Math Toolbox. Do you have this toolbox?

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by