回答済み
[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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

| 採用済み

回答済み
[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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
Delete column from matrix with condition?
Z = Y(:,ranking <= n);

7年以上 前 | 1

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

回答済み
In a sorted vector ,how do I compare first element to other elements and then find if there are any duplicates , if yes take their indexes and replace it with 0
how about <https://www.mathworks.com/help/matlab/ref/unique.html unique(A)>?

7年以上 前 | 1

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

送信済み


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

7年以上 前 | ダウンロード 2 件 |

0.0 / 5
Thumbnail

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 3

さらに読み込む