Answered
Write a function that finds all the Three Pythagoras less than n?
Hint: how many times do these two loops run their loop bodies, and for which values? y = 5; disp('k1') for k1 = 1:1:length(y)...

6 years ago | 0

Answered
When is Matlab going to offer a colored chart
Rik is correct that we generally do not discuss whether or not we're working on a particular piece of functionality without an N...

6 years ago | 1

| accepted

Answered
how to combine date and time in single column
In what data type is your data stored? If it's stored as char vectors then you can use the functions KSSV mentioned in the comm...

6 years ago | 0

Answered
need to remove some time or make time
Use logical indexing. The relational operators like <= and > work on datetime arrays. tid = datetime(2015,1,1,00,00,00):hours(1...

6 years ago | 0

| accepted

Answered
& operator without if
The & operator is an elementwise operator. Just like the + operator will add corresponding elements of its inputs when given two...

6 years ago | 1

| accepted

Answered
mate version in matlab r2012b
Google didn't find any hits for "MATLAB Analysis Tools Environment" (with the quotes) and found way too many hits (about 27.6 mi...

6 years ago | 0

Answered
Matlab Release Update Notification
If you look in the upper-right corner of the MATLAB Deskop you should see an icon of a bell. When a new Update for the release y...

6 years ago | 1

Answered
How to plot this picture use matlab?
On the documentation page for the plot method of graph objects see the "Custom Graph Node Coordinates" example for how to plot n...

6 years ago | 0

| accepted

Answered
Robot.plot MATLAB R2013b error
If ax is the axes into which you're trying to plot the robot, I believe the reason for the error is that the plotting code was w...

6 years ago | 1

| accepted

Answered
does winopen work on Unix platforms
winopen will throw an error on non-Windows platforms.

6 years ago | 0

Answered
How to plot concentric hexagons
You can create a "stack" of concentric hexagons using polyshape. clear X for R = 6:-1:1 X(R) = nsidedpoly(6, 'Center', [1 2...

6 years ago | 0

Answered
Integral of a PDF do not equal 1
What leads you to believe the integral should be 1? syms r u syms lambdab positive S=2*pi*lambdab.*r.*exp(-pi*lambdab.*r).*.....

6 years ago | 0

| accepted

Answered
Result of asind changed between R2016b and R2019b
I'm not 100% certain offhand but I suspect this is related to the change in sind and cosd in release R2019a described in bug rep...

6 years ago | 0

| accepted

Answered
Problem with accumarray and constructing an array with accumulation
In your accumarray calls you're specifying the third input (sz) as an empty array, which tells accumarray basically "you figure ...

6 years ago | 1

| accepted

Answered
Can't start parpool with the 'threads' option
According to the Release Notes this functionality was introduced in release R2020a.

6 years ago | 2

Answered
Problem with the Spider function
Case matters. The command "Spider_plot" (upper-case S) is different from the command "spider_plot" (lower-case s.) You have a fu...

6 years ago | 0

Answered
Too many output argument error while using nested functions?
The error message is correct. When you run this code: TrainData(RunGMsFEM, 100, some_indices) You are calling RunGMsFEM with o...

6 years ago | 1

Answered
How can I check if a string is the name of a custom subclass?
Another way to do this is to use the meta class functionality. If you construct a metaclass object from a name and that name is ...

6 years ago | 1

Answered
How to create an empty array to be filled?
What value or values do you want to be stored in Ma before that line of code executes? Take a look at the list of functions in ...

6 years ago | 1

| accepted

Answered
Union of polyshapes ignoring empty ones
When given an array of polyshape objects, area returns an array of the same size. This means you can use it for logical indexing...

6 years ago | 0

| accepted

Answered
What is the best way to implement thousands of data in multiple matrices ?
Rather than creating 8 individual variables why not create a 3-dimensional array of size [330 300 8]? Z = NaN(6, 5, 4); for pa...

6 years ago | 0

Answered
Error in ode45
Your initial condition vector has twelve elements, so the input to your ODE function Propagator will be a 12-by-1 vector. [As an...

6 years ago | 0

| accepted

Answered
Sorting Variables by Value
Rather than storing your data in individually named variables, consider a table. rng default weights = randi(10, 3, 1); names...

6 years ago | 0

Answered
Image Processing Toolbox - student license
Image Processing Toolbox is available as an add-on product for the Student Version of MATLAB. It is also one of the products inc...

6 years ago | 0

Answered
Continuing an input function onto another line
I would use string arrays if you're using a release that supports them. s = input("Enter C to convert Celcius to Fahrenheit" + ...

6 years ago | 0

Answered
Version control on mat files
You can use the Comparison Tool to perform a diff on MAT-files. If you have checked your MAT-files into a source control managem...

6 years ago | 0

Answered
want to install graph toolbox
If you're referring to the graph and digraph objects in MATLAB, they were introduced in release R2015b. They are not available i...

6 years ago | 1

Answered
How to calculate Area of overlapping polygons inside square
Take the union of all the polyshape objects representing your polygons Make a polyshape representing the interior and boundary ...

6 years ago | 0

| accepted

Answered
How do i ensure that the units of length on the x axis of a Matlab plot are actual centimeters?
Specifying the Units property of the axes on which you're plotting can help, but realize that this doesn't guarantee that the ax...

6 years ago | 0

Answered
How to call a concrete number of a vector inside a function
It's not completely clear to me how the variables A1, A2, and x1 in your function are related to your A and x vectors. It's also...

6 years ago | 0

Load more