回答済み
how to plot multiple plots on one figure
I don't have it to be able to test, but most of your problem is _probably_ related to the fact you have two axes, not just one; ...

約10年 前 | 0

回答済み
Extracting an individual string from an array of strings and using it to open a text file...
_"Any advice?"_ Sure...simplify, simplify...!!! :) path = ['C:\Users\myname\Documents\Full Sweep']; files = dir(fu...

約10年 前 | 0

回答済み
R2 with a loglog plot
I see nothing wrong with Star's Answer nor follow-up comment. To compute SSE from such a model requires evaluating the residual...

約10年 前 | 1

回答済み
how use a loop to repeat the same calculation to different files and save the results in between
You're almost there...just create a new filename for output similarly as to how you created the ones you did to read. See the F...

約10年 前 | 0

回答済み
What is the fastest way to convert mat to cell for the following algorithm?
Probably *mat2cell* altho I've not timed alternatives... c=mat2cell(a,256,256,[1 10 10 18 18]);

約10年 前 | 1

回答済み
Importing Column Vectors Sequentially
_"... in ... import app those are the cells ... tab delimited..."_ In that case, use *textscan* and a format string set up to...

約10年 前 | 0

| 採用済み

回答済み
How to generate new table from extrema of an original table?
Without data to look at for any peculiarities or features to use, we can only suggest the general functions to look at... d...

約10年 前 | 0

回答済み
How can I get a string out of a cell array and use it as a condition for a loop?
Well, doing this is _not_ recommended and surely there's a better way to code the application if we had more particulars, but it...

約10年 前 | 0

回答済み
How do I workaround comma used for thousands in csv file?
Use the "%q" format string to import the quoted strings as strings without getting broken up first, _then_ get rid of the embedd...

約10年 前 | 2

回答済み
Help!! New to matlab - 'Assignment has more non-singleton rhs dimensions' error
From doc fminsearch ... Arguments fun is the function to be minimized. It accepts an input x and returns a sca...

約10年 前 | 0

回答済み
How can I find the sum of the perimeter of a matrix?
One way amongst any number... >> M=[1,2,3;1,2,3;1,2,3]; >> I=ones(size(M)); I(2:end-1,2:end-1)=0; >> S=sum(reshape(M....

約10年 前 | 1

| 採用済み

回答済み
Strange behavior when passing single precision numbers into atan2
*single* doesn't have anything to do with it (albeit the precision of the input values is about that of single precision in deci...

約10年 前 | 0

回答済み
Finding multiple x-axes points from y-axes value
OK, try this or a version thereof... >> y=bsxfun(@plus,randn(10),linspace(0,10,10).'); % make some sample data grossly sim...

約10年 前 | 0

回答済み
Plotting a graph.
s=[10, 12, 14;20, 22, 24;40, 44, 48].'; errorbar(mean(s),std(s)) ylim([5 50]) set(gca,'xtick',1:3,'xticklabel',num2st...

約10年 前 | 0

| 採用済み

回答済み
how calculate percentage with a vector and a matrix with nan elements?
>> m=M;m(isnan(m))=0; >> sum(m)./sum(repmat(V.',1,size(M,2)).*isfinite(M))*100 ans = 0 17.3913 33.3333 25.92...

約10年 前 | 0

| 採用済み

回答済み
Drawing Error bars with specific linestyle
Set the _'linestyle'_ property of the second errorbar series object obtained from the _hggroup_ handle returned by *errorbar* --...

約10年 前 | 0

回答済み
How to convert executable file or its contents to text file?
OK, with the additional information provided there's now enough to move comments to an answer...with some background discussion ...

約10年 前 | 0

| 採用済み

回答済み
How to get minor ticks pointing outside the graph
With HG2 (R2015b and later) TMW finally gave such fine detail control...see <http://www.mathworks.com/help/matlab/ref/num...

約10年 前 | 1

回答済み
How can I extract line numbers of text data?
fid=fopen('portion.txt','r'); i=0; % loop counter n=[]; while ~feof(fid) % until we run out of data ...

約10年 前 | 1

回答済み
Skipping part of an index in a for-loop
nDont=2; for j... if j==nDont, continue, end ... doc continue % for details

約10年 前 | 0

回答済み
Fastest way to determine if a character index is a carriage return (\n)?
y=any(text(index)==char(10));

約10年 前 | 0

| 採用済み

回答済み
Get Equation as Input from User (str2func)
*str2func* argument is any desired function you can write as an anonymous one-liner or the name of any existing function, m-, p-...

約10年 前 | 2

回答済み
F vales come out as Infinity using the anovan function.
You've tried to estimate 15 terms with only 15 data points; note you have 0 DOF left for the error term. Hence, the denominator...

約10年 前 | 0

| 採用済み

回答済み
Import from data from messy text file
Pretty straightforward, just use the features in the file to find the wanted sections...it's quite regular in its construction s...

約10年 前 | 1

| 採用済み

回答済み
How to create an mxn matrix with a for-loop
As you've written it, you only have a 1x2 (row) vector at any one time, you overwrite X on each pass. There are certainly more ...

約10年 前 | 0

| 採用済み

回答済み
Why do I receive "exceeds matrix dimensions" after reading a fixed numbered format?
>> fmt=[repmat('%f',1,5) '%*[^\n]']; % 5 floats, skip rest of line >> fid=fopen('lamury.dat','r'); % open the file...

約10年 前 | 0

回答済み
Why do I receive "exceeds matrix dimensions" after reading a fixed numbered format?
What does size(XY) return? Looks like _probably_ only got one return value; w/o any data to compare to, just guessing a...

約10年 前 | 0

回答済み
Detect where an array becomes negative
Sometimes it's just as easy to loop...it's unfortunate in cases like this *find* isn't vectorized; a cleaner syntax doesn't pop ...

約10年 前 | 1

さらに読み込む