Answered
adding search path before classdef of derived class
Your class myBase written in the file base.m is not known to MATLAB as myBase. When the name of the class or main function in a ...

4 years ago | 0

| accepted

Answered
Not able to assign a value to a member of class in MATLAB
Your class is a value class rather than a handle class. This documentation page discusses the differences between the two. You'...

4 years ago | 1

| accepted

Answered
Error massage "Execution of script project2 as a function is not supported"
The first input to the VideoWriter function must be the name of the video file you want to write. This could be a hard-coded cha...

4 years ago | 0

Answered
Test to see if a certain message was displayed in the command window
Rather than having the function simply display the error messages I would recommend the function actually throws an error using ...

4 years ago | 0

Answered
Error with pinv in MATLAB r2018a
Searching in the Bug Reports for "svd" in release R2018a found two that look potentially relevant. Bug Report 1768487 is listed...

4 years ago | 0

| accepted

Answered
Remove programmatically added checkboxes and replace them with new checkboxes
Are you sure you want to use an unknown number of checkboxes? If there are a large number of files perhaps a CheckBoxTree (uitre...

4 years ago | 1

Answered
In this code, why did they choose the numbers that they chose?
That doesn't look like a MathWorks example so you might need to ask the author or the person from whom you obtained it, but if I...

4 years ago | 1

Answered
length(data.(ChannelFirst)) this worked for years, now it won't work WHY?
Set an error breakpoint and run your code. When MATLAB stops on that line, show us the output of the following command: whos da...

4 years ago | 0

Answered
Why 2020b is not including toolbox functions to the exe file, even though I have license?
Are you trying to use functionality that is not supported for use with MATLAB Compiler in your application? Which specific func...

4 years ago | 0

Answered
Chaning Background color of disabled text area
Are you developing this using App Designer, GUIDE, or programmatically? If App Designer, do you want to use a uitextarea instea...

4 years ago | 0

Answered
Can someone explain why in this code f3 and f2 are equal to (1048576,2)?
The zeros function creates an array of the specified size where every element is 0. A = zeros(3, 4) % a 3-by-4 array where all ...

4 years ago | 1

Answered
Extract data from sequentially named tables
Based on your code, ladeknecht is a cell array each cell of which contains a struct array. Let's create such a sample object on ...

4 years ago | 1

Answered
Script stuck running forever
One obvious optimization relates to the section of code starting with this comment: %Adding this duplicate line of code so that...

4 years ago | 0

Answered
Faster 2D Interpolation?
How many times are you performing this interpolation? Are the old X and Y coordinates the same each time you perform the interp...

4 years ago | 0

Answered
How to automatically get the axis of a figure in Live Editor?
If you call the function that displays the image with an output argument, you can determine which figure contains that graphics ...

4 years ago | 0

Answered
compute the condition number of a very large sparse matrix
Take a look at the condest function.

4 years ago | 0

Answered
Without using randi inbuilt function
We don't distribute the source code for the randi built-in function. If you want to see it, start here.

4 years ago | 1

Answered
Clickable list of all text-pattern functions?
Expand the "Match Patterns" section on this documentation page listing all the functions in the Characters and Strings category?...

4 years ago | 0

| accepted

Answered
Creating a daily date vector
Based on your stated goal, I'd probably store the data in a timetable array and then use retime to change it to a 'daily' timeta...

4 years ago | 1

| accepted

Answered
Index in Positon 1 is invalid
MATLAB indexing is 1-based not 0-based. The first element / row / column / etc. of an array in MATLAB is element / row / column...

4 years ago | 1

Answered
I would like my code to allow the user to plot as many circles as they want until the user right clicks, if the circle plotted intersects any other circle it must change color
% Define a function to make a "circle" with random center and radius % A 1000-sided polyshape is a pretty good approximation m...

4 years ago | 0

Answered
Implementation .m file into Appdesigner troubleshot
Which of those lines, line 55 or 56, throws the error? Set a breakpoint on that line. Then depending on which line throws the e...

4 years ago | 1

| accepted

Answered
i want to make program that find prime number
MATLAB already has a function for this. See the isprime function.

4 years ago | 1

Answered
Finding a node in graph with most mutually adjacent nodes
G = digraph(false(10)); G = addedge(G, 1, [2 4 5 7 9]); G = addedge(G, 2, [3 5 7 10]); G = addedge(G, 3, [1 2 4 8 9]); G = a...

4 years ago | 0

Answered
What version of MATLAB software will support ros2?
See this Answers post and the documentation page for the ros2 function in ROS Toolbox (which was Introduced in R2019b according ...

4 years ago | 1

Answered
getting int16s that are stored in two uint8s
Use typecast, potentially along with swapbytes. x = [0xbe 0xef] % Sample data class(x) % Two 8-bit unsigned integers y = type...

4 years ago | 1

| accepted

Answered
Issue with sprintf () latex interpreter
a = 1; disp('Here''s how to include a single quote in a char vector') disp("Here's how to include a single quote in a string a...

4 years ago | 1

| accepted

Answered
Termination tolerance in fsolve
See the Tip at the top of this documentation page. I suggest you increase your tolerance value to something greater than eps.

4 years ago | 0

| accepted

Answered
How to generate random numbers with constraint?
Generate the numbers then call sort on the array. By the way, you don't need to use a for loop here. The rand function can gene...

4 years ago | 0

Answered
Histogram occurences per class
Let's make some sample data and plot the histogram using the 'integers' BinMethod. In this case each integer in my data set gets...

4 years ago | 0

| accepted

Load more