Answered
Draw the 3-D plot for the function f(t)= (t, t ^2, t ^3), where 0 <= t <=100.
You're close. f=(t,t^2,t^3); Instead of trying to define f like this (and then not using it) define the variables x, y, and z ...

4 years ago | 0

| accepted

Answered
I got something wrong with the hep document
Check if you've written or downloaded a split.m file that's taken precedence over the split function included in MATLAB. which ...

4 years ago | 1

| accepted

Answered
Property value validation with values from file
The census.mat file contains two variables, cdate and pop. whos -file census.mat Let's write a function that will retrieve the...

4 years ago | 0

| accepted

Answered
I want to extract the linear x and y data from the overall data. I have version 2017a in which "ischange" function is not present any alternatove method
So you want to detrend your data? The detrend function has existed since before release R2006a.

4 years ago | 0

Answered
Parse error at " end "
When you get a parse error like this, look for the Code Analyzer messages in the Editor's right margin. Of particular importance...

4 years ago | 0

| accepted

Answered
Where can I find Fcn block in simulink in matlab R2022a?
Which of the blocks in the User-Defined Functions library do you want to use? I'm guessing you want either MATLAB Function or I...

4 years ago | 1

Answered
How to get the sum of the rows of a matrix?
Use the sum function.

4 years ago | 0

| accepted

Answered
I want the matlab code of Discrete Tchebichef Transform and its inverse version
https://www.mathworks.com/matlabcentral/answers/88670-is-there-a-code-in-matlab-for-discrete-tchebichef-transform-dtt?s_tid=answ...

4 years ago | 0

Answered
Answers of equation are mismatch
Use element-wise operations instead of array operations. h = linspace(24,62.5,20); % Height of Trapzoid w = 81-0.54...

4 years ago | 1

Answered
Simplifying Complex expressions in Matlab Symbolic Toolbox
Did you mean to assume that x, y, xv, yv, and/or T are real? syms x1 y1 real syms x2 y2 z1 = x1 + 1i*y1 z2 = x2 + 1i*y2 z1c...

4 years ago | 0

Answered
weird Matlab+Windows Scheduler Behavior
The Add Arguments is set to -r -nodesktop -nosplash "run GBB_lvl1" So you're telling MATLAB to run a command (with the -r optio...

4 years ago | 1

| accepted

Answered
Create variable number of random streams (unique, deterministic, independent)
See the "Substreams" and "Restore State of Random Number Generator to Reproduce Output" sections on this documentation page for ...

4 years ago | 0

| accepted

Answered
How to increase number of contour lines in a plot?
f = @(x1,x2) (x1-5).^2+(x2-4).^2; % Vectorized the function h = fcontour(f,[0 10 0 10]); % Let MATLAB choose the number and hei...

4 years ago | 1

Answered
Equality operator error with exact same value
This is not a bug. See the section "Avoiding Common Problems with Floating-Point Arithmetic" on this documentation page.

4 years ago | 0

| accepted

Answered
Minimize a function under several constraints
Any values that satisfy your first two constraints are a solution to the problem since your objective function is constant. Subs...

4 years ago | 0

Answered
How to create a function that checks if a word is a palindrome?
A recursive approach, like you've tried to implement, can work but one important aspect of recursion is the base case. This is t...

4 years ago | 0

Answered
Transformation of attached C++ code to MATLAB code.
Are you required to convert this code or would being able to call it from within MATLAB be sufficient for your needs? If the lat...

4 years ago | 0

Answered
If I have a matrix, how can I find the minimum5 values in it?
Use the mink function.

4 years ago | 0

Answered
NEWPR and NEWFF .
They are extremely old functions in Deep Learning Toolbox (when they were marked as obsolete in release R2010b, the toolbox was ...

4 years ago | 0

Answered
Randomness is lost in parfor loop on GPU?
What I'm doing is to copy this code and change the value of the seed. For example, the "my_code_seed1.m" uses "seed = 1", and "m...

4 years ago | 0

Answered
CVE-2022-23307 vulnerability
Please contact Technical Support with this question to receive an official answer.

4 years ago | 0

Answered
Making a moving average filter without looking in to the future. So forecasting the data, how do you do it?
Use the movmean function with the M = movmean(A, [kb kf]) syntax given on its documentation page. Choose kf = 0 to include 0 ele...

4 years ago | 0

Answered
Highlighting of function call in editor
See the first item in the table in the Editor/Debugger Display Preferences section on this documentation page.

4 years ago | 0

Answered
Nonscalar arrays of function handles are not allowed; use cell arrays instead.
You need to evaluate the function handles in your fsolve call. Alternately you could skip converting the symbolic expressions in...

4 years ago | 0

| accepted

Answered
How to find the source code of the guide examples?
If you have Stateflow installed on your machine or if you have a license to access Stateflow in Simulink Online, open the exampl...

4 years ago | 0

Answered
Evaluate the surface area of the solid of revolution generated by revolving the graph of (𝑥) around the 𝑥-axis between −2𝜋 and 2𝜋.
Neither diff nor * are defined for function handles. try diff(@sin) catch ME fprintf("The error was: %s\n", ME.messa...

4 years ago | 0

Answered
Unrecognized function (iforest) even though the toolbox is installed
According to its documentation page the iforest function was "Introduced in R2021b". If you're using an older release of Statist...

4 years ago | 1

| accepted

Answered
Toolboxes installed and licensed, but not in use
I'm not entirely certain what your concern is. Are you wondering why license inuse doesn't list all of the products that appear ...

4 years ago | 0

| accepted

Answered
How do I convert a vector into an Nx1 cell array of varying-length vectors?
Use mat2cell (with a transpose call if you need an N-by-1 instead of a 1-by-N.) V = [1 2 3 4 5 6 7 8 9 10] R = mat2cell(V, 1, ...

4 years ago | 0

Answered
Get old Find & Replace window back?
Open the Preferences using the button in the Environment section on the Home tab of the Toolstrip. Under MATLAB, expand the Key...

4 years ago | 1

| accepted

Load more