Answered
xlsread with file names in arrays
Other than the many typos and the wrong brackets used to index the cell array, the main issue I can see with your code is that y...

9 years ago | 0

Answered
What would be the best way to parse a text file that contains python dictionary?
That string is <http://www.json.org/ JSON>, which matlab can decode since R2016b (and R2017a fixes some of the bugs) with <https...

9 years ago | 1

Answered
How do I run a MATLAB script or function from my C# application in Visual Studio 2015 (NOT Visual Basic)
_"and don't want to start all over with a WPF"_ You're in trouble, then! The whole idea of UWP is that it runs on any platfor...

9 years ago | 1

Answered
Need explanation of the following MATLAB code?
What is there to not understand? The code uses <https://www.mathworks.com/help/matlab/math/matrix-indexing.html#bq7egb6-1 log...

9 years ago | 0

| accepted

Answered
What is this error message mean???
It can't get any clearer: _There is no *BackgroudndColor* property on the UIControl class._ Notice how you misspelled *Backg...

9 years ago | 1

| accepted

Answered
How do we Calculate Distance Matrix for Data Set in an Excel file
1. Normalising the rows is easy: NormalisedMatrix = OriginalMatrix ./ sqrt(sum(NormalisedMatrix .^ 2, 2)); 2. Getting th...

9 years ago | 0

| accepted

Answered
How to store data into a matrix?
I assume that for i=1:length(V) is meant to be for i=1:length(B) %numel instead of length would be safer o...

9 years ago | 0

| accepted

Answered
.exe-file
I'm unclear on exactly what it is you're asking. Is it as simple as: %create your input files any way you want. Name them i...

9 years ago | 0

Answered
How to display strikethrough text on matlab command window???
There are very few ways you can format text in the command window. Strikethrough is not an option. You can underline, bold, or c...

9 years ago | 0

Answered
Array within a structure array doesn't hold previous values
Starting a new answer, since it looks like my initial answer was a misunderstanding... h.Student(id, :) = ... would indi...

9 years ago | 0

Answered
Array within a structure array doesn't hold previous values
At the bottom of the <http://uk.mathworks.com/help/matlab/ref/matfile.html documentation for |matfile|>, it says: matfile d...

9 years ago | 0

Answered
Fill time series with data coming from other time series.
The simplest way to do what you want may be to use <https://www.mathworks.com/help/matlab/timetables.html time tables>. It is to...

9 years ago | 1

Answered
Can someone help me with this code i want to know what every statement do
I doubt anybody is going to be willing to spend the 20 minutes or so required to comment each statement in the code when you don...

9 years ago | 1

| accepted

Answered
what the patch = imJ(j : (j+patchSize-1), i: (i+patchSize-1) ) means?
removing the last colon would be the same as replacing it with 1, hence you would only get the red values instead of the RGB tri...

9 years ago | 0

| accepted

Answered
Method with struct input: how to accept different object subfields?
I'm not sure I understand fully what you're asking, particularly as you're not using correct terms. There are no *structures*, *...

9 years ago | 0

| accepted

Answered
Function value at starting guess must be finite and real.
Well, the error message is clear, the function you're passing to |fzero| must return a finite and real value at the starting poi...

9 years ago | 0

Answered
How can I load a csv file into matlab?
Matlab error message is certainly not helpful. The issue you have is that there is an invisible unicode control character (U...

9 years ago | 2

Answered
indexing a chunk of a of a multidimensional array using a vector of indices
You could call |subsref| directly, but I'm not sure it's that simpler: subsref(A, struct('type', '(), 'subs', {[num2cell(p)...

9 years ago | 0

| accepted

Answered
Proper way of define a function with struct: readability vs reusability
I'm not sure if this is what Walter was hinting at, but another option is, instead of a plain function use a function object, wh...

9 years ago | 1

| accepted

Answered
Set Maximum Limit of Array, but keep Gradients the Same.
First, do not use |size| as a variable name as it will prevent you from using the extremely important <https://www.mathworks.com...

9 years ago | 1

| accepted

Answered
How to run .m file automatically without path?
If you don't specify the path to the file, it will have to be in one of the folders on the matlab search path for it to be found...

9 years ago | 1

| accepted

Answered
How do i refer to a column in my imported data and how do i turn all the NaN's into 0's?
Do not use numbered variables. It does not simplify things later, it makes them more complicated. Keep your data as a matrix. Ev...

9 years ago | 0

Answered
Selecting certain rows?
newmatrix = originalmatrix(1:11:end, :) * 1e5 This is really basic matlab. Have you gone through the <https://www.mathworks...

9 years ago | 1

| accepted

Answered
Why do the variables defined in the same way turns out to be different?
Your code (which we can't run since |c12| is undefined) is just a long-winded way of asking why 0.3 == 1-(1-0.3) returns...

9 years ago | 1

Answered
Multi-threading with .net framework
<https://www.mathworks.com/help/matlab/matlab_external/limitations-to-support-of-net-delegates.html Matlab is single threaded>. ...

9 years ago | 0

Answered
How do I concatenate a single field from a multi-dimensional struct?
Simply: {var_info.vars}

9 years ago | 1

| accepted

Answered
Determine differentiability of a x and y dataset
The concept of _diferrentiable_ does not mean much for a discretised function. By definition dy/dx always exists when you have a...

9 years ago | 1

Answered
Saving function variables to workspace.
Assuming that _"the results"_ is the |fitresult| outputput, simply call your function by giving it an output (the same way you g...

9 years ago | 0

Answered
A Message Box for a Nested Loop to Report Progress?
_"How can I generally estimate the time a loop needs to finish"_ You can't. _"Any suggestion for a message box that shows...

9 years ago | 0

Answered
Why my matlab does not enter a loop even when the conditions are true
Note, rather than an endless list of |if| statements, you should be using the power of computers who can do look ups very easily...

9 years ago | 1

Load more