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

más de 14 años hace | 1

Resuelto


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

más de 14 años hace

Respondida
Changing the figure font
x = 1:10; plot(x,'LineWidth',4)

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

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

más de 14 años hace | 1

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

más de 14 años hace | 0

Respondida
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') ...

más de 14 años hace | 0

| aceptada

Respondida
Assigning a value to 0's
Since ColumnA is a column, you can do ColumnA(ColumnA==0) = nan

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

Respondida
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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

Respondida
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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 2

| aceptada

Cargar más