質問


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

回答