Feeds
문제를 풀었습니다
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...
9년 초과 전
질문
"Insufficient number of outputs from right hand side of equal sign to satisfy assignment"
Why is the following wrong: myNum1=[1,2]; [a,b]=myNum1(:); myCell2={'a',1}; [a,b]=myCell2(:); and t...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Why didn't this 'try.. catch' work?
If at the prompt I enter anything other than a numerical value or previously defined variable, the 'try.. catch' block does not ...
9년 초과 전 | 답변 수: 2 | 1
2
답변질문
fscanf formatspec behaving not as expected
I have a text file which looks like this (attached): 1 2 3 4 a b c I then do this: >> fid=fopen('testD...
9년 초과 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
10년 초과 전
문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
10년 초과 전
문제를 풀었습니다
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
10년 초과 전
문제를 풀었습니다
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
10년 초과 전
문제를 풀었습니다
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 ...
10년 초과 전
문제를 풀었습니다
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:...
10년 초과 전

