回答済み
The code below shall be used to calculate numerically the integral of f(x), using rectangles. The while loop ' error> er_user_max' seems not to evaluate the logical operation properly and changes the row dimension of matrix 'save_area'.
_Way_ too much code instead of concentrating on the concern and put the question in the body of the text and make the title just...

約11年 前 | 0

回答済み
How I can get the data that meets the condition strcmp
First, I'd convert the column from string to numeric and then to get the unique values of the time vector, simply use *unique* ...

約11年 前 | 2

| 採用済み

回答済み
How to specifiy section of Array to write to certain cells in Excel file
Sure, but to address array elements in Matlab you don't use Excel spreadsheet notation; simply the range expression you want. P...

約11年 前 | 0

| 採用済み

回答済み
using plot w/ n=3 y axes
You don't show the pertinent issue of the *plotyy* call you use but hAx=plotyy(x, y1, x, [y2 y3]); will put the first on...

約11年 前 | 0

| 採用済み

回答済み
i not able to find error..not getting right plot
for x=0.01:.1:6 T=[]; ... T=[T P*Q*R]; end plot(g,T) You wipe out _T_ every pass thru the loop so the ...

約11年 前 | 0

| 採用済み

回答済み
How do i refer to an entire row in a matrix, while only specifying one variable in that row?
Unfortunately, here's where Matlab syntax of only being able to return and use the first argument inline hurts (albeit I don't h...

約11年 前 | 1

| 採用済み

回答済み
Trying to understand the MATLAB fft example and how to determine amplitudes of frequencies?
# It's not mandatory but FFT is fastest for powers of 2. That used to be much more of a significant issue than now w/ the adven...

約11年 前 | 0

| 採用済み

回答済み
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
Again the complaint of excessive white space (futile, I know :( ).

約11年 前 | 9

回答済み
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
Repeated bug report -- the link to Answer or Question if edited is broken when displays *Last Activity Edited by ___* thi...

約11年 前 | 0

回答済み
How to plot cell arrays in a for loop?
for k=1:numel(supportedFiles) dat=importdata(supportedFiles(k).name); figure % presume want a new figure for each f...

約11年 前 | 0

回答済み
sort( ) do not work (or?)
Both _are_ sorted, but as the quotes around the data show the data are stored as cell strings so it's in ASCII order, not numeri...

約11年 前 | 2

| 採用済み

回答済み
about cat function in matlab
doc colon % can (and will)...

約11年 前 | 1

| 採用済み

回答済み
Plotting 3 sets of data with error bars in different colors
errorbar(x,y1,ey1,'.k') hold on errorbar(x,y2,ey2,'.r') errorbar(x,y3,ey3,'.b') Why didn't you change the color if...

約11年 前 | 0

回答済み
Sample from the previous sample, whole rows.
Your second is simply another way for writing m2=m1(randperm(1000),:) If you're not regenerating m1 but simply rearrangi...

約11年 前 | 0

回答済み
How to pass function input as table name?
Use a cell string (see the example at _"Index Using a Logical Expression"_ which shows both a logical and a variable reference w...

約11年 前 | 2

回答済み
Subplot/Figure with parameters
How about sotoo-- for i=1:3,hAx(i)=subplot(2,3,i);end % create the 2x3 axes set(hAx(1),'xtic...

約11年 前 | 0

| 採用済み

回答済み
change x axis in a plot
Convert the times to date numbers and plot against them (or compute from the sampling time the locations in the vector that are ...

約11年 前 | 0

回答済み
plotting the following in matlab impossible?
dn=datenum(Rodtime); % convert to date num's plot(dn,RPeakAmplitude1) datetick('x') Adjust x limits, tick spacing as ...

約11年 前 | 0

回答済み
Reading excel data from file and using datetick
Dates were read as numeric Excel dates; not as string values. See <http://www.mathworks.com/help/matlab/ref/exceltime.html ex...

約11年 前 | 0

| 採用済み

回答済み
Time series plot: put YYYYMM on x-axis?
>> dn=datenum(1926,7+[0:(2014-1926)*12+5].',1); >> datestr([dn(1));dn(end)]) ans = 01-Jul-1926 01-Dec-2014 >> y=rand(size...

約11年 前 | 0

| 採用済み

回答済み
Error using fwrite Invalid file identifier. Use fopen to generate a valid file identifier- eventhough fid is positive
... filename=['Base_',num2str(k),'.yml']; fidw= fopen(filename,'w') for i = 1:Length fidw= fopen(filename,'w') ...

約11年 前 | 0

| 採用済み

回答済み
YTickLabel positioning - labels between ticks
Use *text* instead of tick labels for this... hAx=axes; set(hAx,'ylim',[0 3],'ytick',[0:3],'yticklabel',[]) text(-0.0...

約11年 前 | 2

回答済み
Read multiple text files and store data
my_files = dir('*.txt'); ... for k = 3:N_files _"(k start from 3 because, when I read the files, the first two are "....

約11年 前 | 0

回答済み
I am trying to sort the output data, I need a help to write data into excel file using for loop.
See the manner in which the sequential file names are generated in <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequenc...

約11年 前 | 0

| 採用済み

回答済み
How to use fscanf in matlab to read any element of a matrix?
To not read the third column (which I presume is the answer to Stephen's logical question) you've got to "tell" the i/o routines...

約11年 前 | 1

| 採用済み

回答済み
Need to set a custom tick label - Bar chart - Numeric values for 'xticklabel' but last tick needs to be alpha characters example - 1,2,3,4,5,6,OAL - How to do
set(gca,'xticklabel',[num2str([1:6].'); 'OAL']) NB: are column vector. *ERRATUM* Account for differing string lengths...

約11年 前 | 0

回答済み
Using textscan wisely, different data type
Presuming the file is regular in format, something on the lines of fmt=[repmat('%f',1,7) '*%s ;']; % format string fid=...

約11年 前 | 0

回答済み
"xlswrite" Generates A Negative Number for This Line
It's a fignewton of how Excel interprets the string; enclosed in the parentheses it apparently tries to convert to a numeric val...

約11年 前 | 0

回答済み
Perform Operation Only on Specified Rows.
Warning: air code; untested... k=0; % row counter (or compute on fly from i,j, your choice...) L=size(A,1); for i = ...

約11年 前 | 0

回答済み
What is the correct file extension for function "importdata" working properly?
If this is indeed reproducible and can be absolutely confirmed to be the file name extension only, it's a bug. Submit a bug rep...

約11年 前 | 0

さらに読み込む