回答済み
plot with two datetick axis
Don't use datenum and datetick, use datetime instead for which plot has builtin support. You should be able to create two indep...

16日 前 | 0

回答済み
Pairwise difference of datetime vectors (i.e. pdist for time data)
Presuming not excessive precision, one could convert to datenum, compute distances and then return to datetime Seems like a fea...

17日 前 | 1

回答済み
Can I use Matlab to read in data that's in an unusual layout
A little tedious to set up, but easily-enough handled for a regular file format such as this. First you have to either know the...

18日 前 | 1

| 採用済み

回答済み
What are the methods and corresponding functions in matlab to fill missing data temporally in rainfall timeseries?
Well, time-based was understood the point of the Q? was whether you were also requesting some specific and recognized in the fie...

18日 前 | 0

回答済み
Find column with error and delete it
isStr=find(cellfun(@isstr,table2cell(dataFromTable(1,:)))); if(cell2mat(strfind(dataFromTable{1,isStr},'$$ER'))) dataFromTab...

18日 前 | 0

回答済み
What data points does interp1 use for linear interpolation?
inter1 does linear interpolation between points unless you use 'nearest'|'next''|'previous' for the method. It also requires th...

18日 前 | 0

回答済み
Help!!! how to search for some xx xx xx xx(hex) in a dat file very fast!!!
If it's performance you're looking for, pass the job off to a grep utility...there are any number of freeware versions available...

19日 前 | 0

回答済み
Convert String Array to Numeric matrix and string array
EventVals=str2double(data_events(1:2:end,:)); EventCmnt=data_events(2,:);

19日 前 | 0

回答済み
Stacked bar graph with secondary y-axis line graph
[~,~,r]=xlsread('MLQ.xlsx'); % just read the spreadsheet to see what was in it... MLQopt=detectImportOptions('MLQ....

20日 前 | 0

| 採用済み

回答済み
How to access names of external drive from path?
That's an OS command -- on Windows there's "VOL" >> !vol Volume in drive C is OS Volume Serial Number is ... >>

20日 前 | 0

| 採用済み

回答済み
fread() help. "Error using fread: Invalid file identifier..."
[filename, pathname]=uigetfile('*.ptu', 'T-Mode data:'); %Opens dialog box to manually select the file using file explorer ...

21日 前 | 1

| 採用済み

回答済み
Customizing MATLAB Plots and Subplots
The new(ish) yyaxis function to arbitrarily create two y axes and then switch between left and right axes w/o the need of yyplot...

23日 前 | 0

| 採用済み

回答済み
Select specific data from txt file
Just read the file into memory and do a find() -- since it's an integer that'll be exact. What do you do if there isn't a matc...

24日 前 | 0

回答済み
for loops not working
"The MATLAB way" is to avoid the loops altogether... N=10; M=1000; [X,Y]=meshgrid([1:N],1:M]); func=(X*pi/Lx).^2 +(Y*pi/Lz).^...

25日 前 | 0

回答済み
How can I shift the elements in a vector without losing the elements? just shift the order
Sorta' inconsistent definition, but look at >> A=1:10; >> circshift(A(4:end-2),-2) % case 1 ans = 6 7 ...

26日 前 | 0

回答済み
How to transform an array into a bottom triangle
On the above assumption, if V is the vector, then N=149; % array size parameter R=V(cumsum([N:-1:1])); ...

26日 前 | 0

| 採用済み

回答済み
Finding elements of an arrays having specified index numbers
Given you return the indices in vectors ix and iy, then V=A(sub2ind(size(A),ix,iy)); where A is the other array and V will be ...

26日 前 | 2

| 採用済み

回答済み
Use the index of an element of a subset to find its index in the large set?
tipPt=[2 3 2]; % the two located points smpPt=[2 3 1]; % return their locations in the two arrays, respectively ...

26日 前 | 0

| 採用済み

回答済み
vertical error bar in loglog plot
hEB=errorbar(x,A,err); hAx=gca; hAx.XScale='log'; hAx.YScale='log'; You'll have to have defined the error magnitude array, e...

26日 前 | 0

| 採用済み

回答済み
Having multiple lines in a character array for column labels in a heatmap
Unless TMW has finally fixed it, the TickLabel interpreter is pretty brain dead...you can do something like ColumnLabels=strrep...

27日 前 | 0

| 採用済み

回答済み
Replace categorical value with numeric values
If categorical variable is c, then d=double(c)-1; presuming didn't define them except by default which will be in alphanumeric...

28日 前 | 0

回答済み
i need to compare a matrix with a static table
> [interp1(Y(:,1),Y(:,2),X(:,1)) interp1(Z(:,1),Z(:,2),X(:,2)) interp1(A(:,1),A(:,2),X(:,3))] ans = 279.6900 255.4500 247....

29日 前 | 0

| 採用済み

回答済み
msgbox is not displaying the string entered in body
Should be msgbox('Message','Title')

29日 前 | 0

回答済み
Generate beta random number without statistics toolbox
Given Ui are uniform random variates Y1=U1/α1 and Y2=U1/β1, such that Y1+Y2<=1, then X=Y1/(Y1+Y2) follows the beta dist...

約1ヶ月 前 | 0

回答済み
how to fit a a curve using gamma fit
See doc gamfit but all the inflection points in the green curve have no chance to be reflected in a fitted function.

約1ヶ月 前 | 0

回答済み
Randomly assign a value to each column of a matrix
Not way subscript expansion works as written...use seqS(sub2ind(size(seqS),[1:mt].',t)) = true; instead

約1ヶ月 前 | 0

| 採用済み

回答済み
Accessing Character Vectors Within Cell Arrays, Output Is Size of Character Vector, not Contents?
While not your specific question, couldn't help but recast your function using standard MATLAB functions for various operations ...

約1ヶ月 前 | 0

Load more