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

oltre 10 anni fa | 0

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

oltre 10 anni fa | 0

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

oltre 10 anni fa | 0

| accettato

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

oltre 10 anni fa | 0

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

oltre 10 anni fa | 0

| accettato

Risposto
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_...

oltre 10 anni fa | 0

| accettato

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

oltre 10 anni fa | 3

| accettato

Risposto
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,:}}...

oltre 10 anni fa | 0

Risposto
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'); ...

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 1

| accettato

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 1

| accettato

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

quasi 11 anni fa | 1

| accettato

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

quasi 11 anni fa | 12

| accettato

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 8

| accettato

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

circa 11 anni fa | 1

| accettato

Domanda


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

oltre 11 anni fa | 1 risposta | 0

1

risposta

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

quasi 12 anni fa | 1