Respondida
how to start my plot from start of axis
But you plotted against ordinal number of observation... plot((SMed_eq),'-r','Marker','*','LineWidth',1.3); hold on p...

más de 8 años hace | 0

Respondida
How can I force matlab to write all decimal places to a .txt file?
_"cuts off digits past the hundredths place in the first column, but not for the second column. "_ fprintf(fileID,'%6.2...

más de 8 años hace | 1

| aceptada

Respondida
XLSWRITE not behaving as expected
_"Am I missing something here or has the source code changed over the years?"_ What you're missing in |dlmwrite| is dlmw...

más de 8 años hace | 1

| aceptada

Respondida
Return subscripts of common rows for multi-dimensional matrix?
ix=mod(find(all(ismember(A,B),2)),size(A,3));

más de 8 años hace | 0

Respondida
How do I reshape a large matrix?
B=reshape(A,[],9); The kicker is that mod(numel(A),9)==0 or will fail or will have to pad/truncate A.

más de 8 años hace | 0

Respondida
Can someone suggest good resource for signal analysis using FFT?
I'm a geezer so my standby favorite for years has been <https://www.amazon.com/Fast-Fourier-Transform-Its-Applications/dp/013...

más de 8 años hace | 0

| aceptada

Respondida
How can I remove quotes from a table?
Because you used default conditions to |readtable| and didn't give it enough help to parse the data correctly; hence it read it ...

más de 8 años hace | 1

| aceptada

Respondida
How to substitute some of the values in a matrix
for i=1:size(ID,1) [inA,locB]=ismember(ID(i),IDwords); if inA RT(inA)=RTc(locB); end en...

más de 8 años hace | 0

| aceptada

Respondida
How to fprintf one large variable that is a table?
nCol=10; % how many columns you want??? fmt=[repmat('%11.3E',1,nCol) '.\n']; % format...

más de 8 años hace | 1

Respondida
Advance for loop variable if condition met
doc continue doc break doc for There's also always doc while if a counted |for| isn't really the bestest cons...

más de 8 años hace | 0

Respondida
open a text file using fopen in read mode
data=fopen('data.txt','r'); |fopen| doesn't return data; all it does is return a file handle for |fscanf|, |textscan| and f...

más de 8 años hace | 0

Respondida
How to create legend for two error bar plots
_h_ and _ht_ are column vectors of handles and you've concatenated them into a 2x2 array instead of a vector...it's trying to pu...

más de 8 años hace | 0

| aceptada

Respondida
How can I polar plot in decibels?
You're in luck; TMW did introduce a somewhat more capable polar plotting capability in R2016b... hP=polarplot(teta,corte0,'...

más de 8 años hace | 0

Respondida
How can I introduce a variable in a plot using text?
Need to fix the syntax errors, first in the string and then in |text|... text(5,5,['\leftarrow' num2str(m)],'color','r','Fo...

más de 8 años hace | 1

| aceptada

Respondida
Fitting data to Gaussian function forced to have zero mean
Use |mle|; there are some examples in the doc fitting distributions with fixed parameters... Given _x_ is your observation ve...

más de 8 años hace | 0

Respondida
Question about "triggerlevel"
_"that trigger level of 0.1 stands for."_ It's amplitude of the input signal in whatever units it is at that point; that's to...

más de 8 años hace | 0

| aceptada

Respondida
How can I obtain a truncated log-Normal distribution object?
You can't use the builtin distribution objects, no; they don't have the flexibility to be truncated distribution desired; what y...

más de 8 años hace | 0

Respondida
I want to add a column of numbers to a text file which already exists, how?
Short answer is to just create the file anew... t=readtable('yourfile'); % or whatever way to read; readtable is pretty...

más de 8 años hace | 0

| aceptada

Respondida
Hist3 axis scale (time)
hAx=gca; % handle to current axes du=seconds(interp1(zlim,zlim,hAx.ZTick)); % make durat...

más de 8 años hace | 0

Respondida
I can't get my error-bar plot to work
h = errorbar(fitresult,'b', xData, yData,'.k',er); %THIS LINE gives me the error message As it rightfully should; <https:...

más de 8 años hace | 1

| aceptada

Respondida
Plotting a fit with excluded data results in error "Subscript indices must either be real positive integers or logicals."
I can reproduce symptoms here with R2017b; appears to be a bug. I thought perhaps using the named parameter form handle = ...

más de 8 años hace | 1

| aceptada

Respondida
How can I change marker size when plotting?
h = plot( fitresult,'b', xData, yData, '.k', 'MarkerSize',10); Looks like you've exceeded the smarts of the enhanced |plo...

más de 8 años hace | 0

| aceptada

Respondida
running matlab using command line
Append an ampersand (&) to the command string

más de 8 años hace | 0

Respondida
For 'readtable' func parameter 'Format' is not recognized although importing from a text
As documented... T = readtable(filename,opts,Name,Value) creates a table using the import options and with additional opt...

más de 8 años hace | 1

| aceptada

Respondida
Summing in Matlab using data extracted from Excel
vals=xlsread(filename,2,'C8:C13'); total=sum(vals);

más de 8 años hace | 0

Respondida
kmeans clustering on n*3 matrix
>> help kmeans kmeans K-means clustering. IDX = kmeans(X, K) partitions the points in the N-by-P data matrix X int...

más de 8 años hace | 0

Respondida
fzero - how to set maximum number of iterations
"Yes, we have no bananas today!" |fzero| doesn't use the iteration count variables in the options object, true. If it were...

más de 8 años hace | 0

| aceptada

Respondida
Read/Write large CSV file
Confirmed behavior w/ R2017b; it's an issue with record length and |textscan| it appears...I didn't explore just where it actual...

más de 8 años hace | 1

Respondida
FFT - Matlab Code not correct
_"As a sampling frequency, I have chosen the frequency that I have also set the pulse generator (5Mhz)."_ There's your proble...

más de 8 años hace | 0

Respondida
plot multiple graphs in same plot alligned
Then standardize the _y_ data before plotting each line in a consistent fashion -- one way would be as <https://www.mathworks.co...

más de 8 años hace | 0

Cargar más