回答済み
How do you get rid of the VariableNamingRule warning when you do want it set to modify ?
It's annoying to be constantly nagged, agreed. But, setting it explicitly doesn't affect whether it is generated or not as you'...

3年弱 前 | 1

| 採用済み

回答済み
fix content .txt file (organize the inside of the .txt file)
You can try tYourTable=renamevars(tYourTable,{'Parameters1','Parameters2'},{'Parameters:','Values'}); writetable(tYourTable,'Y...

3年弱 前 | 0

回答済み
center text in app designer
Well, it CAN be done; don't know that I would recommend it still, but... hUIF=uifigure; pLbl=[200 200 50 100]; % label positi...

3年弱 前 | 0

回答済み
Multi column legend in matlab plot
Try FEX submission

3年弱 前 | 0

| 採用済み

回答済み
How can I delete an xline/plot from a plot without deleting the other ones on the graph? (I am using checkbox)
You need to keep each line handle when it is plotted as a global app data variable for each CB that plots each line. Then the c...

3年弱 前 | 0

回答済み
displays a text by moving the mouse over it
See <prior Answer>. The specific solution that is most elegant requires the iptPointerManager which is only in the Image Proces...

3年弱 前 | 2

回答済み
How to plot a spectral analysis of a displacement signal
data=readmatrix('MTACT.xlsx'); t=data(:,1);y=data(:,2); subplot(2,1,1) plot(t,y) dt=mean(diff(t)); Fs=1/dt; L=numel(t); y...

3年弱 前 | 1

| 採用済み

回答済み
grouping/binning by time
data={ '14:49:56.421875000' 'ccccd9' '14:49:56.421875000' 'cccccb' '14:49:56.429687500' 'cccce0' '14:49:56.421875000' ...

3年弱 前 | 0

| 採用済み

回答済み
How to extract string/numbers after a keyword in a text
"How to extract the corresponding value after a given keyword?" data=readlines('Example.txt'); % bring the file into memory fo...

3年弱 前 | 2

| 採用済み

回答済み
how to plot two-column text file of the energy spectra
uzip = unzip('point.zip') spec=readmatrix('point/point1.prn','filetype','text'); whos spec figure plot(spec, 'x-') Doesn't ...

3年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 1

回答済み
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年弱 前 | 0

| 採用済み

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

3年弱 前 | 0

回答済み
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...

3年弱 前 | 1

| 採用済み

回答済み
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... ...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 2

回答済み
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...

3年弱 前 | 1

| 採用済み

回答済み
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/...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

回答済み
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 ...

3年弱 前 | 1

回答済み
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...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

回答済み
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 ...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

質問


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

3年弱 前 | 1 件の回答 | 0

1

回答

回答済み
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...

3年弱 前 | 1

回答済み
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...

3年弱 前 | 0

| 採用済み

さらに読み込む