Answered
I keep getting a syntax error on the 'if' function.
approxpirounded=str2double(fprintf('.6f\n',approxpi) How many left parentheses ( are on that line? How many right parentheses )...

8 years ago | 0

| accepted

Answered
Worldmap function is not working?
The worldmap function is part of Mapping Toolbox. Check the output of the ver function to see if you have this toolbox installed...

8 years ago | 1

Answered
what’s wrong with this code that makes different answers? In other words, I want the mathematics equation which is mapping the input to output of the system.
I suspect you're not taking into account any pre- or post-processing functions present in your network.

8 years ago | 1

| accepted

Answered
How can I fix Error using files=dir command
In release R2016b we enhanced dir to be able to search recursively if the filename included two asterisks adjacent to one anothe...

8 years ago | 0

Answered
Return average of grades as a column vector?
You have written a function to compute the average grade for one specified student. Make a vector that has the same number of e...

8 years ago | 0

Answered
Timestamp char or cell into double matrix
The script imports the data into a cell array C: Since from your comment on manhan ravi's answer the data is tabular in nature,...

8 years ago | 0

| accepted

Answered
ODE function does not seem to work
Which release of MATLAB are you using? The ability to define local functions in script files was introduced in release R2016b. F...

8 years ago | 0

Answered
I have a code but it keep saying "invalid expression. when calling a function or indexing a variable, use parentheses. otherwise check for mismatched delimiters.
If you're editing this code in an editor other than the MATLAB Editor, I advise you to copy and paste it into the MATLAB Editor....

8 years ago | 0

Answered
Delete last 4 characters in a string variable
If you just want to remove the extension, break the filename into its parts using fileparts.

8 years ago | 2

Answered
zscore of an array with NaN's?
If you're using release R2018a or later, you can call normalize. test = [NaN, NaN, 25.0182, 8.1078, 0.7304, -8.4954, ... 13.14...

8 years ago | 2

Answered
ode event stopping without a zero crossing
Yes, changing the values of the variables that were used to create the anonymous function does not change the values of those va...

8 years ago | 0

| accepted

Answered
How to store matrix in a txt file with Row and Column name?
Consider storing your data in a table array instead of a matrix and two text variables containing row and column names. If you d...

8 years ago | 0

Answered
anyone help to fix it? Array formation and parentheses-style indexing with objects of class 'comm.OFDMModulator' is not allowed. Use objects of class 'comm.OFDMModulator' only as scalars or use a cell array.
If you're using a release prior to release R2016b, I believe you will need to call step on the object to perform the operation o...

8 years ago | 0

Answered
How to define a variable of datetime datatype, having null value?
The standard missing value for a datetime array is NaT.

8 years ago | 0

| accepted

Answered
Plot graph on matlab
To divide each element of exp(x) by the corresponding element of sin(x), use the ./ operator instead of the / operator. The extr...

8 years ago | 0

Answered
matlab code for JPEG2000
Just call imwrite with 'jp2' or 'jpx' as the fmt input argument.

8 years ago | 0

| accepted

Answered
Can't use a second function inside the main one
while k <= x sub; matri = number * matri(k); k = k + 1; end When your main function func ca...

8 years ago | 1

| accepted

Answered
Plotting an undirected graph with weights
Use the graph and network algorithms functionality included in MATLAB. Call graph to build your graph object then call plot on t...

8 years ago | 0

| accepted

Answered
How do i fix that code
When you call the sym function you must call it with at least one input argument. The Syntax section on that documentation page ...

8 years ago | 0

Answered
Is it possible, or is it used to, or is it elegant to change input variables?
Possible? Yes. Recommended? I would advise against it _unless_ the input argument has <https://www.mathworks.com/help/matlab/...

8 years ago | 1

Answered
How do you pause rendering of a figure until you're done setting properties?
Specify the property names and values in the |heatmap| call itself as a series of name-value pair arguments. See the example in...

8 years ago | 2

| accepted

Answered
Having trouble plotting in real-time
Look at the code that creates the vertical line plots. plot(zeros(M,1),posMat(:,i),'r*'); All the X coordinates of the p...

8 years ago | 0

| accepted

Answered
Logical False before subs then Logical True?
Use <https://www.mathworks.com/help/symbolic/isalways.html |isAlways|>. isAlways(trial_1 == trial_2)

8 years ago | 0

Answered
Interpolatation between values in a timetable?
Use the <https://www.mathworks.com/help/matlab/ref/fillmissing.html |fillmissing| function>.

8 years ago | 1

| accepted

Answered
TAH without X11 on Linux
Did you specify the full path to the installer_input.txt file as described in <https://www.mathworks.com/matlabcentral/answers/3...

8 years ago | 0

| accepted

Answered
Fine parula colormap not displayed correctly in colormap editor?
What happens when you add that second marker from the first Colormap Editor window into the same place in the second Colormap Ed...

8 years ago | 1

| accepted

Answered
Why isn't MATLAB counting this as equal to 1?
None of 0.4, 0.3, 0.2, or 0.1 can be exactly represented in IEEE double precision. See the "One-tenth" and "Hexadecimal format" ...

8 years ago | 4

| accepted

Answered
MATLAB: WHAT ARE THE CORRECT RESPONSES TO THE FOLLOWING HELP QUERIES ?
MATLAB started suggesting corrections for mistyped functions or variable names in the Command Window in release R2012b. That sug...

8 years ago | 0

Answered
How to unit test with verifyWarning?
Your test function is: function testYesWarning(testCase) verifyWarning(testCase,@() testYesWarning('2000-01-01'),'DATE:S...

8 years ago | 0

Load more