Answered
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 ...

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 1

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

| accepted

Answered
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,'...

8 years ago | 0

Answered
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...

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

| accepted

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

8 years ago | 0

Answered
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:...

8 years ago | 1

| accepted

Answered
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 = ...

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

| accepted

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

8 years ago | 0

Answered
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...

8 years ago | 1

| accepted

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

8 years ago | 0

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 1

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

Answered
Specify a format character vector in readtable
Ah! That's an internal problem in that |timerange| _calls_ |datetime|. Unfortunately, there's a quality of implementation pr...

8 years ago | 1

| accepted

Answered
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
On a too-hot summer day I thought I might just try to answer some Q? that hadn't gotten responses...a sort on :unanswered by dat...

8 years ago | 0

Answered
Specifying legend information based on point plotted
% 'r' b' 'm' 'c' 'g' 'k' % color order lookup vector letter c=[[1 0 0]; [0 0 1]; [1 0 1];...

8 years ago | 0

Answered
Generating sets of non repeating random numbers
>> ix=reshape(randperm(40),10,[]) ix = 35 23 21 40 26 17 8 36 38 5 27 18 ...

8 years ago | 2

| accepted

Answered
On multiple logical test failing in if statement
Apparently the issue was likely one of the cases wasn't actually _T_ or some similar misstep, but illustrates the difficulties i...

8 years ago | 2

| accepted

Answered
How to find elements of an Array using indexes.
for i = 1:31 [Y, I] = min((latS-latG(i)).^2 + (lonS-lonG(i)).^2); disp(I) ...

8 years ago | 0

| accepted

Load more