필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

error in plot command while using for loops twicly

조회 수: 1 (최근 30일)
SHARAD KUMAR UPADHYAY
SHARAD KUMAR UPADHYAY 2019년 2월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
I am trying to plot as?
function output=fun(Q,T,x)
output=2.*Q.*T.*x
end
function f=fun2(Q,T,x)
T=[2 5]
Q=linspace(0,0.8)
for i=1:length(T)
for j=1:length(Q)
f=fun(Q(j),T(i),x)
end
end
end
%% then to run it in Main_drag2.m file as
A=fun2(Q,T,x)
plot(Q,A(1,:))
%%but i got the error as below
%%Error using plot
%%A numeric or double convertible argument is expected
%%Error in Main_drag2 (line 23)
%%plot(Q,A(1,:))

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by