I need some help with the linspace function
조회 수: 1 (최근 30일)
이전 댓글 표시
Hey everyone, so whenever I run my code I get "Error using plot Vectors must be the same length" so I tried using linspace but it's still not working. Could I get some help?
T = linspace(1,99,length(diff_M))
M = 1./T;
diff_M3 = diff(M3)
plot(diff_M,T)
댓글 수: 2
답변 (1개)
Benjamin Drewry
2022년 10월 19일
Replace 'diff' with 'gradient' to prevent vector mismatches and errors to the plot call
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 R Language에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!