Beantwortet
Input a variable into a plot title
With the introduction of the string array in release R2016b (and the ability to enclose text data in double quotes to create a s...

etwa ein Jahr vor | 25

| akzeptiert

Beantwortet
I want a Mathworks Polo Shirt
We have now opened the MathWorks Merch Shop. See this blog post for more information.

etwa ein Jahr vor | 1

| akzeptiert

Beantwortet
MATLab promotional items?
We have now opened the MathWorks Merch Shop. See this blog post for more information.

etwa ein Jahr vor | 0

Beantwortet
May I have some Matlab stickers?
We have now opened the MathWorks Merch Shop. See this blog post for more information.

etwa ein Jahr vor | 0

Beantwortet
Wondering if you have any merchandise for sale cause I'd love to look like a part of the MATLAB team 😀
We have now opened the MathWorks Merch Shop. See this blog post for more information.

etwa ein Jahr vor | 2

| akzeptiert

Beantwortet
How do I get MathWorks Promotional Items or Accessories?
We have now opened the MathWorks Merch Shop. See this blog post for more information.

etwa ein Jahr vor | 0

Beantwortet
how to calculate mape
The mape function was added to MATLAB in release R2022b.

etwa ein Jahr vor | 0

Beantwortet
"platform" error after copying Matlab example to a PC
Comparing the version of the example from release R2023a and the version from the most recent release (as I type this, release R...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
when open MATLAB there is such error on command window Error using settings. Too many output arguments. how to solve it
If you've written your own settings.m file, it's likely conflicting with the settings function that's part of MATLAB. Rename you...

etwa ein Jahr vor | 0

Beantwortet
Error "gausswin requires Signal Processing Tool"
The gausswin function is part of Signal Processing Toolbox. Do you have this toolbox installed and licensed? To check if you hav...

etwa ein Jahr vor | 0

Beantwortet
What is wrong with my approach to building this histogram?
From the documentation for the polarhistogram function: "polarhistogram(theta) creates a histogram plot in polar coordinates by ...

etwa ein Jahr vor | 0

Beantwortet
If else statement now hanging up and error message Subscripting into a table using one subscript
If I remember correctly, indexing into a table array using parentheses and one subscript has never been supported. So if that wo...

etwa ein Jahr vor | 0

Beantwortet
Why don't I need a comment character after an (...) ellipsis?
Because that's what the ellipsis is documented to do. From that documentation page: "The ellipsis symbol (...) continues the cur...

etwa ein Jahr vor | 1

| akzeptiert

Beantwortet
Linear indices from colon operator
See sub2ind.

etwa ein Jahr vor | 1

Beantwortet
Multiple outputs from anonymous function
When you define an anonymous function, assign it to one output. f = @(x) svd(x, "econ") % Define f When you call an anonymous ...

etwa ein Jahr vor | 0

Beantwortet
null or NaN entries in image arrays?
If your images are stored in an integer data type, assigning a NaN value into that array will store a 0 in that location. There ...

mehr als ein Jahr vor | 0

Beantwortet
Class property described, but not available for serialPort objects?
The Version History section on that documentation page states that there is a "New Tag Property" introduced in release R2024a. S...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
Is there a way to define a callback function in Matlab that triggers on runtime errors?
Depending on what exactly you want to clean up, creating an onCleanup object may be of use to you. When this object is destroyed...

mehr als ein Jahr vor | 0

Beantwortet
Unit testing of a script that requires a file as input
I would split your script into two pieces: An interface piece that calls input. This piece would not be used during automated t...

mehr als ein Jahr vor | 0

Beantwortet
Constructing a string with several index requirements
r2 = [0 30 60 90 120 150 180 210]; ind = 0:numel(r2)-1; result = join("ScanArray(0)(" + ind + ")=" + r2, newl...

mehr als ein Jahr vor | 1

Beantwortet
Changing values in an array with unknown dimension
You can use ind2sub as suggested in the answer posted by @Jaynik. But as they wrote that code, they hard-coded the number of dim...

mehr als ein Jahr vor | 1

Beantwortet
Mesh error on my Matlab R2024a home edition
You have your own script named strings.m. MathWorks introduced a strings function in release R2016b and this function appears to...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Sparse matrix memory understanding
Please don't post pictures of code. MATLAB Answers can't run pictures of code. rng default Yb = unifrnd(-1, 1, [20000 20000]);...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
if/elseif statement with rand() falling between two values
You could either write your code like this: rng default % Allow both code segments to generate the same sequence of random numb...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Rock, Paper, Scissors Game
You could, instead of making a matrix of results, make a table. possibilities = ["rock", "scissors", "paper"]; results = array...

mehr als ein Jahr vor | 1

Beantwortet
How to remove some xticklabels (but still keeping all the xticks)?
x = 1:100; y = exp(-0.1*x); plot(x,y) xticks(0:10:100) xl = xticklabels; xl(1:2:end) = {''}; % Replace every other label x...

mehr als ein Jahr vor | 1

Beantwortet
ltefadingchannel built-in function
which -all ltefadingchannel So this is a MATLAB code file. dbtype 189 lteFadingChannel.m It's a MATLAB function file. You can...

mehr als ein Jahr vor | 0

Beantwortet
Solve and Vpasolve can't find solutions
I am trying to solve this system of equations for my class. No, you have a system of inequalities and equations. Let's try solv...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
Suppressing braces and single quotes of a string matrix
That's not a string matrix. That's a cell array each cell of which contains a char vector. Commonly that's referred to as a cell...

mehr als ein Jahr vor | 0

Beantwortet
Array indices must be positive integers or logical values
If you are attempting to compile code using MATLAB Compiler that calls load to load an object from a MAT-file and there is no in...

mehr als ein Jahr vor | 0

Mehr laden