回答済み
how to extract this data?
As noted above, w/o a file to test, something like fid=fopen('yourfile'); % open file d=cell2mat(textscanf(fid,'','he...

10年以上 前 | 0

回答済み
Question about the legend command
Since it really isn't content of the x,y that you're interested in grouping on, create the grouping variable as (or similarly)--...

10年以上 前 | 0

回答済み
Top x-axis disappeared in plotyy
The subsequent answer buried at the end of the long previous discussion is, I think, so significant I'll repost it here alone-- ...

10年以上 前 | 0

回答済み
how to plot prediction and confidence interval
p = predint(fitresult,x,0.95,'observation','off'); ci = confint(fitresult,0.95); ciup = polyval( ci(2,:),x); cilow = ...

10年以上 前 | 1

| 採用済み

回答済み
Top x-axis disappeared in plotyy
OK, now we have enough to diagnose the real problem -- turns out didn't need so much but without _something_ that could run to i...

10年以上 前 | 0

| 採用済み

回答済み
Why do I get a graph without a line when I try to plot the following equation?
Need the "dot" operator on the divide as well as the exponent...as is it's a matrix operator, not element-wise. doc / % fo...

10年以上 前 | 1

回答済み
Linestyle of matrix with plotyy
Use *set* for multiple handles... set(hL1,'linestyle',':') Don't know why TMW didn't add the facility in the methods; if...

10年以上 前 | 0

回答済み
How can I parse the string to extract numbers into two matrices
This one is trivial...assume _s_ is the string, then >> cell2mat(textscan(s,'T%2dD%3d','collectoutput',1)) ans = ...

10年以上 前 | 0

| 採用済み

回答済み
Does Matlab has an internal cache for files?
Yes, Matlab does cache functions on first execution. Use clear yourfunctionname to remove the previous version from mem...

10年以上 前 | 0

| 採用済み

回答済み
How to read specific columns into an array(or a table) from a spreadsheet in matlab?
AFAIK, "no can do" with *xlsread*; it can only pass a single range argument. In Matlab, it's probably simplest to simply import...

10年以上 前 | 1

| 採用済み

回答済み
How to reshape data for plot?
That there are a differing number of entries per day makes it a little more of a challenge; that they kindly gave you the count ...

10年以上 前 | 0

| 採用済み

回答済み
How can I export Confidence Intervals to excel sheet?
doc xlswrite

10年以上 前 | 0

回答済み
Plotting from a for loop?
Use the vectors, Luke... :) You're overwriting each pass thru the loop; you can make an array and populate it, but "the Matla...

10年以上 前 | 0

回答済み
Hello! I am trying to use plotyy in a for loop as in the example code below but the points related to the y achses on the right hand side are not being plotted correctly. I looked but I could not find a solution to this answer. Thank you!
OK, dawned on me overnight...use *scatter* instead. Couple alternatives, probably simplest is % build handle to scatter us...

10年以上 前 | 0

| 採用済み

回答済み
The semilogy plot doesn't show the grid lines ?
grid on % both x- and y-axes or set(gca,'YGrid','on') for only y-axis.

10年以上 前 | 0

回答済み
How do i check, where a curve gets constant after certain time period in 8760 hours graph
Look at delt=diff(y); and where does it become close to zero for a period. Using *find* with the _k,'last'_ optional p...

10年以上 前 | 1

| 採用済み

回答済み
Piecewise non-linear curve fitting for a specific type of data
I don't have time to write the full model at the moment, but the idea would be "piecewise regression". I showed the two straigh...

10年以上 前 | 0

回答済み
How do I find a value in a vector and then create a new vector with those value?
>> TS1='%@3Gb6'; >> find(iswithin(TS1,'A','z')) ans = 4 5 >> >> type iswithin function flg=iswithin(x,...

10年以上 前 | 1

| 採用済み

回答済み
how to increase the number of digits for the coordinates of a point in figure when I click one.
I don't see a place to set the default callback; it probably does exist somewhere but didn't find it documented in the time I ha...

10年以上 前 | 0

回答済み
We call this as Script or function
It is a function if the m-file beginning line contains the keyword *function*, otherwise it's a script. <http://www.mathworks.c...

10年以上 前 | 0

| 採用済み

回答済み
How can ı use PDF as an input in matlab??
See <http://www.mathworks.com/matlabcentral/answers/155500-how-to-extract-data-from-pdf-file-in-matlab#answer_152421 How to e...

10年以上 前 | 0

回答済み
This code gives me a strange plot I cannot figure why. Many thanks for any help
_" I was unable to get this subplot axis problem fixed"_ Don't know why it didn't register with me before, but the problem is...

10年以上 前 | 1

| 採用済み

回答済み
How can I remove all spaces in a .txt file ?
If you really mean _all_ as in "all"... >> type burak.txt % made a file with your line twice... 08 0C F0 6D 86 EA 44 2D ...

10年以上 前 | 1

回答済み
This code gives me a strange plot I cannot figure why. Many thanks for any help
I noticed the following this AM I missed yesterday -- You're missing the _t_ variable for the x-vector on the RH axes in the ...

10年以上 前 | 1

回答済み
Legend in GUI: Preset string and colors.
I "don't do GUIs" but I'd guess to create a set of hidden lines with the desired characteristics and use them for the legend on ...

10年以上 前 | 0

回答済み
How do I shorten my code to prevent writing the same thing over and over?
if Rpeaks(i)-halfsegment<0 window=(1:Rpeaks(i)+halfsegment); %takes into account that the forces don't start a full halfs...

10年以上 前 | 0

| 採用済み

回答済み
Using unique fuction on cell array
>> ccc % a sample cell array similar to shown... ccc = '13,14' [10700] '13,14' [ 0] '123' [ ...

10年以上 前 | 0

回答済み
What is the most efficient code for calculating a signal based on voltage time history and a calibration curve.
Use the vectorized form for *interp1* vOut=interp1(vc,yc,v,'cubic'); A comparison showed almost no difference between us...

10年以上 前 | 0

| 採用済み

さらに読み込む