Answered
plot help
You can manually set the axis xlim([240 275])

14 years ago | 0

Answered
Solving for c in v(t,g,m,c) given intial v,g,m,t
Are you looking for a symbolic solution? If you want a numerical one, you can use |fzero| v = 28, g = 9.81, m =90, t =4; ...

14 years ago | 1

| accepted

Answered
how to test error
You ma be able to use |try/catch| http://www.mathworks.com/help/techdoc/ref/try.html

14 years ago | 0

| accepted

Answered
Close my terminal but keep matlab running on a remote Ubuntu
I normally use VNC for such purpose. I started a VNC server on the remote machine and then connect to it using a VNC client. Onc...

14 years ago | 0

Answered
String search
It is probably easier to write all lines that have the specific string into a new file so you don't have to worry about the file...

14 years ago | 2

Answered
Urgent: I dont have a clue how to merge to Matrices and split-up Arrays.
For part (a), you can do the following: DataA= [1 120 1 130 2 140 3 180 3 160]; DataB= [1 91 2 92 ...

14 years ago | 0

Answered
help installing dsp toolbox on existing MATLAB Version 7.10.0.499 (R2010a) for Mac OS X Version: 10.6.8
Does the instruction say that you will be able to see it using "ver"? This is not a toolbox from MathWorks so I don't think "ver...

14 years ago | 1

Answered
Rotation of a set of points onto the X axis
I'm not sure why you need to play with theta, unless you care about the orientation. If you just want the line to become horizon...

14 years ago | 0

Answered
From normal vector (and point) to 3D plane
Like Jan mentioned, the question you are asking does not have a unique solution, so you may want to clarify it a little bit. ...

14 years ago | 0

Answered
Get information of property type of object properties (i.e. 'dependent')
You can use meta class and access PropertyList http://www.mathworks.com/help/techdoc/ref/meta.class.html http://www.mathwo...

14 years ago | 1

| accepted

Answered
psd ----> spectrum psd?
You will replace line [Yxx,f] = psd(y,NFFT,fs,NFFT,NOVERLAP); with hspec = spectrum.welch('OverlapPercent',0,'Seg...

14 years ago | 0

Answered
psd ----> spectrum psd?
You need to replace |psd| call with corresponding |spectrum.psd| code. Here is an example showing how to use |spectrum.psd| to c...

14 years ago | 0

Answered
How to save these values in a matrix
Use a for loop and preallocate z, i.e., add z = zeros(91*91,2) at front and then replace the assignment to z with c...

14 years ago | 1

Answered
Copyfile without overwriting
I don't think you can do that with |copyfile|. You can do it with |fopen|, but you need to open it with option 'a', and then app...

14 years ago | 0

| accepted

Answered
Plotting lines from random number generators
I don't quite understand what you mean by plotting them as straight lines, do you want to connect them to the center? If so, jus...

14 years ago | 0

Answered
Using Variable Contents to Create Variable names
http://www.mathworks.com/matlabcentral/answers/19981-assigning-data-to-variable-names-in-a-vector-during-a-for-loop http://ww...

14 years ago | 0

Answered
random signal delay
There are two questions in your post so I'm not sure if I understand exactly what you look for. I'll include my thoughts below: ...

14 years ago | 0

Answered
Quickest way to get points in a matrix given two 1-D arrays?
A(sub2ind(size(A),B(:),C(:)))

14 years ago | 0

| accepted

Answered
switch
There are several examples in the documentation doc switch http://www.mathworks.com/help/techdoc/ref/switch.html

14 years ago | 0

Answered
cheby1
This is clearly explained in documentation. doc cheby1 http://www.mathworks.com/help/toolbox/signal/ref/cheby1.html |...

14 years ago | 0

Answered
Time Delay of Arrival
# record the data. # read the data into MATLAB # do a cross correlation between two channels and translate the lag to time ...

14 years ago | 0

Answered
how to take modulus?
abs(a)^2 or norm(a)

14 years ago | 0

| accepted

Answered
"Levelling" out a signal with moving average
Maybe you want to try |detrend|? doc detrend

14 years ago | 0

Answered
Why is vertcat slowing things down?
My 2 cents:: 1. You may want to preallocate the memory. The in each iteration, you just put the new data into corresponding s...

14 years ago | 1

| accepted

Answered
show same text on 2 lines without getting an error
Put ... at the end of the first line, something like a = 3 * ... 4;

14 years ago | 0

| accepted

Answered
Delay using FFT
I don't see anything obviously wrong in your code. I think the difference in the amplitude may just due to the fact that after t...

14 years ago | 0

| accepted

Answered
plot the following functions using axes that will produce a stright line
I don't quite understand what you mean by using axes. But if you use loglog(x,y) for the first function and semilo...

14 years ago | 0

Answered
Truncating Decimal Places
round(pi)

14 years ago | 2

Solved


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

14 years ago

Solved


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

14 years ago

Load more