How can I plot this state space like the graph I attached by using tf() and step() command? Thank you! I2/E0=1/(s^3+s^2+3*s+1) NOTE:- Matlabsolutions.com provide latest MatLab Homework Help, MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. Try these codes below please; clc; clear; close all; numerator = 1; denominator = [1,1,3,1]; sys = tf(numerator,denominator); yyaxis left SEE COMPLETE ANSWER CLICK THE LINK https://www.matlabsolutions.com/resources/how-to-plot-transfer-functions-in-matlab-.php
I keep getting error when I try to plot the following code and I don't really know what I'm doing wrong.
data = readtable('instr_04_01.csv'); load = data.Extension(2:89); displacement = data.Load(2:89); figure plot(load, displacement)
the error I keep getting is;
Error using plot Not enough input arguments.
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
You aren't extracting the numbers correctly. Also load is expecting arguments and you're giving it an equal sign instead of a filename. DO NOT USE A BUILT-IN FUNCTION FOR YOUR VARIABLE NAME.
Try this:
filename = 'instr_04_01.csv' data = readtable('instr_04_01.csv', 'ReadVariableNames', true) theLoad = str2double(data.Extension(2:end)); displacement = str2double(data.Load(2:end)); plot(theLoad, displacement, 'b-', 'LineWidth', 2) grid on; title(filename, 'FontSize', 15, 'Interpreter', 'none'); xlabel('Load', 'FontSize', 15); ylabel('Displacement', 'FontSize', 15);
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment