답변 있음
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 ...

10년 초과 전 | 0

| 수락됨

답변 있음
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 ...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 1

| 수락됨

질문


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

10년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
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,[])...

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
How to identifiy similar rows in a matrix ?
have you tried the function unique with the option 'rows'?

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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)',...

10년 초과 전 | 0

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

10년 초과 전 | 3

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 1

답변 있음
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,...

10년 초과 전 | 0

답변 있음
"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...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 2

| 수락됨

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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 ...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

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

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

더 보기