Respondida
Perform function on each vector within an array
outcomes = Columns 1 through 3 [1x63 double] [1x246 double] [1x153 double] ... _"First, I'd like to perfor...

más de 9 años hace | 1

| aceptada

Respondida
Counting number of rows in a field of structure
Well, that's an ambiguous question if ever were one...certainly for a given structure/field combination |*size*| works; we need ...

más de 9 años hace | 1

Respondida
How can I get text in figures to display symbols?
Unfortunately, the |*uicontrol*| objects do not expose an 'Interpreter' property as does the |*text*| object or even labels. ...

más de 9 años hace | 0

Respondida
How to obtain data which fall outside the limits of the scatter plots?
If the red line is computed at the same points as the other data, then simply ix=ltbluepoints>redpoints; % logical vector ...

más de 9 años hace | 0

| aceptada

Respondida
All the fieldnames are prefixed with 'x'
_|*table*|_ names must be valid Matlab variable names and (just like SAS and R and virtually all other programming languages) th...

más de 9 años hace | 2

Respondida
How to exit CMD windows after calling Raven.exe inside a loop in a MATLAB code?
# Show the command you're dispatching... # Build a .bat file that runs the program instead of dispatching the program itself: ...

más de 9 años hace | 0

Respondida
close command / dos window
If you must use the trailing '&' to dispatch the command window to the background while the Matlab system continues, then you do...

más de 9 años hace | 2

Respondida
How do I find peak duration with the following scatterplot?
load Time_X.txt load Turbid_Y.txt thrsh=55; % the threshold ix=(Turbid_Y>thrsh); % locations above...

más de 9 años hace | 0

| aceptada

Respondida
How to create an double for loop in matlab?
_"I have 4 matrices in list names A through D..."_ Don't do this! See <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_var...

más de 9 años hace | 0

Respondida
How to convert structured .mat to .csv
Look at doc struct2cell If the whole structure is numeric, then (and only then), you can convert it to an array or vecto...

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

Respondida
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))=[];

más de 9 años hace | 0

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

más de 9 años hace | 0

Respondida
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"_ ...

más de 9 años hace | 0

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

más de 9 años hace | 0

Respondida
¿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...

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

Respondida
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 = '...

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

Cargar más