Risposto
Scatter3, insert dashed line downwards, and sideways
Here I assumed x, y, z are vectors of length "len". To draw a line joining each scatter point to the horizontal plane use: ...

quasi 10 anni fa | 0

| accettato

Risposto
Find a pair of elements in a 3d matrix
Note: if it's 512*512*2 (three dimensional), it's called tensor, not matrix. A way to do what you require would be to first d...

quasi 10 anni fa | 0

Risolto


Check if a rotated array was originally sorted
Suppose a sorted array is rotated at some pivot unknown to you. For example, |[0 1 2 4 5 6 7]| might become |[5 6 7 0 1 2 4]|. ...

quasi 10 anni fa

Risposto
Need help putting multiple values in Legends
Here I assumed, as it seems from your question, that T is a 1xm vector and that Nl is a 6xm matrix. First I'd define an empty...

quasi 10 anni fa | 0

Risposto
How to arrange local stiffness matrix to global stiffness matrix
I strongly suspect there is something wrong with your scheme in the image attached. The stiffness matrix #2 (marked in red), fo...

quasi 10 anni fa | 4

Risolto


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

quasi 10 anni fa

Risposto
how to find values of X and Y that satisfy condition Z(X,Y)>a
Is it something like this you're looking for? function [vec_pairs, num_pairs] = find_greater(X, Y, a) len_X=length(X); ...

quasi 10 anni fa | 0

Risposto
How to solve a Riccati Control (differential) Equation?
You don't need to solve a differential equation. "Steady-state" means the solution (here, the matrix *S*) remains _constant_, wh...

quasi 10 anni fa | 0

Risolto


Simpsons's rule (but not Homer Simpson)
I wonder what Homer Simpson would have thought of Simpson's rule? Somehow I doubt his thoughts would have included the phrase Ne...

quasi 10 anni fa

Risolto


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

quasi 10 anni fa

Risolto


Produce a Fibonacci sequence
Construct a diagram that generates the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34.....up to 377 The Fibonacci sequ...

circa 10 anni fa

Risolto


Make a low pass filter
Make a first order low pass filter that will filter out the high frequency oscillations for the given input signal. The cut-off ...

circa 10 anni fa

Risolto


Compute the step response of a DC motor
Compute the step response of a DC motor shown below <<http://blogs.mathworks.com/images/seth/cody/dc-motor.png>> The param...

circa 10 anni fa

Risolto


Model a simple pendulum
Model a simple pendulum of length 200cm with bob of mass 100g and plot the position in degrees. The pendulum starts at 30 degree...

circa 10 anni fa

Risolto


Model a falling body
An object is falling freely from a height of 22 meters under the force of gravity. <<http://blogs.mathworks.com/images/seth/c...

circa 10 anni fa

Risolto


Model a mass spring system
Model an ideal mass-spring system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/images/se...

circa 10 anni fa

Risolto


Add damping to a mass spring system
Model an ideal mass-spring-damper system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/im...

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...

circa 10 anni fa

Risolto


Add offset to a signal
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...

circa 10 anni fa

Risolto


Produce a sine wave
Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

circa 10 anni fa

Risolto


Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...

circa 10 anni fa

Risolto


Is my wife right?
Regardless of input, output the string 'yes'.

circa 10 anni fa

Risolto


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

circa 10 anni fa

Risolto


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

circa 10 anni fa

Risolto


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

circa 10 anni fa

Risolto


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

circa 10 anni fa

Carica altro