Answered
create plot task not available in live script despite having other control toolbox options
Do you mean this task? That is part of MATLAB. There is a documentation page for this task in the Control System Toolbox documen...

3 years ago | 1

Answered
What qualification do I need to apply for an internship at MATLAB?
Different departments have different qualifications that they're looking for in intern candidates. Take a look at the list of in...

3 years ago | 0

Answered
Passing arguments through a function
You could do this using varargin, but if you do make sure you like the function's interface before you give it to anyone else. B...

3 years ago | 1

Answered
Fast creation of vector [0 0 1 1 2 2 3 3... n n]
n = 5; x1 = repelem(0:n, 2)

3 years ago | 1

Answered
what is the codes of this equations?
You probably want to define your kets as vectors. Since you're taking infinite sums you probably want to define them as symbolic...

3 years ago | 0

Answered
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parenthe
This is not valid MATLAB syntax. I've commented it out so that later lines of code in this answer can run. % fun = @(x) (0.00 0...

3 years ago | 0

Answered
How do you use the solve function in a mat lab GUI?
Are you attempting to define app.c and app.t as symbolic variables using these lines? system app.c system app.t That won't w...

3 years ago | 0

Answered
An alternative to cell array
You say that you need to call this function many times, but do you need the M output from each of those calls to exist in memory...

3 years ago | 0

Answered
Histogram set custom DisplayOrder
Specify the valueset in the order in which you want the categories to be listed when you construct the categorical array. BTW, ...

3 years ago | 0

| accepted

Answered
How to use matlab to achieve multiple cycles, as shown in Figure 1
Another approach would be to take advantage of the fact that a for loop in MATLAB can iterate over columns of an array. for ij ...

3 years ago | 0

Answered
How can I access char elements from the beginning up to some fixed index of the char?
The extractBefore function will work both for char arrays and strings.

3 years ago | 0

Answered
How to get a complete list of class properties including private properties.
Create a metaclass object and iterate through the PropertyList.

3 years ago | 0

| accepted

Answered
finding singular outliers in the presence of data with steep changes but not singular
I think the outlier detection and removal functions in MATLAB are the right tools for you to use. Choosing the right parameters ...

3 years ago | 0

| accepted

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
MATLAB has a suite of debugging tools you can use to investigate errors like this. One of the ones I use most frequently is the ...

3 years ago | 0

Answered
Can the efficienty of this code be improved, either computationally or just in terms of lines of code?
A = [2; 4; 1; 2; 2; 4; 1; 2; 2; 4]; B = [4.10047; 7.44549; 3.62159; 6.56964; 2.87221; 4.51231; 4.01697; 5.60534; 5.5440; 7.0780...

3 years ago | 0

Answered
Helix/dipoleHelix in MATLAB R2016b version
This function is part of Antenna Toolbox. Check the output of the ver function to see if you have this toolbox installed. If you...

3 years ago | 0

| accepted

Answered
Add-ons not available for MATLAB Home
On the MATLAB Home page click the "Customize and buy" button. This will bring you to the store that gives you a list of add-on p...

3 years ago | 0

| accepted

Answered
Variable marker size scatter plot
The size input argument to the scatter function can be a scalar or an array of the same size as the coordinate data. In the exam...

3 years ago | 0

| accepted

Answered
Adding prefix to indexe
This section of code, as originally written, assumes you're on Linux or Mac. We can make this a bit more platform independent. ...

3 years ago | 0

Answered
How to rename a lot of mfiles in a folder
Let's look at a simple example of what's in the temporary directory. D = dir(tempdir) What's the first file (or "file") in tha...

3 years ago | 0

Answered
can someone give me an example of what a "vector composed of characters" looks like exactly?
A = 'orange' A is a vector of type char. It has 1 row and 6 columns. If you're working with multiple pieces of text data and y...

3 years ago | 0

Answered
How do I exit a for loop after logical index is found true in an array?
continue exits the current iteration and proceeds to the next iteration. break exits the loop entirely.

3 years ago | 0

Answered
why my variable value become these sysbols?
When you concatenate together a char vector and a number, MATLAB does not convert the number into its character representation. ...

3 years ago | 0

Answered
Vector in a Matrix 2x2, calculate the length of the vector
If I understand your question correctly I think what you want is the vecnorm function.

3 years ago | 0

Answered
bisection method, iteration does not stop although hand calculation were diffrent
Let's look at your function. syms x f = sqrt(19.62*x); fun = f*tanh(2.5*f/8); fplot(fun) yline(0) It looks like you have a...

3 years ago | 0

Answered
How to do math using datetime objects including years
date_obs = '22:179:18:42:44.610'; j2000date = '2000:001:12:00:00.000'; These don't look like durations, they look like datetim...

3 years ago | 0

Answered
how can we make one axes as children of other axes??
No, axes may not be children of other axes. I'm not sure I understand what your ultimate goal is. If you give more details abou...

3 years ago | 0

Answered
Convert 8x3 char to string sequence (MATLAB)
val = ... ['011' '010' '001' '000' '000' '001' '010' '011']; s = join(string(val), '')

3 years ago | 0

Answered
How to programmatically get the current/local time zone?
Do you want to create a datetime in the current time zone or do you want to know the current time zone? Those are two different ...

3 years ago | 0

| accepted

Answered
ODE45 requires more parameters than it should
That syntax, where you pass additional input arguments after the options structure, is an older syntax that is no longer documen...

3 years ago | 0

Load more