已回答
How to use the dot product within a loop to multiply a series of rows?!
V = rand(1,3) C = rand(13,3) dot(V,C(1,:)) dot(V,C(2,:)) for i = 1:length(C) d(i) = dot(V,C(i,:)); end ...

10 years 前 | 0

| 已接受

已回答
How can I import data from .csv file with numeric values and texts (with column headers) into MATLAB Workspace?
If you right click on the .csv file you can use the “Import Tool” which will help you through the import process. you will be ab...

10 years 前 | 14

已回答
how to add a frame to a video
Hi Sivakumaran, There are a couple of ways of doing this. - take a frame, add your watermark to it, save that frame, repea...

10 years 前 | 0

| 已接受

已回答
How to create two graphs in difference figure in one function?
Hi Samious, If you use the command figure you will get a new graph. function graph(a,b) x=a y=x^2 ...

10 years 前 | 0

| 已接受

已回答
When will Jacket be merged into Parallel Computing Toolbox?
One way would be to look at the Parallel computing toolbox release notes since R2012b. http://www.mathworks.nl/help/distcomp/...

10 years 前 | 0

已回答
Can somebody help me with this please. I'm stuck due to my limited knowledge on Matlab.
Hi Vidya, You can do a couple of things: - force the inputs to be a particular size so that they add up to 256. - given...

10 years 前 | 0

已回答
How can i add dataset function back in 2013a
Dataset still exists in MATLAB, however you need the Statistics toolbox (this has always been the case). In newer releases th...

10 years 前 | 0

已回答
Code help for data extraction
Hi Nakarsha, There are multiple ways of doing this. Use the Import Tool - in MATLAB, select the text file, right click, im...

10 years 前 | 0

已回答
Can somebody help me with this please. I'm stuck due to my limited knowledge on Matlab.
if you type: size(IDiPWi_double) size(fi_db) You will notice that the sizes do not match and the function needs them...

10 years 前 | 0

已回答
Matlab 2014a instalation on MacOSX Mavericks 10.9.1
Open your system preferences, select privacy settings, and allow the program to be installed even if it is not on itunes. 

10 years 前 | 0

已解决


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

10 years 前

已回答
Dicom image reading help
You will need the Image Processing Toolbox. Here is a reference: http://www.mathworks.nl/help/images/ref/dicomread.html On th...

11 years 前 | 0

已解决


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...

11 years 前

已解决


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...

11 years 前

已解决


Check to see if a Sudoku Puzzle is Solved
*Description:* Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...

11 years 前

已解决


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...

11 years 前

已解决


Read a Soroban Abacus
*Description* The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...

11 years 前

已解决


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.

11 years 前

已解决


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

11 years 前

已解决


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

11 years 前

已解决


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...

11 years 前

已解决


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...

11 years 前

已解决


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

11 years 前

已解决


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

11 years 前

已解决


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...

11 years 前

已解决


Add two numbers
Given a and b, return the sum a+b in c.

11 years 前

已解决


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

12 years 前

已解决


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

12 years 前

已解决


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...

12 years 前

已解决


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 ...

12 years 前

加载更多