Chesus
Followers: 0 Following: 0
Feeds
提问
Problem with cubic root
When I try to get the cubic root of -1 (which should be -1) I get this: (-1).^(1/3) How do I fix this?
1 year 前 | 1 个回答 | 1
1
个回答提问
Use user input in a function
I want to use a user input variable in a function like: n=input('n') k=3 f1=func(k) function f1=func(x); f1=n*x; end But...
1 year 前 | 1 个回答 | 0
1
个回答提问
User input fractions or operations
I want to ask for an input in which the user is able to introduce a fraction like: x=input('Hi: ') Hi: 1/3 x= 0,333...
1 year 前 | 1 个回答 | 0
1
个回答提问
Logarithm with a variable base
I want to make a logarithm that has a variable as its base, like: k=2 logk(8) ans = 3 How can I do that?
1 year 前 | 1 个回答 | 0
1
个回答已回答
Assign multiple results to the same variable
indexing the varoable is the solution if true % code k=0 while ... %the condition you decide k=k+1 %by experience ...
Assign multiple results to the same variable
indexing the varoable is the solution if true % code k=0 while ... %the condition you decide k=k+1 %by experience ...
1 year 前 | 0
| 已接受
提问
Assign multiple results to the same variable
I'm doing a code that uses while, and inside that while is a variable whose value gets changed every instance, I want to store a...
1 year 前 | 1 个回答 | 0
1
个回答提问
How do I table a variable with multiple values?
I have a variable with multiple values x= -10:1:10 and I want to put it in a table, with each value being in one row of the ta...
1 year 前 | 1 个回答 | 0