Respondida
question with correlation
Not sure what you are asking, but this may help. a = 1; b = 20; data = a + (b-a).*rand(20,4); R = corrcoef(data); ...

casi 12 años hace | 0

| aceptada

Pregunta


find repeating numbers
What is the best method to find the numbers in an array which repeat most frequently. For example, say that I have a matrix of v...

casi 12 años hace | 3 respuestas | 0

3

respuestas

Respondida
error using fopen
what about: a = [6,7]; filename = 'E:\test.txt'; fid = fopen(filename,'wt'); fprintf(fid,'%g\t%g',a); fclose(fi...

casi 12 años hace | 0

Respondida
TXT export
This code may give you some ideas: clear all a = 1; b = 20; data = a + (b-a).*rand(100,4); Heading = {'Data'}; ...

casi 12 años hace | 0

Respondida
TXT export
I would suggest using fprintf instead of dlmwrite: <http://www.mathworks.co.uk/help/techdoc/ref/fprintf.html> In order to ...

casi 12 años hace | 0

Respondida
problem in solving code for arrehenius equation,To and Ta are in kelvin
in your loop what is 'l' suppose to be? Your stating that your loop goes from 1 to 'l' but haven't specified what 'l' is. Fro...

casi 12 años hace | 0

Respondida
2D plot
Are you thinking of something like this? clear all x=[1,2,3,4]; y=[-1,2,-3,-4]; strValues = num2str([x(:) y(:)],...

casi 12 años hace | 0

| aceptada

Pregunta


removing for loop by using cellfun
Could anyone provide information on how to remove the for loop from this line of script: for i =1:length(Name); Data...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Respondida
How to exclude more than 1 columns from a matrix?
simple way would be: Data(:,3) = []; Data(:,5) = [];

casi 12 años hace | 0

| aceptada

Respondida
How could I get a smooth curve by "plot" function?
you could use the smoothLine function from the file exchange: <http://www.mathworks.com/matlabcentral/fileexchange/9369-smoot...

casi 12 años hace | 0

Pregunta


Improving matlab skills
What is the best way of improving my matlab skills? I have been using matlab for some months now and have learnt a lot in that t...

casi 12 años hace | 2 respuestas | 1

2

respuestas

Pregunta


significant correlation values
How is it possible to test whether the correlation between 2 time series is significant? For example: clear all a = 1...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


convert Julian day to month
Consider the following: clear all depths = 1:1:12; temp = 0 + (20-0).*rand(8760,12); DateTime = datenum('2011-01-0...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


change interval for xtick label
Consider the following example: clear all x = (0:23).'; n = numel(x); time = cellstr(datestr([ones(n,1)*[2012 3 1...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Respondida
Simple but elusive array question
should your question be like 'a' below? clear all a = [1,1,3;2,0,4;3,0,0;0,0,0]; b = arrayfun(@find,a,'un',0); If ...

casi 12 años hace | 0

Pregunta


tick marks in boxplot
close all fh = figure(1); boxplot(data,time,'colors','k','jitter',1,'medianstyle','line',... 'whisker',...

casi 12 años hace | 1 respuesta | 1

1

respuesta

Respondida
changing text orientation of lcolorbar
Im not sure if this answers your question but if you want to rotate the text by the colorbar (as noted above): c = colorbar...

casi 12 años hace | 0

Pregunta


vectorizing a script with cellfun
I'm aiming to import data from various folder and text files into matlab. clear all main_folder = 'E:\data'; %D...

casi 12 años hace | 3 respuestas | 0

3

respuestas

Respondida
xlsread and fwrite: remove unwanted single quotes from strings
The quotes just mean that it is a string. If you type something like stringcountry{1} it should provide the name of the countr...

casi 12 años hace | 0

| aceptada

Respondida
Finding value behind string
Couldn't you import all of the text file into matlab using textscan and then select the appropriate fields afterwards? It may pr...

casi 12 años hace | 0

| aceptada

Respondida
cells related
pre-allocate memory first, this may speed it up. <http://www.mathworks.co.uk/help/techdoc/matlab_prog/f8-784135.html> ...

casi 12 años hace | 0

Respondida
Retrieve data from Hard Drive (Local Directory)
I would think that you need to use the dir command. If the files are located in your C drive then: clear all TopFolder =...

casi 12 años hace | 0

| aceptada

Pregunta


plotting data which extends several years
Consider the following example: clear all time_2007 = linspace(1+0.0417, 366, (366-1)*24); time_2008 = linspace(1+0...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


time series analysis - correlation
My task involves finding the correlation between different variables for example air temperature and water temperature. The corr...

casi 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


correlation coefficient between cells
I have a dataset stored in a similar manner to the follwing example: clear all Year = cell(1,4); Year{1} = {'Y2007','...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Respondida
The technique of using "xlsread"
The following link may be useful: <http://www.mathworks.com/matlabcentral/fileexchange/22365-function-for-faster-data-trans...

casi 12 años hace | 0

Pregunta


find the largest array
Consider the following example: clear all data = {rand(1,5),rand(1,4),rand(1,4),rand(1,6)}; data1 = cellfun(@(x) cell...

casi 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


corrcoef - vectors of different lengths
How is it possible to find the correlation between vectors of different lengths? For example: clear all time1 = 1 + (36...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


plotting second y axis with pcolor command
Is it possible to prodce a pcolor plot with 2 yaxis? Consider the following example: clear all temp = 1 + (20-1).*ra...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


find similarities between cells
Consider the following example: clear all Year1a = {'Y2007','Y2008','Y2009','Y2010','Y2011'}; Year1b = {'Y2004','Y200...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Cargar más