Community Profile

photo

RAMAKANT SHAKYA


Last seen: mehr als 2 Jahre ago Active since 2019

Statistics

  • Knowledgeable Level 1
  • Revival Level 2
  • First Answer

View badges

Content Feed

View by

Answered
I am working on homework but i cannot figure out what is wrong
whenever you do array multiplication the no of elements in both array must be same or multiply with a constt number with array o...

etwa 3 Jahre ago | 0

Answered
How do I calculate the difference between the elements of two vectors given a condition ?
for given vector x and y; x= [106, 306, 407, 607] % given x vector y = [101, 201, 301, 401, 501] %givrn y vector d=[]; for...

mehr als 3 Jahre ago | 0

| accepted

Answered
Coding taylor approximation of natural log
if you want to calculate log(1.9) and x=0.9 then you have apply taylor series log(1+x) see formula form google and change in to ...

mehr als 3 Jahre ago | 0

Answered
How to do it?
function s=halfsum(a) [m,n]=size(a); s=0; a=flip(a); for r=1:m for c=n:-1:r s=s+a(r,c); end en...

mehr als 3 Jahre ago | 0

Answered
A function called small_elements that takes as input an array named X that is a matrix or a vector. Could you help me to understand the meaning?
function ind=small_elements(v) [m,n]=size(v); j=0; ind=[]; for c=1:n for r=1:m if (r*c) > v(r,c) ...

mehr als 3 Jahre ago | 0

Answered
Indexing & Move Me function
function out= move_me(v,a) s=length(v); if nargin < 2 %for validation of input a=0; end for x=1:s if v(x)==a %co...

mehr als 3 Jahre ago | 0

Answered
How to transform years into centuries
function s= centuries(n) p={'I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII','XIII','XIV','XV','XVI','XVII',' XVII...

mehr als 3 Jahre ago | 0

Answered
Hey Guys can you help me with that.
function s2=dial(n) p=[n]; s1=''; tx = ismember(p, ['A':'Z','0':'9']);%only digits and capital letters tx1=sum(tx); if leng...

mehr als 3 Jahre ago | 0

Answered
Can anyone help me with this question..?
function s2=dial(n) p=[n]; s1=''; tx = ismember(p, ['A':'Z','0':'9']);%only digits and capital letters tx1=sum(tx); if leng...

mehr als 3 Jahre ago | 0

Answered
Write a function called circular_primes that finds the number of circular prime numbers smaller than n, where n is a positive integer scalar input argument. For example, the number, 197, is a circular prime because all rotations of its digits:
function out=circular_primes(no) prim=primes(no);% find the all prime number till the given number pr=0; nos=[]; po=[]; for...

mehr als 3 Jahre ago | 0

Answered
How can I solve this problem?
function out=circular_primes(no) prim=primes(no);% find the all prime number till the given number pr=0; nos=[]; po=[]; for...

mehr als 3 Jahre ago | 0

Answered
Number of first days of the month equals to Mondays
function counter=day_counter(y) counter=0; year=rem(y,100); % no of years in century lp=fix(year/4); %leap year if y~=19...

mehr als 3 Jahre ago | 0