saurav Tiwari
Followers: 0 Following: 0
Statistica
MATLAB Answers
0 Domande
3 Risposte
RANK
22.176
of 296.498
REPUTAZIONE
2
CONTRIBUTI
0 Domande
3 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.00%
VOTI RICEVUTI
1
RANK
of 156.574
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Risposto
Write a function called under_age that takes two positive integer scalar arguments: age that represents someone's age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
function [a]=under_age(n,m) a=n<m; if a==1; fprintf('true') end if nargin<2; m=21; end end
Write a function called under_age that takes two positive integer scalar arguments: age that represents someone's age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
function [a]=under_age(n,m) a=n<m; if a==1; fprintf('true') end if nargin<2; m=21; end end
oltre 4 anni fa | 0
Risposto
How to write function for above combine matrix?
function T=trio(n,m) a=ones(n,m);b=2*a;c=3*a; T=[a;b;c]; end
How to write function for above combine matrix?
function T=trio(n,m) a=ones(n,m);b=2*a;c=3*a; T=[a;b;c]; end
oltre 4 anni fa | 1
Risposto
Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute values of the difference between the maximum and minimum valued elements in each row. As a second output argument called mmm,
function [a,b]=minimax(M) [m,n]=size(M); x=1:m; a=max(M(x,:)')-min(M(x,:)'); v=M(:); b=max(v)-min(v); end
Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute values of the difference between the maximum and minimum valued elements in each row. As a second output argument called mmm,
function [a,b]=minimax(M) [m,n]=size(M); x=1:m; a=max(M(x,:)')-min(M(x,:)'); v=M(:); b=max(v)-min(v); end
oltre 4 anni fa | 0