Risposto
How can I add animation on the existing subplots?
I've got more going on at the moment than have time to deal with the synchronization issue, but the animated line in an existing...

quasi 4 anni fa | 0

| accettato

Risposto
for loop on all the lines of text
fidI=fopen('TARGETOLD.txt'); % Input file fidO=fopen('_modified.txt','w'); % Output file fid=fopen('HeadScri...

quasi 4 anni fa | 0

Risposto
for loop on all the lines of text
No loop needed, at least initially... C=readlines('TARGETOLD.txt'); idx=contains(C,';TIME_ELAPSED:'); E=C(idx); Now, what do...

quasi 4 anni fa | 0

Risposto
AppDesigner Packaging Data Files Location
OK, in the end I did as the above suggestion from @Mario Malic -- used %LOCALAPPDATA% root and the app creates a subfolder for i...

quasi 4 anni fa | 0

Domanda


AppDesigner Packaging Data Files Location
Packaged an EXE with MATLAB Compiler -- on install, accepted default location and let it put a shortcut on the desktop. That we...

quasi 4 anni fa | 1 risposta | 0

1

risposta

Risposto
Format ToolTip strings in AppDesigner
Just got to this point myself after seeing Yair's example for GUIDE controls -- another step backwards in abilities; in R2020b i...

quasi 4 anni fa | 1

Domanda


UIPUTFILE Documentation Innaccurate/Change Warning Dialog?
The doc for returned file argument for uiputfile says in part... If the user specifies an existing file name, then a warning di...

quasi 4 anni fa | 1 risposta | 1

1

risposta

Risposto
How to Search a struct array?
With the ID field being a string, probably the easiest syntax is simply ID=="864475047572713"; idx=find(matches([alldata.ID],I...

quasi 4 anni fa | 0

Risposto
How can I fix this?
Don't alias the builtin sqrt function by assign a value to it and thereby turning the reference to sqrt into a variable. sqrt =...

quasi 4 anni fa | 1

| accettato

Risposto
How to split the table selectively and create another table by giving new column names?
Well, I had a full, long executing example that ran but then the forum page crashed -- I'm too lazy to try to redo that whole th...

quasi 4 anni fa | 1

| accettato

Risposto
How to check trend in two dataset?
Try corr for starters...

quasi 4 anni fa | 0

Risposto
Error using pwelch - Expected x to be finite.
x=load('\\fs01.hpc.unipr.it\bonini01\WIRELESS_Wifi_Router_Impianti2021\Acquisizioni Deuteron\ProvaHyper_20220915_M1\LFP1.mat'); ...

quasi 4 anni fa | 0

| accettato

Risposto
Sum of columns in a mxn Matrix on matlab
s=column_sum(A,cl+1); Will crash if pass cl > size(A,1) as there's no error checking for cl being out of range. As for the...

quasi 4 anni fa | 0

Risposto
Save a stream of bytes into a zip file
PKZip was/is shareware, it should be possible to turn the code for it into a callable mex file that works from memory; it's quit...

quasi 4 anni fa | 0

| accettato

Risposto
How to extrapolate an x value from a fitting curve?
xvalues = [10; 12; 22; 28]; yvalues = [1; 2; 3; 4]; % Fit model to data. [fitresult, gof] = fit( xvalues, yvalues, 'linearint...

quasi 4 anni fa | 0

Risposto
Data in multiple separate .xlsx sheets and move to only one .xlsx sheet
%fn=websave('cpc_global_precip_precip.2020.xlsx','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1166433/cpc_glo...

quasi 4 anni fa | 0

Risposto
plotting an array in frequency domain
L=numel(t); % how long is t vector??? f = Fs*(0:L-1); % zero-based frequency of same number elements NOTA BENE:: T...

quasi 4 anni fa | 0

| accettato

Risposto
How to run an external Matlab(.m) files and call its functions from an application code-view file?
See <class-definition-and-organization> area in the docs -- you package your classes so your application can import them and the...

quasi 4 anni fa | 1

| accettato

Risposto
How to fix error about interp1?
From the description it appears you have only 5 unique values in wdepth(:,1). As the doc and the error message say, interp1 can...

quasi 4 anni fa | 0

Risposto
Vectorize for-loop with indexing
S=accumarray(idx(:),B(:)); See accumarray for all the many permutations that can be made... An alternative using grouping va...

quasi 4 anni fa | 1

| accettato

Risposto
how to delete decimal places
'Pends. You mean just at the display or in the actual data? If it's for the display, there isn't an "integer" format option; '...

quasi 4 anni fa | 0

| accettato

Risposto
Specify output data type of "find" function
" Is there something akin to the "like" functionality [in find]...?" No. Everything numeric including indices in MATLAB is a d...

quasi 4 anni fa | 1

| accettato

Risposto
Replace String in Table if Substring is Found
id=["Broken statuette", "Terracotta statuette","Statuette"]; % the variable valset=[id,"Other Stuff"]; ...

quasi 4 anni fa | 0

Risposto
How to calculate the daily and yearly mean of a temperature dataset
Read as timetable and then use retime. About 2-3 lines of code each should do it.

quasi 4 anni fa | 1

Risposto
What codes do I have to use to determine if the data are Gaussian distributed?
MATLAB implements jbtest and adtest in the Statistics TB. My personal preference is to use the Shapiro-Wilk test. See <NIST Ha...

quasi 4 anni fa | 1

| accettato

Risposto
Bar to variation a parameter into script
No real idea what the above is asking for, specifically, but... V=[0.15;500;21]; Y=categorical({'kp','ki','kd'}); barh(Y,V,0....

quasi 4 anni fa | 0

Risposto
Timeline plot of GPS (Latitude and Longitude) data - Plot GPS overtime.
tT.Time=datetime(tT.Year, tT.Month, tT.Day, tT.Hour, tT.Minute, tT.Sec); plot(tT.Time, tT{:,{'Latitude', 'Longitude', 'Altitude...

quasi 4 anni fa | 0

| accettato

Risposto
How to use a vector as an input in a function?
Carrying on from @Matt's comment above... Is it really going to be more convenient to assemble all the elements into one long v...

circa 4 anni fa | 1

| accettato

Risposto
Automatic Adjusting of xticks depending of data
categorical axes are somewhat peculiar -- the categorical variable always contains all the categories for which it was created a...

circa 4 anni fa | 0

| accettato

Risposto
How to save and read a 3D matrix in MATLAB?
"readmatrix(filename) creates an array by reading column-oriented data..." A matrix in MATLAB is 2D; writematrix writes the pla...

circa 4 anni fa | 0

Carica altro