질문


Accessing a specific char in a string
I am trying to access a specific char in a string. I get a number by the user and I need to index all the digits, because the...

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Using array as a for loop
I need to solve the polynomial x^4+nx^3-1 for n=-1,0,1 (without using for loop) What I did is: n=(-1:1:1); co_poly=[1...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


Check which field are the input from
Is there a way to check from which field the elements of the vector are? For example intger, rational numbers,etc. ?

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


Concatenating element- what the different?
What is the different between those code: NewVector=[Vector1,element,vector2]; and NewVector=[Vector1:element:vecto...

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


what does the following syntax
A=magic(3); B=A(:) disp(B) why does it show the matrix entires in a column vector? what does (:) mean?

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


loop inside Index of matrix
On the following code function [d] = matrix( n ) d=zeros(2*n-1); for i=1:n d(i:end-i+1,i:end-i)=i;...

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


incrementation in for loop
x = ones(1,10); for n = 2:6 x(n) = 2 * x(n - 1); end When written as above n increase by 1 after execution of ...

거의 9년 전 | 답변 수: 3 | 0

3

답변

질문


Calculating N-th Element Of A Sequence
function m = seq( x ) n=[(1:x);(1:x)]; if x==1 n(1,1)=2; end if x==2 n(1,2)=3; end n(1,x)=(1-s...

대략 9년 전 | 답변 수: 1 | 0

1

답변

질문


Saving to a vector
function [ b ] = PrimeF( x ) for i=1:x if mod(x,i)==0 b=i; end end b=isprime(b)*b; end ...

대략 9년 전 | 답변 수: 2 | 0

2

답변

질문


radians to degrees in pc client
Using the mobile app the following code rad2deg(pi) works, but not in the PC (attached image).

대략 9년 전 | 답변 수: 0 | 0

0

답변