Answered
xlswrite dropping strings
It's hard to tell without more detail on the contents of result.xls_full_data. However, if your strings are nested in a cell in...

13 years ago | 1

Answered
Need to make a 4D plot (3D + Colour)
I take it that the four dimensions are the four different indices you are using to index your signals? If so, why would you trea...

13 years ago | 0

Answered
MATLAB OOP - calling an object method from within another object method
One way is via composition: (see <http://en.wikipedia.org/wiki/Object_composition>) Let your two classes be class A and class...

13 years ago | 0

| accepted

Answered
How do you use the else if commands to alter variables in matrices?
It helps to realize that the sum of the indices is constant along anti-diagonals in a matrix (while the difference is constant a...

13 years ago | 0

Answered
Need some help
One way to accomplish what I think you're trying to do in items (1) and (2) of your original question is the following: % ro...

13 years ago | 0

Answered
plotting time series
Just change the assignment in your loop from ts1{i} = timeseries(x{i},1:length(x{i})); to ts1(i) = timeseries(x{i},...

13 years ago | 1

| accepted

Answered
Reformat data
Assuming that your data lives inside someTextFile.txt, that the values in the data set are delimited/separated by tabs (\t) or s...

13 years ago | 0

| accepted

Answered
contour plot in polar coordinates
It may be helpful to know that the line of code z = r-t defines the surface as a function of r and t. For example, if y...

13 years ago | 0

Answered
CSV file import with timestamp
The assignment fmt = %f "%u-%u-%u %u:%u:%u+%u" %u should be fmt = '%f "%u-%u-%u %u:%u:%u+%u" %u' (notice the sin...

13 years ago | 1

Answered
How to divide images into blocks of size 8 * 8
Replace g = mat2cell(i,[a,a],[b,b],3); with g = mat2cell(i,8*ones(1,size(i,1)/8),8*ones(1,size(i,2)/8),3); eff...

13 years ago | 2

Answered
Zooming a portion of figure in a figure.
Below is an example that zooms in on a portion of a curve and displays the zoomed in version in the same figure window without u...

13 years ago | 43

| accepted

Answered
3D surface (sine wave)
One possibility is to use the following: k1 = 1; %how many times you want wave to oscillate in x-dir k2 = 0; %how many t...

13 years ago | 0

| accepted

Answered
how to create curve non linear
Not sure I entirely understand your question, but if you're trying to create a nonlinear curve that passes through the two point...

13 years ago | 0

Answered
convert complex matrix to 3D plot
Create a domain [X,Y] = meshgrid(linspace(-pi,pi)); Evaluate f(z) = log(z) for complex z. F is a complex matrix that rep...

13 years ago | 1

Answered
Variable "ON"
First, create C: C = zeros(size(B)); Then use this command to assign elements of B associated with nonzero A values int...

13 years ago | 1

| accepted

Submitted


Color code a scatter plot
Color code a scatter plot in one, two, or three dimensions according to scalar function of the data.

14 years ago | 1 download |

3.0 / 5
Thumbnail