Respondida
How to use linear interpolation for filling with 3s inside empty spaces in a matrix of os and 3s
for i=1:size(M,2) ix=find(M(:,i)==3); if numel(ix)>1 M(ix(1):ix(end),i)=3; end end

más de 7 años hace | 0

Respondida
Extract maximum value out of two column in a row & delete the last row
B=[A(:,1:end-2) max(A(:,end-1:end),[],2)]

más de 7 años hace | 0

| aceptada

Respondida
How can I change marker size and form based on diameter and ellipticity values over frame?
scatter() will let you change the marker size and color for each point whereas plot() is a marker for each line...of course, cal...

más de 7 años hace | 0

| aceptada

Respondida
[Solved] Fitting exponential decay function
You forced the model to have f(0) = 0.148356 + 0.1291 = 0.2775. It takes a really large decay constant to make up for that. T...

más de 7 años hace | 1

Respondida
Using readtable to load excel files in a different folder
folder_in='Formatted_Excel'; % directory of interest d=dir(fullfile(folder_in,'*.xls*'); ...

más de 7 años hace | 0

| aceptada

Respondida
Assigne Values/Attribute to elements of an array
>> V = categorical(v,v,cellstr(['A':'E'].')) V = 1×5 categorical array A B C D E >> ADDENDUM:...

más de 7 años hace | 0

| aceptada

Respondida
Floating point error incrementing in while loop
https://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-0-3-0-2-0-1-not-equal-to-zero

más de 7 años hace | 1

| aceptada

Respondida
How can I load (many!) points from file, and display them in 3D including color?
See doc scatter3 ML can read whatever datafile format you wish to use...for such large data a stream file would be obvious cho...

más de 7 años hace | 0

Respondida
Save files to folder loop won't save the .txt files
% location of data files data_path = 'C:\....\Desktop\Fat-L100T10-785'; % create search string to pick up all txt files in fol...

más de 7 años hace | 1

| aceptada

Respondida
How to Combine Line and Bar Charts with multiple groups in the same figure?
Oh...didn't follow what were after...thought it was to create the image-like figure... The following will get you started -- h...

más de 7 años hace | 0

| aceptada

Respondida
How do I scan in data that is flowing on each other horizontally, the values running into each other can't be recognized and separated correctly.
Use opts=detectImportOptions(readfile); to create a base import options object for fixed-width text and then fix up the Varia...

más de 7 años hace | 0

| aceptada

Respondida
phase plot no giving the correct plot
Don't forget floating point precision... >> real(a) ans = 1.0e-15 * 0.0555 0.1665 0.0555 0.0185 -0.1295 ...

más de 7 años hace | 0

Respondida
Moving files to new folder based on timestamp
Return the dir() of the files matching desired pattern and then convert the .date field to datetime. You can then use whatever ...

más de 7 años hace | 0

| aceptada

Respondida
How can I display greek letters as boxplot labels?
Axes labels aren't text objects; you didn't diagnose the result of your probe: ... h = findobj(gca, 'type', 'text'); >> h h ...

más de 7 años hace | 2

Respondida
Gettind the indexes of table array with time and data according to datetime vector with time. Or how to syncronize datetime vector with table array
OK, with the code to see what it was you were really trying to do it's easier... First, there's an issue with your table that m...

más de 7 años hace | 0

| aceptada

Respondida
How to revert graphs.
Basically, don't erase/delete anything until you're sure you're done with it. Save the line handle(s) to the lines when drawn; ...

más de 7 años hace | 1

Respondida
Matrix Dimensions must agree
The + operator only works for the class string catenation, not character strings. path_new="C001H001S00040" + i3 + ".tif"; ...

más de 7 años hace | 0

Respondida
psd estimation using welch's method
To compute via Welch's overlapping estimator, yes. Of course, you can compute PSD from base product directly with FFT() and ch...

más de 7 años hace | 1

| aceptada

Respondida
Correlation between two non-linear vectors
Can I trust the function corrcoef?" Well, you can trust it to have computed what it says it computes which is the estimate of ...

más de 7 años hace | 0

Respondida
Trasform cell arrays vector into a double vector
All the gyrations with tables are apparently totally unnecessary and just added complexity... pluto_test=cell2mat(c2); pippo_t...

más de 7 años hace | 0

Respondida
Displaying special characters in dialog box
Dialogs don't have 'Interpreter' property, unfortunately, and they're not full-blown text objects underneath. Have to hardcode ...

más de 7 años hace | 0

Respondida
Importing Histogram bin width & bin frequency data without access to underlying raw data
Just read the data in as is; no need for Excel. I'd use bin midpoints altho will make little difference on fitting is probably ...

más de 7 años hace | 0

Respondida
Why fileID value is -1 in fopen function despite that it seems to have opened and read the file content successfully?
Also, too: Your logic doesn't immediately continue to the next file in the for...end loop after the error message--it just does...

más de 7 años hace | 0

Respondida
Wrong axis value in correlation plot
It's a confusing labeling problem -- the ticks aren't actually the variables on the plot for the histogram but for the scatter p...

más de 7 años hace | 1

Respondida
Occurence with 2 variables
HD=[HsW;DirW].'; % combine data for convenience Pattern=[HD(1:2,:)]; % the look...

más de 7 años hace | 1

| aceptada

Respondida
how can i display only two decimals in uitable MATLAB?
Don't have that much flexibility with numeric formattting in the object, sorry. uitable uses the same setting as the command wi...

más de 7 años hace | 1

Respondida
A clever way to have dynamic output variables from a function??
Do NOT write code with metadata in variable names nor sequentially-numbered or lettered ones for starters...use an array. Then ...

más de 7 años hace | 1

Respondida
I want to my contour plot to look like the one from mathematica?
One of the examples from ML doc (peaks function) with x/y limits expanded to more or less mimic the kind of figure you have resu...

más de 7 años hace | 0

Respondida
Skipping 1st two calculations of a loop
for i=1:n for j=1:k C(i,j)= a(i)+b(j)+c(j) end end C(1,1:2)=[C11 C12]; % fixup special cases

más de 7 años hace | 0

| aceptada

Respondida
Inserting number where vector changes from positive to negative
On the chance the crystal ball foresaw the answer to the above questions, try the following (or perturbations thereof)... x = [...

más de 7 años hace | 0

Cargar más