回答済み
I have a given set of data and will like to do a distribution fitting (for gamma and lognormal) and return a P-P plot. What matlab function is best suited for this?
See doc probplot % <https://www.mathworks.com/help/stats/probplot.html> There are many builtin distribution functions un...

8年弱 前 | 0

回答済み
How to assign values to a sparse matrix without iterations?
S=sparse(Nonloc(:,1),Nonloc(:,2),1);

8年弱 前 | 0

回答済み
Counting occurrences of each column in a matrix
Several ways to do this; probably easiest is via converting to |categorical| with the |unique| values in each column transformed...

8年弱 前 | 0

回答済み
How can I compute multivariate regression residuals?
You really have 1939 _different_ regressions or 1939 _observations_? Whichever, you get only one (the last) result the way th...

8年弱 前 | 0

回答済み
Extracting numbers from mixed string
v=str2double(strip(splitstr(s,'_'),'m')); % chuckles... In reality, write a |regexp| expression is the more general so...

8年弱 前 | 0

回答済み
what is the code for the default blue color for 2D plot?
>> get(groot,'defaultAxesColorOrder') ans = 0 0.4470 0.7410 0.8500 0.3250 0.0980 0.92...

8年弱 前 | 1

| 採用済み

回答済み
how to populate a cell with a loop
fmt=[repmat('%f',1,14) repmat('%s',1,2) repmat('%f',1,29) repmat('%s',1,2) repmat('%f',1,8)]; % legible (sorta') format stri...

8年弱 前 | 0

| 採用済み

回答済み
How to read a txt and store specific line in matrix
fmt1='mode%n'; fmt2=['(' repmat('%f',1,3) ')']; flds={'X','Y','Z'}; fid=fopen(fname,'r'); dat=struct([]); i=0; ...

8年弱 前 | 0

| 採用済み

回答済み
problems with function "find". matlab doesn't match two numbere which are built equal
dt = 1/fs; data= [data0; data1; data2]; time= 0:dt:(length(data)-1)*dt; is the root of the problem; can be demonstrat...

8年弱 前 | 0

| 採用済み

回答済み
single trendline for multiple series
Sure, just group all the independent and dependent data arrays into one long vector for each. Presuming you have X,Y arrays s...

8年弱 前 | 0

回答済み
extract date and time preceded by strings with variable length from text file
fmt='%f%s%{yyyy-MM-dd HH:mm:ss}D%f%f'; dat=textscan(fid,fmt,'delimiter','\t','whitespace',''); This is directly related ...

8年弱 前 | 0

| 採用済み

回答済み
What is missing from MATLAB?
Neither |textscan| nor |readtable| can handle _'X'_ format string; whassup w/ that? Why are hex data presumed to not be in te...

8年弱 前 | 0

回答済み
Date and Time Extraction for individual data points from patient monitor device
See <https://www.medicollector.com/medicollector-blog/how-to-access-data-in-medicollector-files-without-exporting medicollector-...

8年弱 前 | 0

| 採用済み

回答済み
How to extract the x,y and z coordinate points from NC code?
fmt='N%fX%fY%f'; fid=fopen('yourtextfile.ext','r'); NXY=cell2mat(textscan(fid,fmt,'collectoutput',1)); fid=fclose(fid...

8年弱 前 | 0

回答済み
How could you write a function that returns a histogram with axis labels and title
|hist| when save the return value only returns the counts vector and, as you've discovered; doesn't actually draw the plot. T...

8年弱 前 | 0

回答済み
How to normalize a matrix such that each column sums equal 1
You're missing the "dot" operator so the division is matrix divide not element-wise. See doc ./ doc rdivide % that's a ...

8年弱 前 | 1

| 採用済み

回答済み
Passing functions in MATLAB
Look at function handles; there's a section under _Data Types_ in the documentation...

8年弱 前 | 0

回答済み
How to read a comma delimited .dat file containing mixed formats
Just read the file as it's given then parse the data columns... t=readtable('couzi.csv','ReadVariableNames',0,'Delimiter','...

8年弱 前 | 0

| 採用済み

回答済み
How to export coefficients names when using rstool?
Real issue with the Matlab user interface for most of the Curve Fitting and Statistics Toolbox stuff -- frequently it is very di...

8年弱 前 | 0

| 採用済み

回答済み
How do i convert Julian date to Month date?
s='2018-107T18:49:39.164'; infmt=['uuuu-D''T''H:m:s.SSS']; fmt='dd MMM yyyy HH:mm.ss.SSS'; >> t=datetime(s,'Input...

8年弱 前 | 1

回答済み
Using regular expression to read part of the filename
*AMMENDED -- dpb* Don't need regular expressions for that purpose, just select the first N-3 characters in the file name... ...

8年弱 前 | 0

回答済み
convert excel datetime to time in matlab
Specific file always helps as Walter suggests, but try a=datetime(xlsread(fileName,'C3:C30000'),'convertfrom','excel'); a....

8年弱 前 | 1

回答済み
how can i install matlab 2018b (64 bit) on my window (32 bit).
No can do. R2015b was the last 32-bit version. <https://www.mathworks.com/support/sysreq/previous_releases.html> <ht...

8年弱 前 | 0

回答済み
Read excel comments into Matlab
Try this as starter--it's a routine I built to process some data stored as comments on a worksheet for the local community colle...

8年弱 前 | 0

回答済み
Matrix subtraction errors using repmat
# You can subtract/add/multiply/divide any sized array with a scalar without |repmat| so you're "fixing" a problem that isn't a ...

8年弱 前 | 0

回答済み
Plotting very small and large values on same figure.
Look at doc yyaxis to put the two on separate axes that will cover range of each variable independently for starters, at...

8年弱 前 | 0

| 採用済み

回答済み
how to remove duplicates in correlations matrix
x=triu(x,1); Need to convert from N variables to an array to do this effectively. I'd guess that would be beneficial going ...

8年弱 前 | 0

| 採用済み

回答済み
how to know the distribution of my data
Plotting the data it definitely is _not_ normal; has long RH tail and isn't symmetric. For hypothesis testing it would be bet...

8年弱 前 | 0

回答済み
How can I extracting a signal pulse from a data
_"extract the first pulse (which is also the highest pulse)"_ Presuming you can be assured of the assumption, the first is th...

8年弱 前 | 1

| 採用済み

回答済み
Hello, Please how can i plot a stem plot of lets say 300 data points?
figure hS=stem(X(:,2),Y(:,2)); % draw stem plot, save stem object handle hold on % so can add onto exi...

8年弱 前 | 0

さらに読み込む