Respondida
How to use the formula extracted from a curve fitting algorithm
It's not clear to me why you can't just use the returned fit structure for whatever it is that you needs must want to do, but to...

más de 9 años hace | 1

| aceptada

Respondida
Creating Feature vector in .mat file
|*graycoprops*| returns a structure containing the requested statistics in fields of each name; hence you got what you requested...

más de 9 años hace | 0

| aceptada

Respondida
plot the values of two columns of a table
Matlab doesn't understand ',' as a decimal point so your data are character array images of the input file, not numeric for the ...

más de 9 años hace | 0

Respondida
converting miliseconds to datetime value in datastore
Bad format string...use '%{HH:mm:ss.SSSSSS}D' instead. Cap 'S' is fractional seconds, lowercase 's' is seconds with |*d...

más de 9 años hace | 0

Respondida
Trouble importing text file as matrix
There's not a prepackaged routine to read multiple groups of data; you'll have to "roll your own" solution here. I'll show a co...

más de 9 años hace | 0

Respondida
functions with for loop
Your heat transfer model has to be dependent upon something else to cause it to return different values; you show arguments (x,y...

más de 9 años hace | 0

Respondida
Is there a way to improve max & min functions in matlab?
Well, the first question would be can you vectorize the loop and then do the min/max operation over the array result instead of ...

más de 9 años hace | 1

Respondida
How to merge text files into one file ?
d=dir('Yourfile*.txt'); % directory of suitable wildcard to find the desired files fidOut=fopen('YourOutputFile.txt','w');...

más de 9 años hace | 2

Respondida
See maximum value (in pixels) of a figure
[row,col]=size(yourimagearray)

más de 9 años hace | 1

Respondida
if we have a 2 matrices A and B 4x4 order and we want to multiply A with B(1st 2 coloum) as a block) and then again next iteration we select b(last 2 coloums) as a block multiply with A ?this is all multiplication block 2x2 how?
I don't have Image Processing TB but think *|blockproc|* works as suggested before; if don't have the TB bow about N=2; ...

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

Cargar más