Answered
I have data for five different years, I need to separate each year separately? what's the best possible way? I tried using datnum command..
you should not use datenum but datevec as then the year is stored in the first column timeVector =datevec(time); timeYear ...

casi 7 años ago | 0

| accepted

Answered
Printing EPS file with a transparent slice
I am not familiar with your particular problem, but this submission has always helped me up to now to get my figures correct in ...

casi 7 años ago | 0

| accepted

Answered
Colorbar not matching for loop plot colours
just a quick glance so not sure if this is what you are looking for but you should put the call to create the colors of jet outs...

casi 7 años ago | 1

| accepted

Question


neural network target data
is it possible in matlab to have an aggregated target data for example, my target data are average daily values but I want my...

alrededor de 7 años ago | 1 answer | 0

1

answer

Answered
How do I convert a text file which has one row of XY co-ordinate data into two separate columns?
read in all the data from the row and then you will have a column vector you could then use rowData = reshape(A,2,[])...

alrededor de 7 años ago | 1

Answered
Error using load? Unable to read file
you could use a try - catch block try load laserdata catch % write whatever code you want to be executed i...

alrededor de 7 años ago | 0

| accepted

Answered
How to identifiy similar rows in a matrix ?
have you tried the function unique with the option 'rows'?

más de 7 años ago | 0

Answered
Matrix to be printed to a text file
the error that is given has nothing to do with the NaNs in your file but means that the file to were you want to write could not...

más de 7 años ago | 0

Answered
How to display the celcius sumbol (°C) using fprint??
first search the previous answers and you will find what you are looking for: <http://www.mathworks.com/matlabcentral/answers/3...

más de 7 años ago | 0

Answered
Compare values within a matrix
if you mean to find all numbers that are equal to each other when disregarding the numbers behind the comma than you can use som...

más de 7 años ago | 0

Answered
Subscripted assignment dimension mismatch.
you should do this lower_1(1:firstmax, :) = [x(1:firstmax)',f1(1:firstmax)']; upper_1(firstmax:end,:) = [x(firstmax:end)',...

más de 7 años ago | 0

Answered
How to get the starting and ending index of repeated numbers in an array?
try using the diff function before calling find

más de 7 años ago | 2

Answered
How to change the x increment in xy files?
just use interp1 to set all data to the same x-vector via linear interpolation. If you have large datasets, you might want to u...

más de 7 años ago | 0

Answered
How do I plot using a circle on one end and a diamond on the other? see screen shot
as you can see from the legend also, these are just 4 different plots, if the data you have to plot your function is stored in x...

más de 7 años ago | 0

| accepted

Answered
Searching for text in listbox without deselecting current choice
why not add a table to your GUI where you store the options that you click? Just add a pushbutton that clears the table when you...

más de 7 años ago | 0

| accepted

Answered
reduce for loops number
the problem with this code that it needs to read in the whole image each loop, so for each pixel and since it is a large image t...

más de 7 años ago | 0

Answered
Index exceeds matrix dimensions.
since you are also indexing to k+1 you cannot go all the way to the end of line1! for k=1:2:length(line1)-1 Ik=imcrop...

más de 7 años ago | 1

Answered
How do I use a value of a pop-up menu (in the GUI) in an if-loop?
are you not just missing an end or did you forgot to copy it? energyLevel = str2double(contents(get(handles.popupmenu1,...

más de 7 años ago | 0

Answered
"Not enough input arguments"
without looking at your own defined function but try this as it is the correct syntax for anonymous function definition x=f...

más de 7 años ago | 0

| accepted

Answered
I want values of Q_sun at different given time but got error: In an assignment A(I) = B, the number of elements in B and I must be the same.
there are many problems with this code for example: your t vector has 5 elements so the length of Q_sun will also be 5, ho...

más de 7 años ago | 0

Answered
how to activate/deactivate some boxes of iutable depending on the entry in the first box
you can find your answer here : http://www.mathworks.com/matlabcentral/answers/2283-uitable-s-cells-as-a-readonly

más de 7 años ago | 0

| accepted

Answered
How to ignore additional columns when reading a file using textscan?
just type doc textscan and you can find this there. So you need to add the * after the % sign for data that you do not want to r...

más de 7 años ago | 2

| accepted

Answered
How to remove a row from a Table in the GUI
why did you open a new question? <http://nl.mathworks.com/matlabcentral/answers/223133-how-can-i-add-and-remove-a-row-from-a-ta...

más de 7 años ago | 0

| accepted

Answered
MATLAB : problem with zoom on 2 courbs (plotyy)
instead of using gca you should store the handle of the axes generated by your plotyy command since two axes are created so you ...

más de 7 años ago | 0

| accepted

Answered
How to read and plot the value against time till the condition if false
it seems strange to do this with a radiobutton instead of a stop pushbutton you should check if the interruptibility of your...

más de 7 años ago | 0

Answered
How can I plot several lines on a figure with different colours when using plotyy?
you should index the handle hLine2 (which is not a fortunate name choice as it is not the handle to the second line, but contain...

más de 7 años ago | 0

Answered
Can I get he frequency of each value in a vector without a loop?
here you can find many useful tips: <http://www.mathworks.com/matlabcentral/answers/96504-how-can-i-count-the-occurrences-of-ea...

más de 7 años ago | 0

Answered
Getting weekend (Saturday+Sunday) profiles from a yearly load profile 8760 data points
You should use a combination of histc and accumarray together on 1) weekday and datevec 2) datevec and max and 3) we...

más de 7 años ago | 0

Answered
how to use cell function to convert string to number
a(:,2) = mat2cell(cellfun(@str2num,a(:,2)),ones(4,1),1)

más de 7 años ago | 0

| accepted

Answered
Resample function error even with simple examples
when setting the path, you should be sure that you have administrator rights (right click matlab before opening to select this o...

más de 7 años ago | 0

Load more