what is the mistake in this code because the output results doesn't appear?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
how can I make one raw zeros function, I wrote zeros(1,n) but there is an error appeared
0 Commenti
Risposte (1)
Angelo Yeo
il 4 Ott 2022
Modificato: Angelo Yeo
il 4 Ott 2022
In line 180, you are not supposed to use function "zeros" like below.
zeros(j, 1:n)
According to the error message, the second input to "zeros" should be scalar not a vector like "1:n"
2 Commenti
Angelo Yeo
il 4 Ott 2022
Modificato: Angelo Yeo
il 4 Ott 2022
Thanks Walter for the comment. I changed my answer to be more specific.
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!