Answered
The function mqttclient is not found, however Industrial Communication Toolbox is installed.
According to the documentation page this function was "Introduced in R2022a" which is the release after the one you're using, re...

4 years ago | 1

| accepted

Answered
How to write Subscript in MATLAB?
You don't need to explicitly create so many symbolic variables. d = sym('d', [1 10]) y = sym('y', [1 2]) syms u_k a_i A = [0...

4 years ago | 0

Answered
I am trying to install Matlab on my mac but i couldn’t get the activation key. how can you help me please?
Contact the administrator of your license (if you're using your company's or school's license this would probably be someone in ...

4 years ago | 0

Answered
export() live scripts not working
According to the Version History at the end of its documentation page, the export function that will "Convert live script or fun...

4 years ago | 0

Answered
File: bvpfcn.m Line: 1 Column: 23 Invalid use of operator.
When you define a function you need to specify the input arguments as the names of the variables in which the user's input will ...

4 years ago | 0

Answered
How to restrict input to set of sizes in an arguments block?
I don't believe you can do this with the dimension validation alone. Nor would the existing validation functions help. So you're...

4 years ago | 2

| accepted

Answered
Using ode45 within a for loop
While you could solve the problem using a complicated anonymous function and symbolic variables, I'd recommend instead writing a...

4 years ago | 2

| accepted

Answered
Is there any way to display a progress bar in command window while the code is running?
You could try pausing the running file to examine the values of the loop counters to see if you're almost done, barely started, ...

4 years ago | 0

Answered
Can you install and run Matlab on Windows Server 2022
The System Requirements for release R2022a do not list Windows Server 2022 as a supported OS.

4 years ago | 0

| accepted

Answered
How do i use greek symbols?
Variable names must satisfy certain rules in MATLAB. "A valid variable name starts with a letter, followed by letters, digits, o...

4 years ago | 1

| accepted

Answered
Pass parameter to class based unit test
Rather than giving your test class a constructor I'd specify the parameter as a ClassSetupParameter (with some reasonable defaul...

4 years ago | 1

| accepted

Answered
Which solver should I use to solve a square and symmetric, linear system of equations?
You could call linsolve and tell linsolve explicitly that your coefficient matrix is symmetric. If you have a sparse system of ...

4 years ago | 0

Answered
annual, seasonal mean from monthly time series
Consider using groupsummary with the season data as your grouping variable.

4 years ago | 0

Answered
why it does not go to if statement and not only in else?(variable 'omega' might be set by a nonscalar operator)
From the documentation page for the if keyword: "if expression, statements, end evaluates an expression, and executes a group of...

4 years ago | 0

Answered
how to floor time for each hour?
If you want to actually modify the data rather than just changing how the data is displayed you can use dateshift. tv = {'12-De...

4 years ago | 2

Answered
Variable 'max_V' is not fully defined on some execution paths.
The variable max_v (line 9) with a lower-case v is not the same as the variable max_V (lines 1, 13, and 16) with an upper-case V...

4 years ago | 1

Answered
Finding function calls in my code using the Profiler
Click on the name of the function. It's a link that will bring up the page for that function. I'm not 100% sure if property acce...

4 years ago | 0

| accepted

Answered
ismembertol: What am I doing wrong?
Based on your comment describing the problem you're trying to solve: "The idea is to make the elements that fall outside a rang...

4 years ago | 1

| accepted

Answered
Mathworks: it's time for a dark theme.
As of release R2022a you can select a dark or light theme in MATLAB Online. See the Release Notes for more information. Note: t...

4 years ago | 4

Answered
How to generate pattern randomly In MATLAB
So to clarify you have a vector of y values: y = [1 2 3]; that you want to repeat over and over to give a pattern like: yy = ...

4 years ago | 0

Answered
List of New / Updated Functions per MATLAB Version
For functions added in a release you could search for "Introduced In" followed by the release number and get a close approximati...

4 years ago | 1

| accepted

Answered
Normalize x-axis and y-axis of surface plot
Call surf with 3 inputs not just 1. [x, y, z] = peaks; figure surf(z) title('1 input') figure surf(x, y, z) title('3 inpu...

4 years ago | 0

| accepted

Answered
Comparison of very large numbers
What do you think the exact value of your variable is? x = 1.056375500190191e+29; y = x + 1e6; x == y % true and this is the...

4 years ago | 1

| accepted

Answered
Error that does not make sense.
At first I thought you might be running into the common non-scalar if condition problem. From the documentation of the if keywor...

4 years ago | 0

Answered
pcolor() default EdgeColor or EdgeAlpha
x=1:200; y=1:100; [X, Y] = meshgrid(x, y); dummyData = (sqrt(X.^2 + Y.^2)); area = 2; distance = 100; nexttile p1=p...

4 years ago | 1

| accepted

Answered
how mark the highest maximums of a graph?
Let's plot some sample data. x = 0:360; y = sind(x).*(x-60).*(x-180).*(x-210)/(360.^2); plot(x, y) hold on Identify the loc...

4 years ago | 0

| accepted

Answered
How can I re-create sparse matrixes from the row and column indexes, and values?
Let's take a simple example: rng default S = sprand(10, 10, 0.1); % 10-by-10 with roughly 10 nonzero elements Let's get the v...

4 years ago | 1

| accepted

Answered
can't solve heat transfer in shell and tube by using ode45
You've only shown us 7 lines from onepass.m and I suspect that the lines you've shown start somewhere after the beginning of the...

4 years ago | 0

Answered
Seeking a Simulink Tutor/Coach
FYI MathWorks offers both training courses and consulting services.

4 years ago | 0

Answered
Histogram shows one value at the very end that ruins the plot
If that last bin is (roughly) twice as high as you think it should be, that's because the last bin includes both values that mat...

4 years ago | 0

Load more