Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to write these to script functions?
조회 수: 1 (최근 30일)
이전 댓글 표시
create 3 functions scripts using the variable arguments given.
Fn1(x,a,b,e)= e*x^a–b;
Fn2(x,c,f)=f*x+c;
Fn3(x,d,g)=g*x+d;
You are given a file named ‘data04_01.txt’, in this file are 7 values in a column. Assign each value to a letter in abc order. (Ex: the first number listed would be ‘a’ and then the next ‘b’ and so on.) There should be 7 values which should correspond to letters a to g. You will now plot all three functions on a single plot with a legend. Don’t forget to label the axis’ and the plot.
I think they are written like this but I'm not sure
function [y]=Fn1(x,a,b,e)
y=e*x^a-b
댓글 수: 1
답변 (1개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!