Respondida
Changing the polynomial coefficients
Syntax problem--analgously to |structure| dynamic field names, the string after the dot is interpreted as literal character stri...

más de 9 años hace | 0

| aceptada

Respondida
Axis interval of scatter plot
Except ticks are property of the axes and |*gscatter*| as other plotting routines returns handle(s) to the object(s) it creates,...

más de 9 años hace | 0

| aceptada

Respondida
Finding frequency of repetition of a data point in a pattern
(Final_Load(1,j)>=Linear_fit1(i,2)>=Final_Load(1,j+1)) | ... There's not a compound comparison construct such as this in Mat...

más de 9 años hace | 0

| aceptada

Respondida
how to add axes x and y in the middle of figure 2D then i rotate x with an angle theta?
Well, may not be what looking for but it was hot out and I didn't feel like battling 100F for a while here... axes camro...

más de 9 años hace | 0

Respondida
How to find X value
fnSigma = (x) (M*b)/(pi*a*b^3/4)-pi*(a-x)*(b-x)^3)/4; % anonymous function builds in a,b,M x=fsolve(@(x) fnSigma-sigma,x0)...

más de 9 años hace | 0

| aceptada

Respondida
How to extract specific columns and rows from a large CSV file?
Use |*textscan*| with the appropriate formatting string to read and skip the necessary columns. There are examples in the docum...

más de 9 años hace | 0

| aceptada

Respondida
How to get a linear trendline/line of best fit with a fixed y-intercept?
Just build the design matrix and use \ is the simple way; |*cfit*| can do it in Curve Fitting TB if you set the specific model a...

más de 9 años hace | 1

| aceptada

Respondida
change the y-axis value size
You didn't show the code used to create the plot but the answer in general is to first save the handles to the two axes so you c...

más de 9 años hace | 0

Respondida
CFTool: how to get output and use those data
I'll grant the CF Tool is really opaque in many ways, fer shure...this is perhaps the most of the many dark corners... When y...

más de 9 años hace | 1

Respondida
How to convert dates and times from txt to numbers?
OK, with the updated information on what is wanted the overall code is accumulated here in one spot instead of in the string of ...

más de 9 años hace | 0

Respondida
Isolating segments of data in one column using time integrals from the next column
Logical addressing to the rescue!!! :) >> for i=1:length(interval) c{i}=data(iswithin(data(:,2),interval(1,1),inter...

más de 9 años hace | 0

| aceptada

Respondida
Using a loop with a cell array
[~,~,raw]=xlsread('File Wk1edited_Original.xlsx '); ix=cellfun(@isempty,strfind(raw(:,10),'unknown')); raw(~ix,:)=[]; ...

más de 9 años hace | 0

Respondida
How do I extract data from a .dat file contain multiple tables?
Read the full file into character array and then search for the RPM line; that will give you a set of sections within which to i...

más de 9 años hace | 1

Respondida
Datenum Reversal Drifts away from Original Time
Stephen's spot on; unless both the acquisition and whatever is recording timestamps are interrupt-driven and the processing is o...

más de 9 años hace | 0

Respondida
Plot a large array of doubles
for n = 0:1000000 ... Pi(n) = currentPi; end ... plot(n,Pi); _n_ is just a single value of 1000000, the ...

más de 9 años hace | 0

Respondida
Plot trend line from data imported from excel
It's not much more than Excel altho a "trendline" is generally considered linear and certainly the orange curve isn't going to b...

más de 9 años hace | 0

Respondida
How to convert dates and times from txt to numbers?
I'd suggest using |*table*| for such data/analyses. I put your first file into a local file _'kpl.txt'_ and manipulated it with...

más de 9 años hace | 0

Respondida
fprintf in nested for loops
_"Able to get the file opening to work"_ Well, no, not really. What you've done is alias |*sprintf*| to a variable by assign...

más de 9 años hace | 1

| aceptada

Respondida
How can I plot a bar chart with 4 different y-axis and standard deviation?
OK, I ran your function -- it gets thru the barplot ok but barfs on the errorbar with size mismatch. Wasn't sure what your inte...

más de 9 años hace | 2

Respondida
Keep only the first mention of a number in a cell array
>> [u,ia]=unique(C); >> C_new=cell(size(C); C_new(ia)=u >> C_new(ia)=u C_new = '00173' [] [] '00355'...

más de 9 años hace | 0

| aceptada

Respondida
Lagged/Cross Correlations with missing values
isOK=isfinite(A) & isfinite(B); % both rows finite (neither NaN) [r,lag]=xcorr(A(isOK),B(isOK),'coeff');

más de 9 años hace | 1

| aceptada

Respondida
How to use a GUI to create and name a text file
Use [fname,pname]=uigetfile('*.txt'); instead for prepackaged file dialog. See doc uigetfile % for details, more o...

más de 9 años hace | 0

Respondida
How to obtain integer solutions only with fsolve?
Can add constraints to *|fsolve|* but can't force it to be integer-valued. That is a mixed-integer linear programming problem; ...

más de 9 años hace | 0

Respondida
Suppose I have 5 traces of action potential with different peaks. I would like to plot all those 5 traces on the same plot so that all the peaks are same. Basically I would like to plot on the normalized scale.
Well, another shot in the dark...putting the two traces you posted before together... VV=[Vv1 Vv2(2:end)]; T=[Ti1 Ti2(2:end)...

más de 9 años hace | 0

Respondida
How do I convert xtick label to real time? Time is from 18:00 to 23:50 with every 10 minutes interval, so axes for X is from 1 to 36.
Which release? Post HG2, use |*datetime*| for x axis variable and |*plot*| is time-aware. Prior, use |*datenum*| for x axis va...

más de 9 años hace | 0

| aceptada

Respondida
Suppose I have 5 traces of action potential with different peaks. I would like to plot all those 5 traces on the same plot so that all the peaks are same. Basically I would like to plot on the normalized scale.
If all are same length so have each trace in a column in an array, say _data_, then dataNorm=bsxfun(@rdivide, data, max(data...

más de 9 años hace | 1

| aceptada

Respondida
How to delete all *.xlsx files in a folder that contain a specific string within the file?
You'll have to simply iterate over the collection of files, reading each and searching for the string and then delete that file ...

más de 9 años hace | 0

| aceptada

Respondida
MATLAB invalid field name
_" how to solve this and maintain the field name with "/" ?"_ No can do. The '/' is simply not an allowable character in a v...

más de 9 años hace | 0

Respondida
For loop: max iterations exceeded
Has nothing whatsoever to do with the |*for*| loop; it _is_ in the inner iteration of whatever function it is that you're callin...

más de 9 años hace | 1

Respondida
How to enhance the performance of for-loops and cell-arrays (related to statistical calculations)?
S = 'runoff.txt'; O = 'runoff_observed.txt'; D = 'C:\Users\heute\model\results\model_standalone\'; d = dir(fullfile(D...

más de 9 años hace | 1

| aceptada

Cargar más