photo

Piyush Gupta


Last seen: circa 3 anni fa Attivo dal 2020

Followers: 0   Following: 0

Engineering student, new to MATLAB wants to contribute to science and learn new stuff.

Statistica

MATLAB Answers

3 Domande
0 Risposte

RANK
117.691
of 300.756

REPUTAZIONE
0

CONTRIBUTI
3 Domande
0 Risposte

ACCETTAZIONE DELLE RISPOSTE
33.33%

VOTI RICEVUTI
0

RANK
 of 21.077

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK

of 170.890

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

  • Thankful Level 1

Visualizza badge

Feeds

Visto da

Domanda


write a recursive function to find maximum element of an array , I'm having difficulty to write this program
function mx = recursion_max(v) n=size(v); if size(v) <2 mx = v(1); else mx = max(recursion_max(v(n-1)), mx ); end end

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


write a function to find maximum element of an array using recursion
function mx = recursion_max(v) n=size(v); if size(v) <2 mx = v(1); else mx = max(recursion_max(v(n-1)), mx ); end end

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


I want to produce square wave without using square function, but this code it showing error, "illegal use of IF keyword". How to rectify it?
t=-10:0.1:10; a=1; for i=1:2:201 { if a==1 { z(1,i)=0; z(1,i+1)=0; } el...

oltre 5 anni fa | 2 risposte | 0

2

risposte