Solved


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

14 years ago

Answered
writing strrep statement within a loop
Did you study the examples of strrep in the online help? I'm not sure I understand what you want to achieve with strrep. I g...

14 years ago | 0

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

14 years ago

Solved


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

14 years ago

Solved


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

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

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

14 years ago

Solved


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

14 years ago

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

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

14 years ago

Solved


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

14 years ago

Answered
problem in saving array in txt file
'%c' is single chracter. Try '%s'.

14 years ago | 0

| accepted

Answered
reading numbers from an unknown format
Try c4 = transpose( [ arrayl{:,4} ] ); c5 = transpose( [ arrayl{:,5} ] ); or are the data in a textfile?

14 years ago | 1

| accepted

Solved


Function composition - harder
Write a function that accepts an arbitrary number of function handles f_1, f_2, ..., f_n and returns the composition h. That is,...

14 years ago

Solved


Function composition
Write a function that accepts two function handles f and g and returns the composition h. That is, h = (f o g)(x) = f(g(x)) ...

14 years ago

Solved


middleAsColumn: Return all but first and last element as a column vector
Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

14 years ago

Answered
is there a way to label cells in the workspace?
'<3x1> cell' is shown in the Value column and "Joe", if that is the name of the variable is shown in the Name column. Right-...

14 years ago | 0

Question


How to Migrate the Preferences Folder and its Files when updating Matlab?
*Background:* In the R2012a online documentation there is a section with the heading, "Process MATLAB Uses to Create and Migrate...

14 years ago | 2 answers | 0

2

answers

Solved


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

14 years ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

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

14 years ago

Answered
Timers and procedures which are called when a certain events occur in Matlab
This is two questions. The answer two both is YES. You will find better answers in the documentation. To start search for # ...

14 years ago | 0

Answered
if statement
There are two problems with your code: # "==" doesn't work well with floating point precision (EDIT: understatement) # "if (...

14 years ago | 0

| accepted

Answered
Read a column which has comma seperated values
The problem is most likely a 'thousand separator'. "[...]contains number separated with 'comma'." That is not two number separat...

14 years ago | 0

Solved


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

14 years ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

14 years ago

Answered
How can I use apostrophe as a text in legend?
Double apostrophe: legend('Jane''s weight')

14 years ago | 24

| accepted

Answered
ASCII (.csv) file data extraction
There are several alternatives. However, if the file fits in memory I would # read the complete file with textscan (textread...

14 years ago | 1

| accepted

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

14 years ago

Answered
is it possible to run two programs at the same time?
See my question <http://www.mathworks.se/matlabcentral/answers/15800-is-it-a-good-idea-to-run-matlab-in-the-background-as-a-loca...

14 years ago | 0

| accepted

Load more