統計
All
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年 前

