답변 있음
how do you print the counter value in an input statement?
Use |sprintf|, e.g., input(sprintf('please enter wall #%d U-factor:',k))

대략 14년 전 | 0

| 수락됨

답변 있음
Efficient Row x Collumn multiplication
sum(A'.*B)

대략 14년 전 | 1

| 수락됨

답변 있음
dir() function not working?
You need to use oldFileName = files(k).name see http://www.mathworks.com/help/techdoc/ref/dir.html

대략 14년 전 | 0

| 수락됨

답변 있음
Butterworth filter
Butterworth filter is a part of Signal Processing Toolbox. If you type ver in your command line, can you see Signal Proc...

대략 14년 전 | 0

답변 있음
frequency estimation
If you have Signal Processing Blockset or DSP System Toolbox, you can use the FFT block http://www.mathworks.com/help/toolbox...

대략 14년 전 | 1

| 수락됨

답변 있음
Convert a column of dates
try |cellfun| cellfun(@datenum,... see the doc doc cellfun

대략 14년 전 | 0

| 수락됨

답변 있음
How can I put a line into an existing subplot
Do you have to use |line|? You can try plot(allAxes(6),[a a],[b b]);

대략 14년 전 | 1

답변 있음
Insert Degree Symbol in Axes Title
By default, |title('20^{\circ}')| should work. If not, you can do title('20^{\circ}','Interpreter','tex')

대략 14년 전 | 6

답변 있음
Folder names in MATLAB project
Those are folders for MATLAB class files. Take a look at this documentation http://www.mathworks.com/help/techdoc/matlab_oop/...

대략 14년 전 | 2

| 수락됨

답변 있음
overwrite a text file with other data
Use 'w' option to open the file fid=fopen('testdata','w'); fprintf(fid,'%d %d %d',3,6,9); fclose(fid); For details...

대략 14년 전 | 0

답변 있음
little problem in plotting a signal. Both x, y has the same lenght but is not plotting correctly
Yes you don't need to write the loop, if you mean for imaginary part, then it is R = 1i*Tc*sinc(f.*Tc/2).*sin(pi*f.*Tc/2) ...

대략 14년 전 | 0

답변 있음
little problem in plotting a signal. Both x, y has the same lenght but is not plotting correctly
I don't think |a| is the issue here. In your R(a), do you mean pi instead of i for the first term? BTW you should be able to ...

대략 14년 전 | 0

답변 있음
How can I select lines in a subplot and delete them?
If you don't need to automate the process, it's actually easier to do from the figure window. Just click the arrow on the toolba...

대략 14년 전 | 1

답변 있음
How to close Simulink model subsystems
doc bdclose doc close_system

대략 14년 전 | 0

답변 있음
Solving for a single unknown (non-linear equation)
Move 6.2 to the right side of the equation and then use |fzero|. doc fzero for example, to solve x+1 = 2 fzero(@(x)...

대략 14년 전 | 0

답변 있음
how sort just nonzero values?
Do you want to keep all zeros at the original location? If so c = [8 4 5 1 0 0 0]; c(c~=0) = sort(c(c~=0));

대략 14년 전 | 0

| 수락됨

답변 있음
file management
You can use |dir| to read in the file listing in the current directory. Then you can use |input| to get the the file name from c...

대략 14년 전 | 0

답변 있음
Help!!!!!!!! How to replace all the negative values in an array with zeros?
Did you delete your original question? I answered this several days ago. Please do not delete your question. Instead, if the ans...

대략 14년 전 | 2

| 수락됨

답변 있음
resize of axes
There are many functions doc xlim doc ylim doc axis

대략 14년 전 | 0

답변 있음
Rather trivial question
Use |...| For example t = 1 + ... 2

대략 14년 전 | 0

| 수락됨

답변 있음
HOW TO PLOT A CHIRP SIGNAL WITH BIDIRECTIONAL SWEEP
You can connect two signals together. Say you want to sweep from 0 to 100 Hz in 1 seconds and then sweep down. T1 = 1; F...

대략 14년 전 | 0

| 수락됨

답변 있음
Function Error not understood
You may want to use |X.^n| to achieve element-wise operation

대략 14년 전 | 0

| 수락됨

답변 있음
Column Circulant Matrix
gallery('circul',[1 2 3])' You can then take the first L columns

대략 14년 전 | 0

답변 있음
printing value of a variable in a plot at some fixed coordinates
You can use |text| with |num2str| or |sprintf| doc text doc num2str doc sprintf for example text(x,y,sprintf(...

대략 14년 전 | 0

| 수락됨

답변 있음
Matrix division to solve Ax=b
Use x = a\b see the documentation doc mldivide doc mrdivide

대략 14년 전 | 0

답변 있음
index out of bounds because numel(c)=2
You have an issue with your algorithm. You are growing your c and d at each iteration. When j is 2, it never went into the part ...

대략 14년 전 | 0

답변 있음
Pls help me generate circulant matrix
You may want to use M:-1:M/2 in your code, or something like that. M:M/2 returns an empty vector so there is n...

대략 14년 전 | 1

| 수락됨

답변 있음
Matrix Input
You can either save the matrix into a variable and then pass that variable to |input|, or write matrix at the prompt using delim...

대략 14년 전 | 0

| 수락됨

답변 있음
To read a text file using matlab
Use |fopen| to open the file and then use |fscanf| or |fgetl| to read in the content. You can also use |fread|. For example, the...

대략 14년 전 | 1

| 수락됨

답변 있음
How to plot 3D data on a plane by color
You can also try |image| or |imagesc|. doc image doc imagesc

대략 14년 전 | 0

더 보기