Angus Wong
2018 年からアクティブ
Followers: 0 Following: 0
Programming Languages:
C
Spoken Languages:
Chinese
C
Spoken Languages:
Chinese
統計
All
Feeds
解決済み
Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...
8ヶ月 前
解決済み
Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count...
8ヶ月 前
質問
Matlab Report Generator (Unknown Error to me)
Hi, This is a section of my code in which Matlab 100% throws an error that I don;t know why and how. Can anyone give me some su...
4年弱 前 | 1 件の回答 | 0
1
回答質問
Problem using solve (Symbolic Toolbox)
I encountered a problem in which: I expect it to return -2*t*L^3/15. The unfinished code is as follows, with the input of s...
4年弱 前 | 2 件の回答 | 0
2
回答質問
Transforming from Maclaurin to Taylor
I have a polynomial function in terms of x, in which the highest power never exceeds 6. This function will look like a Maclaurin...
4年弱 前 | 1 件の回答 | 0
1
回答質問
3D matrix (I guess is an indexing question?)
I have a 9x9x9 matrix (simple). It is created by: matr=zeros(9,9,9); for ct=1:9 matr(:,:,ct)=ct; end I then type: (st...
約4年 前 | 1 件の回答 | 0
1
回答解決済み
Proper Factors
Generate the proper factors of input integer _x_ and return them in ascending order. For more information on proper factors, ref...
4年以上 前
解決済み
Multiples of a Number in a Given Range
Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...
4年以上 前
解決済み
Numbers with prime factors 2, 3 and 5.
Make a function which takes one positive integer n and returns a matrix with the numbers of the form (2^i)*(3^j)*(5^k) which are...
4年以上 前
解決済み
Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...
4年以上 前
解決済み
Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...
4年以上 前
解決済み
Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...
4年以上 前
解決済み
Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...
4年以上 前
解決済み
Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...
4年以上 前
解決済み
Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000
4年以上 前
解決済み
Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346
4年以上 前
解決済み
Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...
4年以上 前
解決済み
MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9
4年以上 前
解決済み
MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8
4年以上 前
解決済み
MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9
4年以上 前
解決済み
Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...
4年以上 前
解決済み
Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...
4年以上 前
解決済み
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
4年以上 前
解決済み
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
4年以上 前
解決済み
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
4年以上 前
解決済み
The Tower of Hanoi
In the <http://en.wikipedia.org/wiki/Tower_of_Hanoi Tower of Hanoi problem> with 3 rods (1, 2 & 3), the goal is to move a tower ...
4年以上 前
解決済み
Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....
4年以上 前
解決済み
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
4年以上 前