Yutaka Yamada
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...
3년 초과 전
문제를 풀었습니다
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
3년 초과 전
문제를 풀었습니다
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
3년 초과 전
문제를 풀었습니다
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
3년 초과 전
문제를 풀었습니다
Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...
3년 초과 전
문제를 풀었습니다
Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.
3년 초과 전
문제를 풀었습니다
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
3년 초과 전
문제를 풀었습니다
Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.
3년 초과 전
문제를 풀었습니다
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
3년 초과 전
문제를 풀었습니다
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
3년 초과 전
문제를 풀었습니다
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...
3년 초과 전
문제를 풀었습니다
Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...
3년 초과 전
답변 있음
Plotting Curves Python: How to include step size
Hi, please try below. import matplotlib.pyplot as plt import numpy as np t = np.arange(-1.2, 1.2, 0.01) x1 = np.exp(t) x2 =...
Plotting Curves Python: How to include step size
Hi, please try below. import matplotlib.pyplot as plt import numpy as np t = np.arange(-1.2, 1.2, 0.01) x1 = np.exp(t) x2 =...
3년 초과 전 | 2
| 수락됨
답변 있음
readtable is not reading the time 12:00:00 AM?
Hi, Recentely I've tried similar thing. Please try below code. opts = detectImportOptions('readTime.xlsx'); opts.VariableTyp...
readtable is not reading the time 12:00:00 AM?
Hi, Recentely I've tried similar thing. Please try below code. opts = detectImportOptions('readTime.xlsx'); opts.VariableTyp...
3년 초과 전 | 0
답변 있음
How to read time as string data from excel file
How about the below code if you want to use readtable? opts = detectImportOptions('readTime.xlsx'); opts.VariableTypes = 'date...
How to read time as string data from excel file
How about the below code if you want to use readtable? opts = detectImportOptions('readTime.xlsx'); opts.VariableTypes = 'date...
3년 초과 전 | 1
| 수락됨
답변 있음
HYSYS optimisation using MATLAB
Hi, I don't know much about HYSYS. But the below article would be good reference as for the optimization of process simulation. ...
HYSYS optimisation using MATLAB
Hi, I don't know much about HYSYS. But the below article would be good reference as for the optimization of process simulation. ...
3년 초과 전 | 0
| 수락됨
답변 있음
Array indices must be positive integers or logical values.
It seems that Elev1 is the initial elevation. I think it's better to get the array size first like below. Otherwise the array s...
Array indices must be positive integers or logical values.
It seems that Elev1 is the initial elevation. I think it's better to get the array size first like below. Otherwise the array s...
3년 초과 전 | 0
| 수락됨
답변 있음
凡例のフォントを指定する方法
こちらのリンクを見た感じでは、凡例に対して以下のような形で指定できるのではないかと思います。 ご質問の意図と違っているかもしれませんが、試してみていただければと思います。 lgd = legend('a','b','c'); lgd.FontName...
凡例のフォントを指定する方法
こちらのリンクを見た感じでは、凡例に対して以下のような形で指定できるのではないかと思います。 ご質問の意図と違っているかもしれませんが、試してみていただければと思います。 lgd = legend('a','b','c'); lgd.FontName...
3년 초과 전 | 2
| 수락됨
문제를 풀었습니다
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
거의 4년 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
거의 4년 전