Community Profile

photo

Thamrongsin Siripongsakul


Last seen: 9 mesi fa Attivo dal 2023

Followers: 0   Following: 0

Statistiche

  • Thankful Level 2

Visualizza badge

Feeds

Visto da

Domanda


How can I get the return of a constructed function as an array?
The constructed function is function [a] = triangle(n) a=zeros(size(n)); if (n>=0 & n<=pi) % use an if else statement...

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


How can I construct a triangle function, when I tested one using 'integral(fun.-pi,pi)', error occurred.
function [a] = triangle(n) a=zeros(size(n)); a(n>=0 & n<=pi)=pi-n; end -------------------- >> fun = @(x)triangle(x) ...

circa un anno fa | 1 risposta | 0

1

risposta