Respondida
How do I break y-axis to improve visualisation when plotting intervals as errorbars?
"P.S. If there is any other suggestion about how to plot intervals in matlab for good visualization I will appreciate it." For ...

más de 7 años hace | 0

Respondida
read multiple csv files and extract first 10 rows only
Just read each file in turn and save the first N lines... NLines=10; % how many wanted to save...make variable so ca...

más de 7 años hace | 1

| aceptada

Pregunta


WRITETABLE to spreadhseet mysterious failure
>> writetable(tMismatch) >> type tMismatch.txt Fund,Acct,B_Student,SID,B_Paid,R_Student,R_Paid,R_Award,MatchStatus,R_Formula...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Respondida
Sorting same rows & columns in two different matrices?
Piece o' cake with logical indexing... C=B(isnan(A)); % just return the values ix=isnan(A); % return the pattern i...

más de 7 años hace | 0

Respondida
fplot doesnt give the same result of plot
So, why not just use plot if that's what you want? But, read the doc for fplot -- all is explained: Description ... fplot(f)...

más de 7 años hace | 0

Respondida
Replace elements in array with smaller array
Just read into a dummy variable and store only the N samples wanted. Nothing fancy needed at all. % names of the files: % MIC...

más de 7 años hace | 1

| aceptada

Respondida
How can I get the number between 2 numbers?
ix=cell2mat(arrayfun(@(n)find(PA==n),n,'uni',0).'); PA=arrayfun(@(i1,i2)PA(i1+1:i2-1),ix(:,1),ix(:,2),'uni',0); PB should be o...

más de 7 años hace | 0

| aceptada

Respondida
How to choose sampling frequency to generate signals?
Minimum sampling frequency would be >= Nyquist frequency which is max([f0 f1 f2 ... fn])/2 Sampling at 3-4X that value will be ...

más de 7 años hace | 0

Respondida
excel table data analysis
It's not trivial to learn the tricks, granted...but here's a start for the first...with it and some study of the examples, shoul...

más de 7 años hace | 2

| aceptada

Respondida
Excel Vs Matlab Curve Fitting Tool
Read the output from Matlab -- the model has been standardized whereas the Excel model uses raw data. Note the R-sq and adjuste...

más de 7 años hace | 2

| aceptada

Respondida
How can I filter through my data using a for loop?
filename = 'PIVtest.xlsx'; data=xlsread(filename); PLimit = 100; % set position limit to screen TPV=data(d...

más de 7 años hace | 0

| aceptada

Respondida
Error Bars on horizontal bar chart
"errorbar(x,y,neg,pos) draws a vertical error bar at each data point, where neg determines the length below the data point and p...

más de 7 años hace | 1

| aceptada

Respondida
How to plot different length of vectors?
for k=1:3000 xvalue1(k)=k; end MATLAB is MATrix LABoratory -- use vector facilities... xvalue1=1:3000; figure; d5=X_...

más de 7 años hace | 0

Respondida
Why is str2num returning [] and str2double returning NaN?
X = str2double('newStr1') Y = str2doule('newStr2') You're trying to turn the literal character arrays 'newStr1' and 'newStr2' ...

más de 7 años hace | 1

| aceptada

Respondida
Cut Out Data for Analysis
x=x(any(x,2),:);

más de 7 años hace | 0

| aceptada

Respondida
Help with Global Variables
But you define and set D=0 in the function as a local variable inside the function modeleth so nothing outside prior to that mat...

más de 7 años hace | 0

Respondida
How I can substract vectors with different length?
I presume you mean to standardize the monthly data by year...presuming you have a date variable along with the observation, then...

más de 7 años hace | 0

| aceptada

Respondida
Access to array of structs (no for loops)
Is expressly noted that ML does NOT support array indexing for more than a single struct array element expression--see Note @ ht...

más de 7 años hace | 0

Respondida
Whiskers in Boxplot seems incorrect
Read the description of 'whisker' carefully...particularly the very last sentence below (emphasis mine): "boxplot draws points ...

más de 7 años hace | 1

| aceptada

Respondida
Compare matrix element without loops
Not w/o zero loops, think not, but can reduce to one... idx=1:nG; % working index array for element logical lookup/e...

más de 7 años hace | 2

| aceptada

Respondida
Interpolate data with 2 variables
Your data are pretty sparse over the 2D space but you can try F=scatteredInterpolant(S,T,F); f=F(s,t); where S,T,F are your d...

más de 7 años hace | 0

| aceptada

Respondida
present decimal values in a pie graph
... for i = 1 ; length(num) % ";" should be ":" num(i) = ((num(i)/sum(num))*100); end Use Matlab array syntax ...

más de 7 años hace | 1

| aceptada

Respondida
Multiple Curve intersection plot
Actually, after looking at the drawings some more, I realize you did supply enough originally to make an initial pass at it... ...

más de 7 años hace | 0

Respondida
Convert datetime that's not in Matlab format to a matlab format datetime
TZ offsets are recognized in ML datetime -- your string can be converted as: s='2014-12-13T18:45:00+00:00'; >> datetime(s,'Inp...

más de 7 años hace | 1

| aceptada

Respondida
horizontal concatenate a datetime structure to a table array
I can't tell which data it is you're trying to piece together, but from the OrginalData.mat you posted in the previous Q? on dat...

más de 7 años hace | 1

| aceptada

Respondida
remove table header row
Should show your work when you've tried something that seems like should but doesn't...it's really quite a straightforward task-...

más de 7 años hace | 2

| aceptada

Respondida
date and time format change
>> tst=GBP_USD.Date(1:10); % just a sample set to play with >> datetime(tst,'InputFormat','yyyy-MM-dd''T''HH:mm:ss.SSSS...

más de 7 años hace | 1

| aceptada

Respondida
Conversion of Categorical to double
To answer the question posed, Data.Column7=double(Data.Column7); but see the comment above -- the better solution would be to...

más de 7 años hace | 1

Respondida
Conversion of Categorical to double
y1 is a grouping variable of which bin each refers to; it will be in the range of 1:N where N is number of unique categories in ...

más de 7 años hace | 1

| aceptada

Respondida
how to compare two arrays
O=zeros(size(A)); for i=1:size(A,2) O(:,i)=interp1(B(:,i),B(:,i),A(:,i),'next','extrap'); end

más de 7 años hace | 0

| aceptada

Cargar más