Answered
what does this error mean and why cant i use the if function i use it in another function and it worked
The end keyword on line 705 closes the if statement on line 689. The end keyword on line 706 closes the function definition on ...

3 years ago | 0

Answered
How to perform inverse between a page of a 3D matrix and a column vector without loops?
Why do you insist to do this without looping? If you have been told "for loops in MATLAB are slow" that is not necessarily the t...

3 years ago | 1

| accepted

Answered
Solving a system with embedded differential and non-differential equations
I assume you've written this function in a file named difsyssolve.m and that your call to ode45 is not in that same file? funct...

3 years ago | 0

Answered
How can we generate all n by n matrices with entries {0,1,2,...,m-1} for any natural numbers m and n?
How large are the values of m and n in which you're interested? What are you planning to do with these matrices once you've gen...

3 years ago | 0

Answered
this code is for contrast adjustment how to fix this error
You're passing a 2-by-3 matrix into imadjust as its second input argument. According to that documentation page this is valid if...

3 years ago | 0

| accepted

Answered
Symbolic sin(pi) in Matlab 2020 a not simplify
Another possible solution if you're just trying to avoid the roundoff error involved in approximating as pi is to use the sinpi...

3 years ago | 0

Answered
How do I create a new table variable based on the concatenation of two or more categorical variables?
Do you want these new identifiers (Ford_SUV, Ford_Sedan, BMW_Compact, etc.) to be new categories in a new categorical variable i...

3 years ago | 0

Answered
how to made matrix of x,y,z from .xyz format file?
There's a website that lists what applications create files with various extensions. Searching for .xyz on that site lists seven...

3 years ago | 0

Answered
How can I turn the property inspector off?
When you open Property Inspector it enables plot editing mode. [Note that the arrow icon in the toolbar has been selected after ...

3 years ago | 0

| accepted

Answered
argument gets deleted without a reason (Invalid or deleted object. Error in images.roi.Freehand/get.Position )
This is not a bug. By default, when you call plot MATLAB will reset all axes properties (except for Position and Units) and del...

3 years ago | 1

| accepted

Answered
Error using toolbox "pattern" function
According to the Version History section on its documentation page the pattern function in Satellite Communications Toolbox was ...

3 years ago | 0

| accepted

Answered
Transpose does not support N-D arrays error
I'd probably adapt the "Interpolate Multiple Sets of Values on Same Grid" example from the griddedInterpolant documentation page...

3 years ago | 0

Answered
How do I change a string object into a variable name that heatmap accepts
This seems to work with a simpler example. T = array2table(magic(5)) V = string(T.Properties.VariableNames) heatmap(T, V(2), ...

3 years ago | 0

Answered
Value assigned to variable might be unused error
Note that this is not an error. This message is a Code Analyzer warning indicating that there may be a problem with this code. I...

3 years ago | 0

Answered
Error:not enough input arguments
You must call your calibrate function with an input argument (whatever your readMag function requires as its first input). You c...

3 years ago | 0

Answered
How can i filter a table with several variables
If you turned your table into a timetable using table2timetable you could use a timerange to index into the rows of that timetab...

3 years ago | 0

Answered
is not in the application's expanded CTF archive at
As per the first Tip on this documentation page, if there is no call to the constructor of the class in your application the sta...

3 years ago | 0

Answered
how to access private
As stated in the documentation properties with Access = 'private' "can be accessed only by members of the defining class." You c...

3 years ago | 0

Answered
can some one explain the syntax of this code please
I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB. Once you've gone through tha...

3 years ago | 1

Answered
How can I use the link() function from Robotics Toolbox for matlab?
I searched the documentation for functions named link in the Robotics and Autonomous Systems category and did not see a function...

3 years ago | 0

| accepted

Answered
An issue with the command 'isAlways'
The name=value syntax was introduced in release R2021a. If you're using an earlier release you'll need to use the "name, value" ...

3 years ago | 0

| accepted

Answered
Remote desktop for MATLAB individual license?
I don't work for Mathworks, so my answer is not official, but in terms of licensing I don't see any problem with a VNC/TeamViewe...

3 years ago | 0

Answered
Calling other function from another m file
Only the main function in a function file is directly callable from outside the file. Local functions can be called indirectly i...

3 years ago | 1

Answered
How to subplot 3by2 in matlab?
Use the "Quadrant of Subplots" example on the documentation page for the subplot function as a model (all you'd need to do is ch...

3 years ago | 0

Answered
Open an.m file and jump to a specified line
There is a MATLAB Editor API that is documented through its help text as stated by Michelle Hirsch here. Use the matlab.desktop....

3 years ago | 0

| accepted

Answered
How do I solve this: Warning: Variable 'output' originally saved as a ProcResultClass cannot be instantiated as an object and will be read in as a uint32. ?
If the class definition is not in scope when you load the object from the MAT-file, MATLAB doesn't know how to turn the saved da...

3 years ago | 1

| accepted

Answered
Undefined function 'imsegkmeans' for input arguments of type 'uint8'.
The imsegkmeans function is part of Image Processing Toolbox and was introduced in release R2018b. Do you have this toolbox inst...

3 years ago | 0

Answered
Incongruities in InputFormat in datetime
You have a few too many single quotes. formatspec1 = 'yyyy-MM-dd''''T''''HH:mm:ss.SSS''''Z' formatspec2 = 'yyyy-MM-dd''T''HH:m...

3 years ago | 1

Answered
eval function using in load command
There is absolutely no need to use eval here. You're building a file name, not building code to evaluate. dp=500; flow='Q1'; ...

3 years ago | 1

| accepted

Answered
How to convert datetime to day of the year when there are more than one year?
Let's look at your sample data. data = {'2003-10-14' '2003-11-07' '2003-11-15' '2003-11-23' '2004-01-10' '2004-04-07' '20...

3 years ago | 2

Load more