Answered
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 ago | 0

Answered
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 ago | 0

Answered
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 ago | 0

| accepted

Answered
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 ago | 0

Answered
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 ago | 0

| accepted

Answered
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 ago | 0

| accepted

Answered
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 ago | 3

| accepted

Answered
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 ago | 0

Answered
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 ago | 0

Answered
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 ago | 0

Answered
| -1 | = 1 how to do in matlab
abs(-1)

11 years ago | 1

| accepted

Answered
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 ago | 0

| accepted

Answered
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 ago | 1

| accepted

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

11 years ago | 1

| accepted

Answered
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 ago | 12

| accepted

Answered
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 ago | 0

| accepted

Answered
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 ago | 0

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

11 years ago | 0

| accepted

Answered
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 ago | 0

Answered
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 ago | 8

| accepted

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

12 years ago | 1

| accepted

Question


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 ago | 1 answer | 0

1

answer

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

12 years ago | 1