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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 1

| accettato

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Risposto
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,[])...

oltre 9 anni fa | 1

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

Risposto
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)',...

oltre 9 anni fa | 0

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

oltre 9 anni fa | 3

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 1

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

Risposto
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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 2

| accettato

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

Carica altro