已回答
Is there a way to filter in the frequency domain?
filtering in frequency domain is as you already suggested a multiplication. I would think that the most natural way to go about...

11 years 前 | 0

已回答
How to make a matrix from several column vectors
When you say "into one matrix" do you want a two dimensional matrix as Azzi proposed? If you want one long vector as the line ...

11 years 前 | 0

已回答
GUIDE MATLAB - Temporarily stopping the execution and reception of data from one program
I often use a simple and easy method of stopping functions.It is easiest and cleanest if you are say reading in a loop or someth...

11 years 前 | 0

| 已接受

已回答
stugeling with if statement displaying results
You are correct. It is how you compare x. The result will be a vector containing lots of false and maybe one true. If you change...

11 years 前 | 0

已回答
how to use arguments in freqz function of signal processing toolbox
It just means that the denominator in the filter equation is one, therefor typing freqz(h,1) is kinda misleading because h is of...

11 years 前 | 0

| 已接受

已回答
Continue with script despite an absent variable (error)?
I cannot see why matlab would throw an error with "do not exist" from your code, since you have already checked that 'CAN2_THMM_...

11 years 前 | 0

| 已接受

已回答
Functions: ans at end...where it is coming from?
It is because you are typing: >> MetricToImperial and nothing more. Since your are not assigning MetricToImperial ou...

11 years 前 | 3

| 已接受

已回答
Delete row from dataset array
test=cell(3,1); test{1}='row1'; test{2}='row2'; test{3}='row3'; %remove a row: test={test{2:end,:}}...

11 years 前 | 0

已回答
Reading data from a text file
perhaps you are using fscanf(fid,'%d') ? Try reading it as characters: fid=fopen('text.txt'); DATA=fscanf(fid,'%c'); ...

11 years 前 | 0

已回答
how to fix random seed in inbuilt ga in matlab
Create a seed and use that. init=100; mySeed=RandStream.create('mt19937ar','seed',init); now you can either use ...

11 years 前 | 0

已回答
| -1 | = 1 how to do in matlab
abs(-1)

11 years 前 | 1

| 已接受

已回答
eigenvalue matrix error subscript
in the last line your are trying to index K with K((lamda^2)+(n^2)) this turns out to be a negative number.

11 years 前 | 0

| 已接受

已回答
join numbers in vector
x=[13 30 44 12 44 23 12]; stringX=num2str(x); stringX=stringX(stringX~=' '); % remove the space x2=str2num(stringX);

11 years 前 | 1

| 已接受

已回答
Extend line plot to a Surface
x=10:-1:1; % your 2d_line x3d=repmat(x,[numel(x),1]); surf(x3d);

11 years 前 | 1

| 已接受

已回答
How to select particular rows from a large matrix ?
small example: x=zeros(6,6); x(:)=1:numel(x) x = 1 7 13 19 25 31 2 8 14 20...

11 years 前 | 12

| 已接受

已回答
Using 'If statements' and 'for loops', my matrix isn't populating properly!
its because of the return command. example for i=1:10 disp(i); return; end % correct version for ...

11 years 前 | 0

| 已接受

已回答
Finding points above half max of peak in 2D data
maybe this will help you on your way? x=rand(5,5); xMax=max(max(x)); idx=find(x> (xMax/2) ); %% or if u want r...

11 years 前 | 0

已回答
How do I find the greater minor number that is divisible by 'n'?
x=730-rem(730,7)

11 years 前 | 0

| 已接受

已回答
Coloring each line in a stairs graph with a different color
if instead return the plot values: [xx,yy]=stairs(cumVolume, prices(idx)) you can plot it multiple times using the ...

11 years 前 | 0

已回答
how can I convert cell2mat when the values are numbers with different number of figures
your problem is that the cell contains strings, and '1' and '23' does not have the same length, '23' is actually a 1x2 array of ...

11 years 前 | 8

| 已接受

已回答
i am getting 2 streams from convolutional encoder instead of one??
as far as i can see from the "doc poly2trellis" (type it in matlab command window) , it is correct that you get "two output stre...

11 years 前 | 1

| 已接受

提问


creating a vector from a(:) : b(:) , but one for each index without using loops.
I have two vectors a=[1,2,3] and b=[6,4,9]. My goal is to generate this(see below) without the use of foor loops (a single c...

12 years 前 | 1 个回答 | 0

1

个回答

已回答
weird results with relational operation ==
isequal(xchk,X3) ans = 0 isequal(xchk, round(1000*X3)/1000 ) ans = 1

12 years 前 | 1