필터 지우기
필터 지우기

Undefined function or method 'mtimes' for input arguments of type 'cell' ERROR

조회 수: 1 (최근 30일)
Hamid
Hamid 2014년 12월 14일
댓글: Hamid 2014년 12월 14일
Hi everyone,
Ed = cell(1, lc); lc>1
--------------------------------------------
function [es]=bar3s(ex,ey,ez,ep,ed)
b=[ ex(2)-ex(1); ey(2)-ey(1); ez(2)-ez(1) ];
L=sqrt(b'*b);
n=b'/L; G=[ n zeros(size(n)); zeros(size(n)) n ];
E=ep(1); A=ep(2); Kle=E*A/L*[ 1 -1; 1 1];
N=E*A/L*[-1 1]*G*ed';
es=N;
Error in ==> N=E*A/L*[-1 1]*G*ed';

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 12월 14일
Use
N=E*A/L*[-1 1]*G*[ed{:}]'
  댓글 수: 5
Azzi Abdelmalek
Azzi Abdelmalek 2014년 12월 14일
What is ex ? provide all the needed data
Hamid
Hamid 2014년 12월 14일
% es=bar3s(ex,ey,ez,ep,ed)
%-------------------------------------------------------------
% PURPOSE
% Compute normal force in three dimensional bar element.
%
% INPUT: ex = [x1 x2]
% ey = [y1 y2] element node coordinates
% ez = [z1 z2]
%
% ep = [E A] element properties
% E : Young's modulus
% A : Cross section area
%
% ed : [u1 ... u6] element displacements
%
% OUTPUT: es = [N] normal force

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by