Community Profile

photo

Subramanian Mahadevan


Active since 2016

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


c0 and x are scalars, c - vector, and p - scalar. If c is [ ], then p = c0. If c is a scalar, then p = c0 + c*x . Else, p =
function [p] = poly_val(c0,c,x) N = length(c); n=1:1:N; if (N<=1) if(isempty(c)) p=c0; else p= c0...

7 years ago | 7 answers | 0

7

answers

Question


hello people. How do I compute the difference in dates of the same year without using datenum or any other built in function
I need to compute the difference in days between any two dates of the same year.How do I go about it, without using built in fun...

7 years ago | 0 answers | 0

0

answers

Question


Could someone please point out the error in my code?
Write a function called income that takes two row vectors of the same length as input arguments. The first vector, rate contains...

7 years ago | 1 answer | 0

1

answer

Question


how can i genaralise this code for any m*n matrix?{the original question is to sum all the elements in the perimeter of a given matrix}?
This was my code;which works good for a 3*3 matrix. function sum1 = peri_sum(A); q=0;r=0;s=0;t=0;u=0;v=0;w=0; A=[1:3;...

7 years ago | 2 answers | 0

2

answers