Resuelto


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

más de 14 años hace

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

más de 14 años hace | 0

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

| aceptada

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

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

más de 14 años hace | 0

Pregunta


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

más de 14 años hace | 2 respuestas | 0

2

respuestas

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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.

más de 14 años hace

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

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

más de 14 años hace | 24

| aceptada

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

más de 14 años hace | 1

| aceptada

Resuelto


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

más de 14 años hace

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

más de 14 años hace | 0

| aceptada

Cargar más