Answered
I have a problem with transforming date vector from excel in matlab
One possible workaround: DatumUhrzeit = regexprep(DatumUhrzeit, '\d+\.\d+\.\d+\s*$', '$0 00:00'); dn = datenum(DatumUhrz...

9 years ago | 0

Answered
How can I delete specific columns from a matrix?
Of course, it does not work: for i = length(matrix):1 I assume you're trying to run the loop in reverse so that you don'...

9 years ago | 0

| accepted

Answered
How to create matrices each containing integers in ascending order up to the value indicated in the parent matrix
*DO not number variables*, ever. Store these obviously related matrices into a single variable that you can index. In this case,...

9 years ago | 0

Answered
Assigning values in an array (1 array with x coords, 1 array with Y coords.. how to create an array to contain both?)
coordinates = [X, Y]; No point in creating the |coordinates| cell array, the way you've done it as it'll be erased and repl...

9 years ago | 1

| accepted

Answered
What is the ECCN for Matlab?
Contact <https://www.mathworks.com/support/?s_tid=gn_supp MathWorks support> directly for this sort of questions. This forum is ...

9 years ago | 1

| accepted

Answered
Is the centroid of a region using regionprops same as the center of ellipse in Matlab?
If you are asking whether the |Centroid| property returned by |regionprops| matches the centre of the ellipse used to calculate ...

9 years ago | 2

Answered
CSV file import in Matlab
Assuming you just want the multiple rows in the sub-cells to be converted into rows in the main array, and assuming that the mai...

9 years ago | 0

| accepted

Answered
intmax in 64 bits
Because, *as clearly written in the <https://www.mathworks.com/help/matlab/ref/intmax.html documentation>*, |intmax| with no arg...

9 years ago | 2

| accepted

Answered
How to select specific urls in a webpage with regexp?
Note: avoid greedy |.*| particularly in complex expressions, it's bound to cause you problems. Negative classes often work bette...

9 years ago | 0

| accepted

Answered
How to reshape a vector in a particular way
Well, without you telling us the rule to obtain that matrix it's not very easy to answer your question. One possible way: A...

9 years ago | 0

| accepted

Answered
separate excel file based one single column in matlab
I don't know what is all this conversation about |fopen| which is probably the worst way of parsing your data. Using modern tool...

9 years ago | 0

Answered
Concatenating cells together?
newarray = cell(1, 5); for col = 1:5 newarray{col} = vertcat(yourcellarray{:, col}); end

9 years ago | 0

| accepted

Answered
wrong time format in table
There is no absolute zero datetime, but you can certainly retime your |time| column to start at whichever arbitrary date you wan...

9 years ago | 0

| accepted

Answered
Index are not used completely
It's not clear in your code what is |ii| and |jj|. All your other variable names are very descriptive, why not these two? It's a...

9 years ago | 0

Answered
conditional statement in one line for table columns
Or, rather than relying on semi-obscure mathematical expressions: r4 = q2 ./ p2; r4(p2 > 0) = 2 * r4(p2 > 0); In my o...

9 years ago | 0

Answered
How to open a file if the user enters multiple parts of file name?
First, do not use |cd|. There's no reason to change the path (and make functions come and go out of scope) when all i/o function...

9 years ago | 2

Answered
How i can get graph in the form of line instead of points
By not using a loop and if statements. Simply: plot(x, min(E, c), '-')

9 years ago | 0

Answered
What is the meaning of empty parenthesis in Matlab Object Oriented Programming?
It's the same meaning as for normal functions: it does not mean anything. It's calling the function or method with no arguments ...

9 years ago | 1

| accepted

Answered
I have 20 different structures with different names but identical fields. How can I create a loop to reference each different structure?
And this is exactly why we keep on saying that you should not number variables or name then sequentially. If these structures we...

9 years ago | 1

Answered
Implicit matrix expansion correction
It would have been helpful if you'd provided more details such as the size of a, b and c. Most likely, a = reshape(a(bsxfun...

9 years ago | 1

Answered
Saving the image after using regionprops
You're not saving the images per say, but saving the content of the figure window. Replace your |saveas| line with: imwrite...

9 years ago | 2

| accepted

Solved


Relation between functions "dec2bin" & "dec2binvec"
Here it's an easy problem we try to find the relation between the two functions "dec2bin" & "dec2binvec", so here you must write...

9 years ago

Solved


Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

9 years ago

Answered
Want to combine 4 structures into 1?
You shouldn't have numbered your variables in the first place. That only leads to problems. Put them together in an array. If...

9 years ago | 1

| accepted

Answered
Check a column, if a condition is met use those value
If all the cycles are the same length and all the samples from a cycle are together, as in your example, you would be better off...

9 years ago | 0

Answered
bwconncomp with "labeled" input
You don't need anything like |bwconncomp| for such a simple operation: A = [10 10 10 20 9 9 9 ...

9 years ago | 1

| accepted

Answered
How to replace minimum values with 0 and maximum with 1 in an array
What you didn't say is that your _set of four values_ is *by row*. Matlab works *by column*. You'll make your life much easier i...

9 years ago | 1

| accepted

Answered
How to save output of variable in csv file in one column like vectors?
Then reshape your variable into a column vector either explicitly with |reshape| or with |:|: csvwrite(yourfile, yourvariab...

9 years ago | 0

| accepted

Answered
template matching one to many
I have no idea what it is you call _axis_. Anyway, I don't see what the problem is with writing a loop a that compare your image...

9 years ago | 1

| accepted

Answered
How to use activex to search Word documents for a phrase and delete the document?
When all you have is a hammer everything looks like a nail! Rather than trying to work out how to automate word from matlab, ...

9 years ago | 0

| accepted

Load more