Answered
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
The new WYSIWYG text editor on Matlab Answers is not Mobile friendly. So far I've noticed: New Word Always Starts With A Capit...

7 years ago | 0

Answered
How to plot a simple function that has a variable?
func = @(x,a) x^2 + a*x - 6; x = -10:0.1:10; for a = 1:3 plot(x, func(x,a )); hold on; end

7 years ago | 0

Answered
Error using plot Vectors must be the same length.
he problem is you're using TT for timestamp axis but T1 and T2 for light intensity. You did the linear interpolation using synch...

7 years ago | 0

Answered
how to find specific lines in a text file and replace them with other lines?
sounds like another job for regular expressions... text = '';% read your file into this variable % The pattern is very simpl...

7 years ago | 0

Answered
How create plot in gui axes from matrix?
depends on how you want to plot that matrix, and on what do you mean by its wrong. When you plot a mtrix by simply calling plo...

7 years ago | 0

| accepted

Answered
Undefined function 'concat' for input arguments of type 'double'.
The error message pretty much sums it up. You can't concat arguments of type double. If you are trying to create a vector, u...

7 years ago | 1

Answered
How to sort images from a folder in subfolders using the data from a excel/ .mat file?
You need to iterate through your dataset and ensure the necessary subfolder exist, then move the file % concat sub folder p...

7 years ago | 0

| accepted

Answered
[DEPRECATED] What frustrates you about MATLAB?
Binary files! It's ok when you save your data as a binary file for better performance, but GUI layout should not be a binary ...

7 years ago | 0

Answered
Help with basic code, pls
n = length(a1); allItems = [a1(:);a2(:)]; % this line of code chooses n random numbers from your two vectors rearranged...

7 years ago | 0

Answered
How to make a 3D plot from a 2D graph and a vector?
y = cell(1,length(z)); for i = z y{i} = sin(x) + i; plot3(x, ones(1, length(x))*i, y{i}); end And remember the ...

7 years ago | 0

Answered
Delete column from matrix with condition?
Z = Y(:,ranking <= n);

7 years ago | 1

Answered
How to make 2 histograms in one plot, containing large data
You should use histogram instead of hist. See <https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histog...

7 years ago | 0

Answered
how to suppress max value of b component
You can find those pixels you want to ignore first then analyze the rest ignoreBrightnessFactor = 255; mask = B < ignoreBr...

7 years ago | 0

| accepted

Answered
how to overcome this error Index exceeds array dimensions. Index value 2 exceeds valid range [1-1] of array x.
Seems like your input is shorter than your function expects. You must take the size of u in account when you decide the numbe...

7 years ago | 0

| accepted

Answered
is several small functions preferred rather than a few long ones in GUI
Splitting large functions is always better practice. A function should have a specific logical role. That being said, when y...

7 years ago | 0

| accepted

Answered
VERY odd error with simple multiplication ... OK... not so odd.
You'll find the answer in countless posts similar to yours. this problem arises from the way Matlab executes floating point arth...

7 years ago | 0

Answered
index exceeds array bounds error
uppLim = length(value) - 1; Should solve your problem. Oh and drop the while value which is basically an endless...

7 years ago | 0

| accepted

Answered
Object handlers to modify objects across functions
to use a global var you should declare that tree is a global var inside your function treemap as well as in your main somethin...

7 years ago | 0

| accepted

Answered
Version of inputname to call outside of a function?
If this is a method in a class you can use <https://www.mathworks.com/help/matlab/ref/meta.class.html metaclass>. If it's a f...

7 years ago | 1

Answered
Plotting an equation with Matlab
Your problem is the initialization of E you did: E=10e-19:0.1:20e-19; your interval is 17 orders of magnitude higher ...

7 years ago | 1

Answered
Struct with scope of multiple functions does not update in a nested function
I may be a little bit too late for the party but... structures are value types, unlike handle classes, when you edit a struct...

7 years ago | 0

Answered
Is it possible to build a Matlab-GUI completely with HTML and CSS?
I don't know if this is a production app or what exactly your aiming for, but have a look at these: <https://www.mathworks.com...

7 years ago | 0

Submitted


Simple Network Information Server (SNIS)
Simple and free Http Server for Matlab powered by Matlab

7 years ago | 2 downloads |

0.0 / 5
Thumbnail

Answered
How to extract a specific series of strings from a character array
Regular expressions are your friends regexp(text, 'NEW SCOMPONENT\s*\/?(?<component>[\w]{9})\s+DESC\s*''(?<desc>[^'']+)', '...

7 years ago | 1

| accepted

Answered
How can I fix this error in my code creating a maze game?
generally this exception is thrown when you are trying to use an input argument which was not set when calling this function.

7 years ago | 0

Answered
how to have variables from one file automatically read into another file
without knowing more details Ill have to assume its probably best to wrap your code in file2.m with a function that takes in tho...

7 years ago | 0

Answered
behavior of for loop with strings of chars ?
you will probably want to switch from a vector to a cell array of character vectors patterns = {'=A=' '=B=' '=C='}; for ...

7 years ago | 1

| accepted

Answered
how to use xmlread function on data received in http response message with content type = application/xml
Yair altman had a very good blog post on that <https://undocumentedmatlab.com/blog/parsing-xml-strings>

7 years ago | 1

| accepted

Answered
How would I return a matrix from a function?
In matlab you don't return values using the return statement you simply need to set the value of each out arg (yes functions may...

7 years ago | 3

Load more