Community Profile

photo

dpb


Last seen: Today Attivo dal 2012

Statistiche

All
  • Revival Level 2
  • First Review
  • Master
  • Thankful Level 3
  • 36 Month Streak
  • Knowledgeable Level 5
  • First Answer
  • Solver

Visualizza badge

Content Feed

Visto da

Risposto
Error with OPTIMOPTIONS and lsqcurvefit
Have you checked the documentation for the installed version (R2022a) for allowable syntax? I have R2020b and R2023a and the eq...

3 giorni fa | 0

Risposto
How to plot a very large number of individual points
It's not the wrong function, but applying it very inefficiently. Each call to plot() produces another line object so you're cre...

3 giorni fa | 0

| accettato

Risposto
Cannot write netcdf file
filename = "/Users/gulfcarbon2/Desktop/AD-ATCOR/output/AQUA_MODIS.20190816T194000.L2._Rrs.nc" nc_filename = [filename(1:end-6),...

3 giorni fa | 0

Risposto
What are Your Thoughts on TMW Using Answers as Source of Documentation?
My thought is it's abadidea™ and particularly why illustrated by the subject of the given question -- it's a Catch22 situation f...

4 giorni fa | 1

| accettato

Risposto
how could i stack multiple satellite data of soil moisture in to one and find out the nanmean of all files? The size of files is 1440*720. The file is in '.nc' format.
% read the all nc file d= dir('*.nc'); % dir() returns a struct, not a file or even a file name... ...

4 giorni fa | 0

Risposto
Skipping part of code
The other way that fools the code analyzer is to insert one level of indirection...the following doesn't generate the warning wh...

5 giorni fa | 2

Risposto
How to gather data from a table with variables?
Have the button callback set an application variable when the user selects it; then use that value in the calculate callback fun...

7 giorni fa | 1

| accettato

Risposto
the Noisy Signal example on fft function have problems?
Sampling frequency is only part of it -- the example uses a fixed sampling frequency of 1 kHz which is 1000/50 --> 20X or 1000/...

8 giorni fa | 0

| accettato

Risposto
plotting with Displayname in a for loop
Don't use images for code; paste the text and format with the "Code" section...nothing can do with an image but look at it... U...

13 giorni fa | 0

| accettato

Risposto
Undefined function 'uifigure' for input arguments of type 'char'.
The function code works here although the controls are not spaced/sized such that they are all contained within the default uifg...

16 giorni fa | 0

Risposto
Import data from a bad format
The '%g' format has struck again -- that's what killed @Walter Roberson's approach. While not the most efficient, a simple way ...

17 giorni fa | 1

Risposto
Can't seem to create a new column with the right type
We don't have the input file and you neglected to tell us even what variable you couldn't covert so not much can be said about f...

18 giorni fa | 0

Risposto
how to select multiple time ranges in a timetable?
That's pretty remarkable, indeed -- wonder how it managed to fake the output? I thought first that just maybe the newest, onlin...

19 giorni fa | 0

Risposto
How to apply one colormap to multiple ocean colour subplots
This is not a MATLAB problem, per se, since you're using the <M_Map Application>. Only someone else with the package installed ...

19 giorni fa | 0

Risposto
eliminate a letter after getting a matrix data from text file
I've given you the Answer for both of these earlier at the <Original Q? Thread> location and the followup discussion. Will clo...

20 giorni fa | 0

| accettato

Risposto
Read text file after a specific text line but avoiding only the next line
fn='https://www.mathworks.com/matlabcentral/answers/uploaded_files/1376874/CISMID_SC_SCARQ_NEW_TOCHECH.txt'; data=readmatrix(fn...

21 giorni fa | 0

| accettato

Risposto
How to place tick-labels on the axis, essentially replacing the ticks with the labels?
That's theorectically possible, but would be a pit(proverbial)a(ppendage) to accomplish; MATLAB HG2 has no provision to do any s...

21 giorni fa | 0

Domanda


Import Options Missing Variable Flexibility Between Missing Record and Variables
The import options object has the 'MissingValue' rule, but as far as I can tell it's an "all or none" affair, one either fills e...

22 giorni fa | 0 risposte | 0

0

risposte

Risposto
Remove specific rows of matrix from memory not just delete them
Use MATLAB <logical addressing> and vectorized operations-- Hf=Hf(HF~=0); for the case you show that Hf is a vector. If it we...

23 giorni fa | 1

Risposto
I have a set of data that I need to separate into unequal intervals in order to calculate the RMS value of these data (The data points are continuous over time)
For the solution for all torque levels without collapsing any, tq=readmatrix('Torque Data.xlsx'); d=[true; diff(tq(:,2)) ~= 0...

24 giorni fa | 0

| accettato

Risposto
how to plot a bar graph using for loop?
%Read the data from positive test results %data.COVIDStatus(k)==1 %Include data which satisfies k condition for the appropriat...

26 giorni fa | 1

Risposto
When creating an app, how do you plot points on top of a line on a UI axis?
% We will write the following code in the button push function, % since we want the push of this button to 1.) main_axes = ap...

26 giorni fa | 0

Risposto
How can I use a for loop to interpolate to a certain number of points, and remove NaNs?
Like @Rik, I don't understand the desire well enough to know precisely the result you're looking for, but to find the locations ...

26 giorni fa | 1

Risposto
A suitable method to detect outliers from a non-normally distributed dataset?
You made it notoriously difficult to do anything to help by not attaching the data in a usable form, but... fn='https://www.mat...

27 giorni fa | 1

Risposto
autocorr, xcov, xcorr, which one should I choose to calculate auto-correlation function? And what's the difference among them?
Doesn't really matter although from the doc, the autocorr function in the Econ TB uses the FFT to compute and then IFFT to retur...

28 giorni fa | 0

Risposto
Labels in Stackedplot generated from Arrays
You mean something like hS=stackedplot([1:100]',randn(100,2)); hS.DisplayLabels={'Mag','Phase'}; hS.XLabel='Frequency';

29 giorni fa | 0

| accettato

Risposto
Saving output in different rows with subsequent runs of my program.
See the 'append' value for the 'WriteMode' named parameter in <writetable>. Far more efficient would be to wrap your code as a ...

29 giorni fa | 0

Risposto
how to create legend from neighboring column in 3d plot
Why folks continue to beat head against wall with deprecated xlsread is beyond ken... fn='https://www.mathworks.com/matlabcentr...

30 giorni fa | 0

| accettato

Risposto
Add commas between number columns from text file
Given the fixed format nature of these files, the best thing to do is probably to just build a specific fixed-width import optio...

circa un mese fa | 0

Risposto
Add commas between number columns from text file
fn='https://www.mathworks.com/matlabcentral/answers/uploaded_files/1367139/ReactionsPortic5Combination4.txt'; opt=detectImportO...

circa un mese fa | 0

| accettato

Carica altro