0

Matlab Plot

Who can help troubleshoot this problem on matlab please. It’s showing error clearvars, clc, close all % say we have f = x(1-x) , g = 8/pi*3 (sin pi*x); compare the two functions % create symbolic variables syms x pi; % create symbolic expressions f = x*(1-x); g = (8/pi^3)*(sin(pi*x)); v = linspace(0,1,51); f1 = subs(f,x,v); g1 = subs(g,x,v); plot(v,f1,'-.',v,g1,'--') grid on

14th Jun 2023, 3:47 PM
Chiemelie Ojiakor
1 Resposta
+ 4
People are more likely to test your code if you LINK it instead of copying it to the description. LINK YOUR COMPLETE CODE. Describe what output you expect and what error you get.
14th Jun 2023, 5:14 PM
Lisa
Lisa - avatar