回答済み
Can anybody edit this code such that everytime loop runs, line gets printed to the row next to the already printed row in results.csv file?
_" can't open the file outside the loop since it is part of a large program"_ Of course you can (and it's the only practical ...

約9年 前 | 0

回答済み
Create cell array of cell arrays from data file
# _"How do I create a cell array of n empty cell arrays, where n can vary?"_ |*C=cell(n,1);*| # _"Is there ano...

約9年 前 | 0

回答済み
Data extraction from .csv and .txt files
_"I'm not quite sure how to open individual files based on a row of the subject database_" Well, it's not the row of the data...

約9年 前 | 0

| 採用済み

回答済み
Plotting confidence intervals-lines in one graph with means inside
As stylistic aside, in Matlab "use the vectors, Luke!" :) Replace the loop with the vectorized equivalent; NB: the "dot" op...

約9年 前 | 0

| 採用済み

回答済み
how to delete an entire column from a matrix if there is a certain number in that column?
B=A(:,~any(A==9)); If you don't need _A_ any longer, it's just a simple to do it in place... A(:,any(A==9))=[];

約9年 前 | 0

回答済み
When I run my MATLAB, it generate letters (what I want) for little matrix, but when the matrix is too long, it also run but generate symbols rather than letters
ASCII printing characters are in range of decimal 32-126 with some other symbols in most character sets scattered around above. ...

約9年 前 | 0

回答済み
How do I read a csv file that has text and numbers?
doc textscan Was busy last night, sorry... _"... 6 rows of text then 2000 rows of numbers ... want to read the numbers"_ ...

約9年 前 | 0

回答済み
Write (and generate) text and numeric data into one txt file
>> fmt='REGION s1-%d\nCOORDINATE %d 1 1 \n/\n'; >> fprintf(fmt,[1:3;1:3]) REGION s1-1 COORDINATE 1 1 1 / REGION s1-2 CO...

約9年 前 | 0

回答済み
¿How to change title of plot while using quoted text, variables, multilines and Fontsize?
hTl=title({'\bfLine 1';'\rmLine 2'},'fontsize',17); *Addendum* Missed the 'quoted' string--you just have to "double-up" t...

約9年 前 | 1

| 採用済み

回答済み
fclose() doesnt work
Probably in your testing you have had an error or other misstep along the way in which you have overwritten the file handle vari...

約9年 前 | 0

回答済み
How do I calculate a sum associated with text from an Excel file?
It would be better to regularize the spreadsheet first but presuming that's not practical, try the following... xlRange = '...

約9年 前 | 0

回答済み
For looping problem: storing all answer in array
... IDX=0:30:90; % make the loop values variable qopt=zeros(size(IDX);, % to save temporary ...

約9年 前 | 0

| 採用済み

回答済み
Double y-axis plot
_"column 1 are datenum values, ... column 2 and 3 ... on the left and ... column 4 on the right"_ Nothing to it... :) [h...

約9年 前 | 0

| 採用済み

回答済み
Polar plots of Angular data
For starters, "salt to suit"... >> theta=rand(3,1)*2*pi; r=ones(size(theta)); % arbitrary r,theta vectors >> hLp=polar...

約9年 前 | 0

回答済み
Where to find the file generated by ann2rr() ?
function varargout=ann2rr(varargin) [RR,tms]=ann2rr(recordName,annotator,N,N0,consecutiveOnly) Wrapper to WFDB ANN...

約9年 前 | 1

| 採用済み

回答済み
How do i append new columns or rows into existing Excel file?
TMW has only supplied the |*xlsread/write*| pair as packaged high-level functions interacting with Excel. If you know the size ...

約9年 前 | 0

| 採用済み

回答済み
dtstr2dtnummx with milliseconds
Well it dawned on me overnight--that's the helper private function |*datenum*| uses so the |*datenum*| formatting comments above...

約9年 前 | 0

回答済み
Setting and saving markers on plots
You might look at the code in Answer to a slightly different question just the other day where I drew a plot that does something...

約9年 前 | 0

回答済み
function with multiple datasets
Repeating with only some minor changes from the previous to get you started...begin with the script to read the files and create...

約9年 前 | 0

回答済み
Inputname statement - useful example
I don't know as I have a directly useful real example on hand, and in general functions shouldn't rely on needing outside knowle...

約9年 前 | 0

回答済み
How can I modify the findpeaks command to give me a width at 80% of peak height (instead of at the build in 'halfheight')?
I'd suggest _*not*_ modifying |*findpeaks*| but to postprocess the results instead--a sample from one of the examples of the bas...

約9年 前 | 1

| 採用済み

回答済み
plotxx scattered plot with smooth line and marker
|*plotxx*| is a File Exchange submittal -- and looks to be pretty limited in its implementation. If you start with it, you'll ha...

約9年 前 | 0

回答済み
Tracking boxplot x axis labels
OK, I came in late and just picked up on the _'ticklabel'_ part of the conversation. Went back to the beginning and looked at t...

約9年 前 | 1

| 採用済み

回答済み
i am taking data from a txt file and doing some calculations on it and thn saving results into another. txt file but when i m opening it it is showing garbage value?
Just using a filename extension of _".txt"_ doesn't change the default behavior of |*save*| which is _*binary .MAT-file*_ format...

約9年 前 | 0

回答済み
How do I add a month as the xlabel on a grouped bar graph?
You can try it, but I doubt the _ticklabel_ property has been updated to accept categorical variables-- set(gca,'xticklabel...

約9年 前 | 0

回答済み
Second x-axis overwriting previous plot
The thing in the example you didn't copy is the use of |*line*| instead of |*plot*| to draw onto the second axis. |*plot*| does...

約9年 前 | 0

回答済み
I need to generat a structure name
While Stephen's answer is spot-on for variables, structures are different and can be manipulated more readily and without explic...

約9年 前 | 0

回答済み
Function gives ans=0 when comparing text
Read the data files as tables and use categorical variables; will make things downstream much simpler. >> inc=readtable('in...

約9年 前 | 2

| 採用済み

回答済み
importdata from dat file not picking the first cell
The _Tips_ section in the doc for |*importdata*| has the following... Tips To import ASCII files with nonnumeric character...

約9年 前 | 0

| 採用済み

回答済み
Add contents of two columns to new columns with a delimiter between them
Well, it's simply impossible to add something like that as another column in an |*int8*| array. To do something similar you _...

約9年 前 | 0

さらに読み込む