필터 지우기
필터 지우기

What should I write in the command window for this input of the function?

조회 수: 1 (최근 30일)
Hi All,
Basically, I was given this function by my teacher:
function[stability,lds]=lds_cal(state,hs,fs,time,n_neighbours, plot)
and there is more explainantion of the funtion after this line. I've already insert all the value for the input of this function in the command window such as state, hs, time, fs,n_neighbours. But the problem is I dont know what to write for the "plot" input in the command window.
  댓글 수: 8
redroses
redroses 2020년 4월 6일
okay got it!!! thanks a lot yaaa!!
redroses
redroses 2020년 4월 6일
i don't know how to accept your answer since there is no button "accept answer" here..

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

채택된 답변

Mehmed Saad
Mehmed Saad 2020년 4월 6일
function[stability,lds]=lds_cal(state,hs,fs,time,n_neighbours, plot)
if(plot)
figure,plot(time,n_neighbours) % or any two args you want to plot
end
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by