![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/25206253_1641474032292_DEF.jpg)
Tarun Sangwan
Followers: 0 Following: 0
Statistica
MATLAB Answers
0 Domande
3 Risposte
RANK
19.697
of 297.016
REPUTAZIONE
2
CONTRIBUTI
0 Domande
3 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.00%
VOTI RICEVUTI
1
RANK
of 157.725
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 palindrome that takes one input argument a char vector and recursively determine whether that argument is a palindrome you are not allowed to use loops not built in function like srtcmp etc. the function returns true or false
function p = palindrome(n) if length(n)/2<1 p = 2 else p = n(1) == n(end) p = [p palindrome(n(2:end-1))] end...
write a function called palindrome that takes one input argument a char vector and recursively determine whether that argument is a palindrome you are not allowed to use loops not built in function like srtcmp etc. the function returns true or false
function p = palindrome(n) if length(n)/2<1 p = 2 else p = n(1) == n(end) p = [p palindrome(n(2:end-1))] end...
11 mesi fa | 0
Risposto
Write a MATLAB script file that calculates the sum of first n natural numbers (the program could prompt the user for the number n). The program must use a “for” or “while” loop to accomplish this, and must NOT use the ready formula s = 1 2 n (n + 1).
%% using cell method function b = addds(n) g = cell(1,n) for i = 1:n g{1,i} = i end b = sum(g) %%using recurssion fu...
Write a MATLAB script file that calculates the sum of first n natural numbers (the program could prompt the user for the number n). The program must use a “for” or “while” loop to accomplish this, and must NOT use the ready formula s = 1 2 n (n + 1).
%% using cell method function b = addds(n) g = cell(1,n) for i = 1:n g{1,i} = i end b = sum(g) %%using recurssion fu...
11 mesi fa | 0
Risposto
How can I fix propagation speed error using Simscape Power System?
propogation time=distance/propagation speed(commonly reffered to speed of light) if there is propagation error you must check v...
How can I fix propagation speed error using Simscape Power System?
propogation time=distance/propagation speed(commonly reffered to speed of light) if there is propagation error you must check v...
quasi 3 anni fa | 1