Respondida
How can I expoort data from matlab to R and not lose format when using read_csv command in R?
That's an |R| syntax question, not Matlab and it's been so long since used it I don't recall much at all about it. Are you sure...

más de 9 años hace | 0

Respondida
How add multi line title to figure (not to plot)?
Unsupported feature, sorry. Find another task...or change assignor's expectations. :)

más de 9 años hace | 0

Respondida
Plotting from a for loop
td1=zeros(0:1:5); for t=0:1:5; ... pt=PartialTrace(rhoout,[3,4,5,6],[2,2,2,2,2,2]); td1=(pt-rhoENout)^2; ...

más de 9 años hace | 0

| aceptada

Respondida
FSEEK error while running Matlab function
The error says the file handle is invalid -- ... fid=fopen(filename,'r'); fseek(fid, 12, 'bof'); % skip the 12-byte H...

más de 9 años hace | 0

Respondida
How to convert many .mat file into many tab separated .txt file
Use the |*dir*| solution at the <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F <FAQ>> page to sequen...

más de 9 años hace | 0

Respondida
How do you troubleshoot error 'Out of memory. The likely cause is an infinite recursion within the program.'
Add the comments back in front of the line from % EXAMPLES: ... to ... %% Create Figure Those lines were...

más de 9 años hace | 0

| aceptada

Respondida
How to put only the day number on the X-axis while 24 values being plotted for each day?
Did you convert to datetime as I suggested in the earlier thread? If so, if you have late release (R2016b?) use the ruler forma...

más de 9 años hace | 0

Respondida
How to find intersection between two outputs?
What you're missing is that |*intersect*| is a comparison of the elements in the two arrays for exact equality of the members th...

más de 9 años hace | 1

| aceptada

Respondida
How to avoid double counted hours for a given day
Convert your time data columns to _datetime_ values with |*datetime*|. It has ability to use a given time zone and output UTC. ...

más de 9 años hace | 0

Respondida
Diff but not when 0
X(X==0)=nan; % flag zero locations d=diff(X); % compute difference w/ flagged d(isnan(d))=0; % replace NaN i...

más de 9 años hace | 1

| aceptada

Respondida
Retrieving variable declared in batch file, into MATLAB
Already answered in your NG thread <https://www.mathworks.com/matlabcentral/newsreader/view_thread/349153 <view_thread/349153>>

más de 9 años hace | 0

Respondida
how to add datetime variable to a bar graph
For some reason TMW hasn't yet gotten around to making the rest of the plotting routines |*datetime*| aware so you've got to rev...

más de 9 años hace | 0

| aceptada

Respondida
x-ticklabels with varying distance
Yeah, just define an associated _x_ vector on a 1:1 basis with the _y_ values (your _S_ arrays here) that has the appropriately-...

más de 9 años hace | 0

Respondida
Using sprintf to match the results of format
As a starting point >> fnprnt=@(x) fprintf('%.5g\n',x) fnprnt = @(x)fprintf('%.5g\n',x) >> fnprnt(pi) 3.1416 >> f...

más de 9 años hace | 1

Respondida
Removing an empty folder and subfolder?
The |dir| structure on those subdirectories will return only the two directories entries '.' and '..'. So, check |length(d)|==2...

más de 9 años hace | 1

| aceptada

Respondida
Read only specific columns and rows of text file with various length
|*dlmread*| isn't able to handle the file with character data in the first column correctly -- that's where the blank line is co...

más de 9 años hace | 0

Respondida
Construct a table with the index of the positions of sign changes on a matrix
To find the transition locations use ix=[1 find([false abs(diff(M(:,4)))==2)]; This is then the locations (rows) in the ...

más de 9 años hace | 1

Respondida
How to write the following expression in Matlab
Presuming you intended y = 1/[1+sinh(4t) + 3ln^2(t)] as the above would just be y = sinh(4t) + 3ln^2(t) as written w/o an...

más de 9 años hace | 0

Respondida
Identify and fill missing time gaps with NaN
"Why?" is floating point roundoff by having built the time series vector by using colon and a |dt| value computed as a fractiona...

más de 9 años hace | 1

Respondida
How do I include a header file in MATLAB code?
It's a really basic question but Matlab m-file syntax doesn't include the facility. One way you can simulate it is to make the ...

más de 9 años hace | 0

| aceptada

Respondida
Log plots - unwanted tick marks
The ticks belong to the opposite-hand axes; their visibility can only be controlled by the outer box property being _'on|off'_ ...

más de 9 años hace | 0

Respondida
Error: Undefined function or variable 'fgetl' when fgetl() is placed inside an else statement
fid = fopen(file_in,'r'); line = fgetl(fid); if(fid == -1) error('Error opening %s. Exiting.', file_in); ... ...

más de 9 años hace | 0

Respondida
what is error in this code?? {W/ textscan input)
Note the specific text of the error message and the line it error'ed on: "First input must be a valid file-id or *non-empty c...

más de 9 años hace | 0

Respondida
How to change date formats of x-Axis?
_"I have a datestring, created with datetime"_ *NO!* You don't have a string at all. |datetime| creates a _datetime_ class...

más de 9 años hace | 1

| aceptada

Respondida
Plotting two x-Axes with numbers and dates
See <graph-with-multiple-x-axes> for example. They've really made it hard to find the link; I never did find it in current doc; ...

más de 9 años hace | 0

| aceptada

Respondida
How can i run correlations from one row across several rows in another matrix??
|corrcoef| returns the symmetric array of coefficients, not just the single _r_ statistic for the two-variable case. Hence, in ...

más de 9 años hace | 0

| aceptada

Respondida
Loop through and plot columns in excel
Fuggetabout the actual columns, just read the data and iterate over however many you have... filename = 'samplefile.xlsx'; ...

más de 9 años hace | 0

Respondida
Is there a way to do Column Vlookup or some sort of Left Join in Matlab
[~,lib]=ismember(A,B(:,1)); given A,B of same class. If B(:,2) isn't 1:length(unique(A)) as is here, then res=B(lib,2...

más de 9 años hace | 1

| aceptada

Cargar más