Answered
Yet another "Dot indexing is not supported for variables of this type"
Set an error breakpoint so MATLAB stops when the code would throw an error. Attempt to reproduce the error. When MATLAB reaches ...

7 years ago | 1

Answered
Error using 'graph' function in matlab R2019b
Can you confirm that A is a matrix? What does this show when executed immediately before you try to construct the graph from A? ...

7 years ago | 1

Answered
How to combine numbers and symbols?
If you state when you define the symbolic variable a that it is real, Symbolic Math Toolbox can take advantage of that informati...

7 years ago | 0

| accepted

Answered
How to make a button?
Either the view or camorbit functions likely will be of use to you.

7 years ago | 0

Answered
Test value assignment fails
I have a class that has some properties defined with (SetAccess=private) I want to create a unit test that verifies that assi...

7 years ago | 0

| accepted

Answered
Can you use replace to remove all characters that aren't letters from a string?
You can use isstrprop to create a mask for various categories of characters then use that mask to extract just all letters, or j...

7 years ago | 0

| accepted

Answered
how can I plot a geometric figure has 14 vertices and each vertices related each other ?
It's not clear to me how you want to convert the matrix into a geometric figure. Do you want to make it a heatmap? Or perhaps a ...

7 years ago | 0

Answered
Reduce number of Markers on existing Matlab Figure
If you created your plots using the plot function, set the MarkerIndices property of the lines created by plot. See the "Revert ...

7 years ago | 1

Answered
how to divide a matrix by its norm in for loop
There's no need for a for loop here. Just use the norm function and divide. If you were trying to divide each row or each column...

7 years ago | 0

Answered
how can I count up the number from a specific interval?
Generate a logical mask that is true where your data is in your specific interval and false where it is not. x = 0:10 mask = x...

7 years ago | 0

Answered
>> a=[1 0.5 -0.2]; >> b=[1 -0.4]; >> sys=filt(b,a); 'filt' requires Control System Toolbox.
Does the output displayed by the ver function show that you have Control System Toolbox installed? If so and you're using your ...

7 years ago | 0

Answered
finding maximum and minimum - See example
Since you've said you can't use findpeaks, instead use the islocalmin or islocalmax functions. Unlike findpeaks which is part of...

7 years ago | 0

Answered
Seed choise in rng.
The choice of seed value is arbitrary. It's not like a seed of 42 would make the array of pseudorandom numbers generated by the ...

7 years ago | 2

| accepted

Answered
Any way to use British spellings for function calls and arguments?
Tab completion may be able to help you out, if you train your muscle memory to include the Tab key as part of your normal typing...

7 years ago | 1

Answered
How to get rid of Nan when calculating mean
The 'omitnan' option will ignore NaN values in your data when computing the mean. If your data contains values that result in a ...

7 years ago | 1

Answered
matlab re-orders my equation
Call coeffs with two output arguments. >> [C, T] = coeffs(lhs(eqn1), [C11 C12 C13 C14])

7 years ago | 0

Answered
ERROR : Missing domain attribute 'min'
Why are you trying to use feval on the symengine object to take the minimum of your symbolic input? Why not just call min direct...

7 years ago | 0

Answered
Can I just run some (loopless) code n times without having to modify the code to include a for loop?
Technically yes, but practically you're probably going to want to just add the loop or convert your code into a function and cal...

7 years ago | 0

Answered
Default Class Property Value That Contains Class
If a Dog has a FavouriteToy, must that FavouriteToy have a name? If so, could you represent the case where a Dog has no Favourit...

7 years ago | 0

Answered
Largest number in Matlab
When you say "largest integer" do you mean the largest value you can store in any of the integer data types or the largest integ...

7 years ago | 0

Answered
I just got these two errors, I have no idea why this happened, could you guys please help me?
Avoid passing char vectors into the symbolic solve function. As the Release Notes recommend, instead pass symbolic equations int...

7 years ago | 0

Answered
obtain a matrix out of other matrix
reshape your vector to be 13-by-8 then take the transpose of it. >> x = 1:104; >> y = reshape(x, [13 8]) >> z = y.' You can ...

7 years ago | 0

Answered
the integral of two methods are so different,can we trust the matlab anymore?
Each function returns the correct answer for the question it was asked. You asked the question in a particularly difficult way f...

7 years ago | 1

Answered
All combinations of differences
In your code it's not clear whether the identifiers you're using refer to data or functions. But to answer the question, if you'...

7 years ago | 0

Answered
NEED HELP URGENTLY WITH COMPILE RUN ERROR
Looking at your genFunction call: genFunction(net,'C:\Users\27714\Desktop\Neural Network training\myNetwork.m', ... 'Matri...

7 years ago | 0

| accepted

Answered
How to select a value in a matrix based on a pair of vectors?
If you don't want to use a loop like Jeremy Marcyoniak suggested, you could convert your subscripts into linear indices using su...

7 years ago | 1

Answered
Different complex log values displayed for a "single" input
Which release of MATLAB are you using? If you're using a release prior to release R2017b, try upgrading to that release or later...

7 years ago | 0

Answered
matlab.graphics.illustration.Legend/set
The legend object does not have a property named Blue. If you're trying to change the colors of the objects listed in the legen...

7 years ago | 0

Answered
can some one solved this question, it can't show the variable y
for n=1:x This looks suspicious. You loaded the variable x from a file named X_In.dat. Is x scalar? From the fact that you're c...

7 years ago | 0

| accepted

Answered
Can this line in a code be written in a smarter way?
I agree with John's assessment. Unless dC, b, and C are terms of art for chemical diffusion problems I'd use more descriptive va...

7 years ago | 0

Load more