Feeds
답변 있음
'Cannot call or index into a temporary array' error message when setting up a set of coupled odes for ode45.
The problem is that when you call y(1) that creates a temporary array which you cannot index into. In order to get the value in ...
'Cannot call or index into a temporary array' error message when setting up a set of coupled odes for ode45.
The problem is that when you call y(1) that creates a temporary array which you cannot index into. In order to get the value in ...
대략 7년 전 | 1
답변 있음
Apply some code on this array
Looping through S and creating a temporary array every 5 values should do the trick. for i=1:5:length(S) temp=S(i:i...
Apply some code on this array
Looping through S and creating a temporary array every 5 values should do the trick. for i=1:5:length(S) temp=S(i:i...
대략 7년 전 | 0
| 수락됨
답변 있음
How to make a smoother pdf plot?
Your X values are out of order causing the graph to look strange. If you were to sort those values it will help smooth out the g...
How to make a smoother pdf plot?
Your X values are out of order causing the graph to look strange. If you were to sort those values it will help smooth out the g...
대략 7년 전 | 0
문제를 풀었습니다
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
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 ...
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
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:...
7년 초과 전


