Borrar filtros
Borrar filtros

Error using vertcat Dimensions of arrays being concatenated are not consistent.

3 visualizaciones (últimos 30 días)
I have to determine how the the matrix Sc changes with respect to a range of values given by od...
I know that because od is now a matrix of three different values, that the numbers are not consistent for trying to solve the matrix Sc. I am just not sure how to fix this issue?
%outer diamater changing ranges (mm)
od = (0.0300: 0.01: 0.0500);
id = od - 2*t; %inner diamaeter changing as a result of outer diameter (mm)
Ic = 1/4*pi*((od/2).^4-(id/2).^4); %area moment of inerttia changing (mm)
Ac = pi*(od.^2-id.^2)/4; %cross sectional area changing
%Evaluating stress with changes to outer diamater
%Set up stress vector
S11=0;S33=0;S13=0;S31=0;
%Shear stress from 1-component of Force
S12c=-4*Fp(1)*(sin(phi))^2./(3*pi*(od.^2./4));S21c=S12c;
%Shear stress from 3-component of Force
S23c=-4*Fp(3)*(cos(phi))^2./(3*pi*(od.^2./4));S32c=S23c;
%Axial stress from 2-component of force + bending from 1- and 2-components
%of Force
S22c=F(2)./Ac+(M(3)*cos(phi)+M(1)*sin(phi))*od./2./Ic;
%Stress as a tensor (in Pascals)
Sc=[S11 S12c S13; S21c S22 S23c; S31 S32c S33]

Respuestas (1)

Walter Roberson
Walter Roberson el 1 de Nov. de 2019
Your second row has two entries that are vectors, but the other two rows have one entry that is a vector.

Categorías

Más información sobre Stress and Strain en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by