Gistlib Logo

gistlib

% put your answer code below syms x(t) mata = matb = matans = k1= k2= k3= k4= % enter force respose equation with constants here: yp = in matlab

main.m
syms x(t) k1 k2 k3 k4
mata =  % enter value for matrix a
matb =  % enter value for matrix b
matans =   % enter value for matrix ans

% Enter force response equation with constants here
yp = k1*x(t) + k2*x(t).';

212 chars
9 lines

similar matlab code snippets

what does this code do? syms x f = exp(x); % function f(x) = exp(x) df = diff(f, x); % calculatet the derivative of f(x) df_value = subs(df, x, 1); % substitute x = 1 in the derivative df_value in matlab
what is a symbolic variable, and how is it used? in matlab
prove that symbolic equation is always greater than 0 in matlab
how to calculate the 99th percentile in matlab
how to perform a ztest in matlab
how to calculate the normal distribution in matlab
how to calculate the binomial distribution in matlab
how to calculate cumulative distribution function in matlab
how to plot the binomial distribution in matlab
calculate the area of a triangle in matlab

related categories

matlab
symbolic-computation

gistlibby LogSnag