Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

function y =g( u ) if (0

function y=g(u) if (0<=u<1) y=sqrt(u); elseif(1<=u<2) y= (1/2+ (1/2)*u); else y= (-2*(u^2)+(17/2)*u-15/2); end endfunction N=100; x= linspace(0,3,100); y= zeros(x); for i=1:N y(i)= g(x(i)); end plot(x,y,'linewidth',3) 

can anyone tell me what is wrong whit my code it says i have in error on line 17 this is the error " Undefined operation for the given operands. check or define function %b_1_s for overloading." this is on Scilab

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

function y =g( u ) if (0

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago