답변 있음
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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 0

답변 있음
| -1 | = 1 how to do in matlab
abs(-1)

11년 초과 전 | 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년 초과 전 | 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년 초과 전 | 1

| 수락됨

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

11년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 0

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

11년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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...

거의 12년 전 | 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년 전 | 답변 수: 1 | 0

1

답변

답변 있음
weird results with relational operation ==
isequal(xchk,X3) ans = 0 isequal(xchk, round(1000*X3)/1000 ) ans = 1

12년 초과 전 | 1