Answered
Plot multiple axis in GUI (2 y-axis and 1 x-axis)
The key is in the error message _"Conversion to double from cell..." combined with the subject line of multiple axes and the...

12 years ago | 2

Answered
Spliting data based on date
Convert to datenums and then make selections based on those...of course, convert the comparison dates to datenum as well.

12 years ago | 2

Answered
How to average multiple rows into a single row?
B=mean(A); Read doc mean And then go thru the tutorial info in "Getting Started" to learn the basics of Matlab...

12 years ago | 1

Answered
I have a text file containing certain story that i want to read using Matlab. How can i do that?
Depends on what you want/need to do with it once you've read it... As a cell array of strings, one cell/line file = text...

12 years ago | 2

Answered
help about fprintf ( 'x = % f / n', x)
Try setting x=pi; and then the above line at the command line and see... Also, under the doc for formatting strings u...

12 years ago | 1

| accepted

Answered
Convert to serial using only year and month (no day)
Sure, just use an arbitrary day -- '1' would be a logical choice although you could choose any day within the month. B=[dat...

12 years ago | 2

Answered
fprintf without empty lines
... fid = fopen(filename_helperfile, 'r'); tempfilecontent = fread(fid,'*char')'; fclose(fid); fid = fopen(filen...

12 years ago | 1

| accepted

Answered
How MATLAB move between discrete measurements
By *plot*, *scatter*, etc., simply straight line interpolation between points. Use *cftool* or one of the specific fitting me...

12 years ago | 1

Answered
When modelling the melting of snow on sea-ice, how can I create a vector, for example the density of both snow and ice, respectively, so that I can run it in a loop?
_...show me how a vector might be constructed for that? (density: snow=200, ice=919, water=1000)_ Basically, it's an exercise...

12 years ago | 1

| accepted

Answered
How to make a loop for importing files with different names
Looks like for the given set of files that d=dir('*5Hz*.csv'); for i=1:length(d) x=importdata(d(i).name); ... ...

12 years ago | 1

Answered
When modelling the melting of snow on sea-ice, how can I create a vector, for example the density of both snow and ice, respectively, so that I can run it in a loop?
Well, it's easy enough to create the vectors as rho=200*ones(5,1); say, for snow but I'm presuming you're keeping a movi...

12 years ago | 1

Answered
Can you help me about this problem?
More than likely you've tried to append a row and a column vector. Either way, a vertical concatenation must have the same numb...

12 years ago | 0

Answered
Plot with two x-axes with additional input arguments
Just do what you want directly if *plotxx* isn't flexible-enough interface... function [ax,hl1,hl2] = plotxx(x1,y1,x2,y2,xl...

12 years ago | 1

| accepted

Answered
Setting y-axes range on plot with multiple x- axes
_...keep the y-axes limits the same, in this case [-100,2000]..._ set(ax,'ylim',[-100 2000]) Alternatively, you can use ...

12 years ago | 2

| accepted

Answered
Plot vertical lines with time in x-axis?
_lat_ is the index into the _data_ array of the maximum location. You're not converting it to the time t_lat=lat*dt; line...

12 years ago | 2

| accepted

Answered
how to find out the time interval between two consecutive events?
Check out <http://www.mathworks.com/matlabcentral/fileexchange/24255-consecutive-vector-spliter> <http://www.mathworks.com...

12 years ago | 1

Answered
read a formated text
Forget the '\t' in the first format string; *textscan* uses it as one of the default delimiters, anyway. I pasted one line in...

12 years ago | 1

| accepted

Answered
delete rows- tanimoto matrix
_"...but if you have time i would like to see your solution :)"_ Well, I've not tested this extensively but it does reproduce...

12 years ago | 1

| accepted

Answered
Is it possible to do a for loop of this code?
_...if its possible to avoid the repetition and loop one line through all the four letters..._ "Possible", yes, but "there be...

12 years ago | 1

| accepted

Answered
load multiple mat files
00603407c12f_2014-09-04, 00603407c12f_2014-09-05, 00603407c12f_2014-09-06 and so on. d=dir('00603407c12f_*.mat'); ...

12 years ago | 0

| accepted

Answered
How to ignore some data?
First just some "tricks" on writing formatting strings -- format1='%*f %*f %f %f %f %f/%f/%f %f '; %gia na agnoei ta IT & f...

12 years ago | 0

Answered
Importing and assigning values to CSV files.
Just ran into the same kind of a searching problem a few weeks ago doing an analysis of the local community college foundation f...

12 years ago | 2

| accepted

Answered
How to detect the fluctuating point (cut-off point) of a signal?
<http://www.mathworks.com/matlabcentral/answers/164913-difficulty-in-fitting-two-lines-with-polynomials> The first derivative...

12 years ago | 3

| accepted

Answered
save an excel file to be read only
Inside Excel means using COM; you can use ! operator to shell OS command and set the ReadOnly file attribute for OS protection.

12 years ago | 2

Answered
What is the most compact form of a break?
Then do so... :) condition=false; while ~feof(fid) condition=somefunctionofsomthinghere; if condition, break, ...

12 years ago | 1

| accepted

Answered
How can I select a value from a filename and write a different value to a structure?
This is simple enough to parse the filename; just need to know where it is and how it's stored. I tend to process sequences of ...

12 years ago | 2

| accepted

Answered
How can I assign different colors to each plotted line?
At the top level of *plot* can't pass the array; only a single color vector. Save the line handles and set their properties.....

12 years ago | 2

Answered
How to set axis on a specified position on my figure window?
help axes axes Create axes in arbitrary positions. axes('position', RECT) opens up an axis at the specified locat...

12 years ago | 1

Answered
Difficulty in fitting two lines with polynomials
Piecewise linear regression is fairly easy to code anyway...the algebra to add the condition to match the two at the breakpoint ...

12 years ago | 2

Answered
Single best fit curve for multiple datasets
Think need a little (or a lot) more info...but basically you've got to redo the processing to keep the individual time series af...

12 years ago | 1

Load more