Respondida
Negative squareroot quick and easy
|sprint| is taking the real part of your complex result. Try: sprintf('R is negative. The square root of %1.1f is %1.1fi',R...

casi 10 años hace | 0

| aceptada

Respondida
Intepolate in 2D loop of points
If I were you, I would throw away the data that is not on the edges by finding the min and max of each of your columns of data p...

casi 10 años hace | 0

| aceptada

Respondida
Integral problem cant get it to give me a number
You should look at the documentation for |int|, the integration function specific to the Symbolic Toolbox. You will also need |s...

casi 10 años hace | 0

Respondida
ERROR for Matrix dimensions must agree.
Your variable |z| is not the same size as |Rf|, which matches the size of your inputs. The element-wise multiplication is happy ...

casi 10 años hace | 0

| aceptada

Pregunta


Simulink Model Callbacks - How can I tell if the user pressed Run or Build?
How can my model's InitFcn tell the difference between initializing after the user pressed Run versus after the user pressed Bui...

casi 10 años hace | 2 respuestas | 0

2

respuestas

Respondida
Current system time as a Timestamp
Try help now for details on MATLAB's function |now| that returns the current time as a DateNum. You might also be intere...

alrededor de 10 años hace | 3

| aceptada

Resuelto


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

alrededor de 10 años hace

Resuelto


Remove the small words from a list of words.
Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

alrededor de 10 años hace

Resuelto


Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

alrededor de 10 años hace

Resuelto


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

alrededor de 10 años hace

Resuelto


Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

alrededor de 10 años hace

Resuelto


Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

alrededor de 10 años hace

Resuelto


Extract leading non-zero digit
<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

alrededor de 10 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...

alrededor de 10 años hace

Resuelto


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

alrededor de 10 años hace

Respondida
plot the time series data
To set your own x-axis limits, use the |xlim| function. To control the labels on the x-axis, you need to set the |XTick| propert...

alrededor de 10 años hace | 0

Respondida
Split a vector into 2 vectors randomly
I think you will find the function |randperm| useful. You can use it to generate a random order for your 150 rows and then selec...

alrededor de 10 años hace | 2

| aceptada

Resuelto


Wheat on a chessboard pt 1
If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...

alrededor de 10 años hace

Resuelto


Pandigital number n°1 (Inspired by Project Euler 32)
A little warm-up to begin... An n-digit number is pandigital if it makes use of all the digits 1 to n exactly ONCE. For ex...

alrededor de 10 años hace

Resuelto


Golomb's self-describing sequence (based on Euler 341)
The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of natural numbers such that n appears exactly G...

alrededor de 10 años hace

Resuelto


Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

alrededor de 10 años hace

Resuelto


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

alrededor de 10 años hace

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

alrededor de 10 años hace

Resuelto


Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

alrededor de 10 años hace

Resuelto


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

alrededor de 10 años hace

Resuelto


Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

alrededor de 10 años hace

Resuelto


Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...

alrededor de 10 años hace

Resuelto


Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

alrededor de 10 años hace

Resuelto


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

alrededor de 10 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.

alrededor de 10 años hace

Cargar más