回答済み
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 ...

約9年 前 | 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 ...

約9年 前 | 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...

約9年 前 | 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...

9年以上 前 | 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,[])...

9年以上 前 | 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...

9年以上 前 | 0

| 採用済み

回答済み
How to identifiy similar rows in a matrix ?
have you tried the function unique with the option 'rows'?

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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)',...

9年以上 前 | 0

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

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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,...

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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 ...

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 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...

9年以上 前 | 0

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

9年以上 前 | 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...

9年以上 前 | 0

さらに読み込む