Error in Acceleration (line 9)
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm new in matlab and I'm stuck with this error for sometime, if someone could help
function [thetadotdot] = acceleration(r,g,a_c,theta,k0)
thetadotdot = ((g.*r.*sin(theta))+(a_c.*r.*cos(theta)))./k0^2;
end
clc;
clear;
theta = 0.25*pi; % 45 degrees in radians
g = 9.81; % acceleration due to gravity
m = 40; % mass in kilograms
r = 0.4; % radius in metres
k0 = 0.5; % radius of gyration in metres
a_c = 10*g; % deceleration in N/m2
thetadot = integral(@(thetadot) acceleration(r,g,a_c,theta,k0),0,45,'ArrayValued',true);
Error in Acceleration (line 9)
thetadot = integral(@(thetadot) acceleration(r,g,a_c,theta,k0),0,45,'ArrayValued',true);
댓글 수: 3
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Computations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!