Feeds
提问
adding adjacent n elements in a matrix
if i have a matrix like A= (1 2 3 4;5 6 7 8;9 10 11 12 ; 13 14 15 16) adding three adjacent elements will look like A(i,j)+A(i,...
8 years 前 | 1 个回答 | 0
1
个回答提问
how to get out infinite loop
this code required to calculate the smallest multiple with uint64 format bit gets stuck on argument 45. it only displays busy . ...
8 years 前 | 0 个回答 | 0
0
个回答提问
remainder while dividing a number by x number of digits
if i have a line of code like this while(rem(i,2) ~= 0 || rem(i,3) ~= 0 || rem(i,4) ~= 0 its OK if I know the limit of ...
8 years 前 | 1 个回答 | 0
1
个回答提问
getting 'mondays' that are first day of the month without using datenum
I'm trying to get the number of mondays that are first day of the month in a year without using the inbuilt function datenum. An...
8 years 前 | 1 个回答 | 0
1
个回答已解决
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
8 years 前
提问
how to test for palindrome of the product of unknown digit numbers
when testing out palindromic numbers for three digit numbers , we could create the products of the three digits this way: fo...
8 years 前 | 2 个回答 | 0
2
个回答提问
converting array to single
i have this output: output = dial ('1FUNDOG4YOU') output = 1 3 8 6 3 6 4 4 ...
8 years 前 | 2 个回答 | 0
2
个回答提问
finding zero points of a function without using the fzero built in function
hello guys I'm trying to solve a problem in which I'm supposed to find the 'x' points where y is zero.( y is assumed to be zero ...
8 years 前 | 0 个回答 | 0
0
个回答提问
how can i determine why my code is accepting a non integer when it's not suppose to
I'm solving problem that is supposed to only accept an integer as input but its accepting a non integer. I'm attaching the prob...
8 years 前 | 2 个回答 | 0
2
个回答提问
getting the day of the week for a given date
As today is Wednesday with date June 8, 2016. how can i write a code to get the day of given dates: like what day is Nov 29 I'm ...
8 years 前 | 2 个回答 | 0
2
个回答提问
approximation with loop without using built in factorial function
I'm supposed to write a code to approximate the exp of a number with this formula e=sumation (1/k)= 1+1+1/2+1/6+1/24+.....( fo...
8 years 前 | 1 个回答 | 0
1
个回答提问
summing to create a vector
I'm trying to write a function that calculates sum of ((-1)^k *sin((2k+1)t))/((2k+1)^2 ( for k=0 to n) t varies from 0 to 4*pi w...
8 years 前 | 2 个回答 | 0
2
个回答已回答
concatenate a vector in column-major order
indexes=[]; for ii= 1:size (X,1); for jj = 1: size (X , 2); if X(ii , jj)< ii*jj; indexes = {ii ,jj}...
concatenate a vector in column-major order
indexes=[]; for ii= 1:size (X,1); for jj = 1: size (X , 2); if X(ii , jj)< ii*jj; indexes = {ii ,jj}...
8 years 前 | 0
提问
concatenate a vector in column-major order
I am trying to solve a problem where the elements of a vector is compared to something and if found true the location of the el...
8 years 前 | 2 个回答 | 0
2
个回答提问
vector manipulation in matlab
hi say i have a vector v=[8 4 0 2 8 9 10 11] and i want to add a scaler 'a' ( which could be anything ) i'll write it this w...
8 years 前 | 1 个回答 | 0
1
个回答提问
polynomials with increasing order
hi, i want to create an equation of this format x^1+x^2+x^3........x^n. how can i do that?
8 years 前 | 1 个回答 | 0