Réponse apportée
A little bit tricky 2d plots
1. plot([A B C]); 2. plotyy(X1,[A B],X2,C); but because MATLAB always do the x axis from smallest to largest, ...

plus de 14 ans il y a | 1

A résolu


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

plus de 14 ans il y a

Réponse apportée
Changing the figure font
x = 1:10; plot(x,'LineWidth',4)

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
An error at modulation process
It seems taht your evelope1 is derived from the input sound, while your car1 has the dimension of t, so the two don't match in s...

plus de 14 ans il y a | 0

Réponse apportée
3d-dwt
You may also find the following demo useful http://www.mathworks.com/products/wavelet/demos.html?file=/products/demos/shippin...

plus de 14 ans il y a | 0

Réponse apportée
Making function to calculate value when user inputs date
I think you need more information. Given only month and date, how can you figure out the weekday information? Or is it for a giv...

plus de 14 ans il y a | 0

A résolu


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

plus de 14 ans il y a

A résolu


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

plus de 14 ans il y a

A résolu


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

plus de 14 ans il y a

A résolu


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

plus de 14 ans il y a

A résolu


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

plus de 14 ans il y a

A résolu


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

plus de 14 ans il y a

Réponse apportée
Function (File) Name Collision Warning
This is probably not the best solution but if you want to write a function named foo and you want to check if there is something...

plus de 14 ans il y a | 1

Réponse apportée
Error While Using the butter() function for IIR Butterworth filter design
This error ??? Attempt to execute SCRIPT butter as a function: E:\Academics\6th Sem\DSP Lab\Exp-8\butter.m indicates that ...

plus de 14 ans il y a | 0

Réponse apportée
Combining plots
You can try the following trick and see if it addresses your need. plot([0 1 nan 5 4],[0 1 nan 6 7],'DisplayName','data1') ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Assigning a value to 0's
Since ColumnA is a column, you can do ColumnA(ColumnA==0) = nan

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Integral Problem
The function f is complex valued so this may be tricky. The following page may be helpful http://www.mathworks.com/company/ne...

plus de 14 ans il y a | 0

Réponse apportée
MATLAB Editor Code Analyzer
The code analyzer cannot link 'x' to x because the former may just be a character and has nothing to do with the variable. You c...

plus de 14 ans il y a | 1

Réponse apportée
trying to make a random number sequence similar to an MLS sequence
a = 2*(randi(2,N,1)-1.5) or a = 2*(rand(N,1)>0.5)-1

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Having array trouble
Use cell save = [save; {child}] BTW I strongly suggest you to change the variable name, save, because it is one of MATLA...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
OOP: object setting property in a method without overriding object in workspace
In your combo1 method, do functon obj = combo1(obj) obj.pepperoni = 1; end

plus de 14 ans il y a | 0

Réponse apportée
HOW CAN I BROADEN MY SIN SIGNAL
Are you just looking for a sin that does not fall on an exact frequency sampling point so on the graph it seems having some kind...

plus de 14 ans il y a | 0

Réponse apportée
How do I generate a 5x5 plot using pcolor?
Just use A =[0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 1 1 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 ...

plus de 14 ans il y a | 0

Réponse apportée
Matrix manipulation using strcmp
a = {'OL',4;'WR',7;'OL',3;'AT',2} b = a(cellfun(@(x) strcmp(x,'OL'),{a{:,1}}),:)

plus de 14 ans il y a | 0

Réponse apportée
PWELCH vs PSD
Hi Kevin, I must somehow interpreted that your data is only 1024 samples long, so it is only enough for one window, that's wh...

plus de 14 ans il y a | 0

Réponse apportée
communication system
In general, for an FMCW radar, your modulation time is couple of times longer than the time corresponding to your maximum range,...

plus de 14 ans il y a | 0

Réponse apportée
generate chirp signal
You can check LinearFMWaveform in Phased Array System Toolbox http://www.mathworks.com/help/toolbox/phased/ref/phased.linearf...

plus de 14 ans il y a | 0

Réponse apportée
polyphase code
You can check the PhaseCodedWaveform in Phased Array System Toolbox http://www.mathworks.com/help/toolbox/phased/ref/phased.p...

plus de 14 ans il y a | 0

Réponse apportée
2nd order ODE using RK4
You can use |ode45|. You first define a function for your differential equation function dy = myode(t,y) dy = zeros(2,1)...

plus de 14 ans il y a | 0

Réponse apportée
xtick string with plot yy
replace the call to |plotyy| with following: h = plotyy(time,data1,time,data2); set(h,'XTickLabel',''); set(h,'XTick'...

plus de 14 ans il y a | 2

| A accepté

Charger plus