Functions with 2 variables
Mostra commenti meno recenti

How do you make a function (NOT an anonymous function) from this?
"Als" means "if"
Thanks in advance
6 Commenti
Rik
il 17 Feb 2021
Creating a function is fairly basic Matlab:
function output=MyFunction(input1,input2)
Is this what you mean? And why do you want to specifically avoid an anonymous function?
Jens Petit-jean
il 17 Feb 2021
Jens Petit-jean
il 17 Feb 2021
Walter Roberson
il 17 Feb 2021
k does not need to be an input for this function. The conditions have to do with x modulo 4: -2 <= mod(x,4) < 0 is the second condition, and 0 <= mod(x,4) < 2 is the first condition.
Walter Roberson
il 19 Feb 2021
Risposta accettata
Più risposte (1)
Asayel Alazmi
il 21 Feb 2021
0 voti
Write an mfile using for loop to output a all numbers from 1 to 4 with an increment of 0.2
1 Commento
Walter Roberson
il 21 Feb 2021
No, I don't think doing that would help solve the question that the person posted.
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!