回答済み
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, ...

14年以上 前 | 1

解決済み


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

14年以上 前

回答済み
Changing the figure font
x = 1:10; plot(x,'LineWidth',4)

14年以上 前 | 0

| 採用済み

回答済み
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...

14年以上 前 | 0

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

14年以上 前 | 0

回答済み
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...

14年以上 前 | 0

解決済み


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

14年以上 前

解決済み


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

14年以上 前

解決済み


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

14年以上 前

解決済み


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

14年以上 前

解決済み


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

14年以上 前

解決済み


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

14年以上 前

回答済み
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...

14年以上 前 | 1

回答済み
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 ...

14年以上 前 | 0

回答済み
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') ...

14年以上 前 | 0

| 採用済み

回答済み
Assigning a value to 0's
Since ColumnA is a column, you can do ColumnA(ColumnA==0) = nan

14年以上 前 | 0

| 採用済み

回答済み
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...

14年以上 前 | 0

回答済み
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...

14年以上 前 | 1

回答済み
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

14年以上 前 | 0

| 採用済み

回答済み
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...

14年以上 前 | 0

| 採用済み

回答済み
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

14年以上 前 | 0

回答済み
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...

14年以上 前 | 0

回答済み
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 ...

14年以上 前 | 0

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

14年以上 前 | 0

回答済み
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...

14年以上 前 | 0

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

14年以上 前 | 0

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

14年以上 前 | 0

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

14年以上 前 | 0

回答済み
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)...

14年以上 前 | 0

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

14年以上 前 | 2

| 採用済み

さらに読み込む