回答済み
hello i have problem displaying the lowest value from comparation process.
Because you never found the minimum...if you want the global minimum in the end, then for fileidx = 1:numel(templatefiles) ...

約9年 前 | 0

| 採用済み

回答済み
??? Attempted to access y(2); index out of bounds because numel(y)=1. Error in ==> TrapecioF at 7 s1=s1+2*y(i);y=y(i);
y=input('Digitar los valor de y= '); ... for i=2:n-1 s1=s1+2*y(i); y=y(i); ... This code means your us...

約9年 前 | 0

| 採用済み

回答済み
How to obtain Equation from plotted curve?
Another poster had same (or close enough) question just the other day... <https://www.mathworks.com/matlabcentral/answers/344633...

約9年 前 | 0

回答済み
Is there a way to know how many hours or days we have spent coding on Matlab ?
I'm sure there are some system monitors that could do that...they'd have to be running as system service or such. You could a...

約9年 前 | 1

回答済み
I am facing the dimension error during generating the second order transfer function can any one help me please. i have attached the error pic and code as well.
|*ord2*| generates the _num,den_ for a system given the natural frequency wn (ωn) and damping factor z (ζ). It is not a vectori...

約9年 前 | 0

回答済み
Calculate mean of columns for a unique value of column variable?
>> [~,~,ib]=unique(A(1,:)); >> C=A(2,:); >> accumarray(ib,C,[],@mean) ans = 3.1667 3.0000 >> Unfortunatel...

約9年 前 | 0

回答済み
How to get the mean of a vector ?
M=mean(cbr.contrast); Field names are case sensitive in Matlab; it's _.Contrast_' *NB:* capitalization in the table of ...

約9年 前 | 0

| 採用済み

回答済み
Filtering out indices of vector A based on restrictions applied to vector B
ix=B<thresh; % logical addressing vector of the condition C=A(ix); % use it to access A you can,...

約9年 前 | 0

回答済み
Copy content of each rows into a new column
Not sure why, but >> ary{4}=ary(1:3).' ary = 'Hello' 'Hi' 'Good_Morning' {3x1 cell} >> ary{4} ans = ...

約9年 前 | 0

回答済み
why at the end of the program gg isnt equal to 0??
See the <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F <FAQ>> For your partic...

約9年 前 | 0

| 採用済み

回答済み
How to extract specific columns and rows from a large CSV file?
And, just for documentation, the above (essentially) written in Matlab using the previously-mentioned looping construct...it use...

約9年 前 | 0

回答済み
how to plot graph
u=[-200:200].'; % presume all elements are present histogram(A(:),[u-0.5;u(end)+0.5]) % histogra...

約9年 前 | 0

| 採用済み

回答済み
How to get data in excel from a plot of multiple plots ?
xlswrite('YourExcelFile.xls',[hft1(:) hft2(:) hft3(:) hft4(:) hft5(:)]) This begs the question of how you got the sequentia...

約9年 前 | 0

回答済み
How to Compare a vector with for loop iterations in a nested if statement in a for loop
... for i= 3:length(DeltaO2Concentration) if ismember(i,USER_INPUT_VECTOR) % USER_INPUT_VECTOR is your list variable,...

約9年 前 | 0

| 採用済み

回答済み
How to extract specific columns and rows from a large CSV file?
Alternative solution albeit not totally Matlab, it worked pretty well here it seems-- Rather than trying to parse the humongo...

約9年 前 | 0

回答済み
Plotting two x axis in one plot, but both at the bottom.
See answer I gave <https://www.mathworks.com/matlabcentral/answers/343864-how-can-i-plot-a-bar-chart-with-4-different-y-axis-and...

約9年 前 | 1

回答済み
Plotting a square wave
If you have Signal Processing TB, then use |*square*| function. Without, you'll have to compute the transition spacings ( |*lin...

約9年 前 | 0

回答済み
How to change number of ticks, tick position, and value on plot?
Set the tick values and the limits, not tick labels. Tick labels just write the label values on the tick marks that have been o...

約9年 前 | 1

回答済み
Mean over arrays with different length
In case Guillaume isn't back for a while, his response was going to be M3=mean([resample(M2(:,2),length(M1),length(M2)) M1(...

約9年 前 | 0

回答済み
how to convert power-law plot to loglog plot
ezplot('2000 * x^(-.5)') set(gca,'yscale','log','xscale','log') xlim([0.1 10]) or, of course, use |*loglog*| fnE...

約9年 前 | 0

| 採用済み

回答済み
Changing the polynomial coefficients
Syntax problem--analgously to |structure| dynamic field names, the string after the dot is interpreted as literal character stri...

約9年 前 | 0

| 採用済み

回答済み
Axis interval of scatter plot
Except ticks are property of the axes and |*gscatter*| as other plotting routines returns handle(s) to the object(s) it creates,...

約9年 前 | 0

| 採用済み

回答済み
Finding frequency of repetition of a data point in a pattern
(Final_Load(1,j)>=Linear_fit1(i,2)>=Final_Load(1,j+1)) | ... There's not a compound comparison construct such as this in Mat...

約9年 前 | 0

| 採用済み

回答済み
how to add axes x and y in the middle of figure 2D then i rotate x with an angle theta?
Well, may not be what looking for but it was hot out and I didn't feel like battling 100F for a while here... axes camro...

約9年 前 | 0

回答済み
How to find X value
fnSigma = (x) (M*b)/(pi*a*b^3/4)-pi*(a-x)*(b-x)^3)/4; % anonymous function builds in a,b,M x=fsolve(@(x) fnSigma-sigma,x0)...

約9年 前 | 0

| 採用済み

回答済み
How to extract specific columns and rows from a large CSV file?
Use |*textscan*| with the appropriate formatting string to read and skip the necessary columns. There are examples in the docum...

約9年 前 | 0

| 採用済み

回答済み
How to get a linear trendline/line of best fit with a fixed y-intercept?
Just build the design matrix and use \ is the simple way; |*cfit*| can do it in Curve Fitting TB if you set the specific model a...

約9年 前 | 1

| 採用済み

回答済み
change the y-axis value size
You didn't show the code used to create the plot but the answer in general is to first save the handles to the two axes so you c...

約9年 前 | 0

回答済み
CFTool: how to get output and use those data
I'll grant the CF Tool is really opaque in many ways, fer shure...this is perhaps the most of the many dark corners... When y...

約9年 前 | 1

回答済み
How to convert dates and times from txt to numbers?
OK, with the updated information on what is wanted the overall code is accumulated here in one spot instead of in the string of ...

約9年 前 | 0

さらに読み込む