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

12 years ago | 0

| accepted

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

12 years ago | 14

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

Solved


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

12 years ago

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

12 years ago | 0

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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.

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Load more