Answered
Why does Matlab put symbols out of order when using a matrix?
Symbolic Math Toolbox is allowed to replace one expression with another if they are equivalent. Because of the reflection identi...

4 years ago | 0

| accepted

Answered
How to turn column y and row x vector into a matrix
How exactly should element B(r, c) be computed from the elements of x and y? Rather than using random data, let x = 1:5 and y =...

4 years ago | 0

Answered
New string based on parts of old string
I would use the extract* functions listed in the Join and Split section of the Characters and Strings category page in the docum...

4 years ago | 0

Answered
How to perform piece-wise linear regression to determine break point?
Consider using the ischange function. % Making some synthetic data x = 0:200; y = zeros(size(x)); y(x <= 100) = x(x <= 100)/...

4 years ago | 5

Answered
Solving ODE with non-constant parameters using ode45
See the "Pass Extra Parameters to ODE Function" example on the documentation page for the ode45 function. There's also a link to...

4 years ago | 0

Answered
Mat file opening and comparing with each other
What type of comparison do you want to perform? Do you want a logical answer, yes MAT-file A is different from MAT-file B or no ...

4 years ago | 0

Answered
how can I auto-link two properites in a matlab class
Make x and/or y dependent properties, either having the get.y method perform its computations using the value of the x property ...

4 years ago | 0

| accepted

Answered
If Statement not using conditionals
From the documentation "if expression, statements, end evaluates an expression, and executes a group of statements when the expr...

4 years ago | 0

| accepted

Answered
Vectorize product into new dimension
Using slightly smaller arrays so these lines can run in Answers: A = randn(100); b = randn(1,100); lA = size(A,1); lb = leng...

4 years ago | 1

Answered
I have a problem when I convert a char into a variable name
Can you create dynamically named variables like this? Yes. Should you do this? The general consensus is no. See that Answers po...

4 years ago | 1

| accepted

Answered
Write an image analysis MATLAB program
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific...

4 years ago | 0

Answered
How to obtain union of three shapes given the coordinates
I'd use polyshape. cy_l=0.3; % length of rectangle outside the circle r=0.5; % radius of circle a=0.3; % width of rectangle ...

4 years ago | 0

| accepted

Answered
Access of .OND and .PAN extension file
You want MATLAB to read in Lotus Notes Encapsulated Memo Files and Panorama Database Files? I don't believe there are any functi...

4 years ago | 0

Answered
Error using fileparts with Datastore
I believe ds.Files returns a cell array or a string array of file names. Support for a cell array of file names or a string arra...

4 years ago | 0

Answered
It shows File: mainvala.m Line: 77 Column: 21 Invalid use of operator. whenever i run this. Any fixexs?
Assuming the comment that starts your code is on line 1, lines 77-79 are: theoryBer_nRx1 = 0.5.(1-1(1+1./EbN0Lin).^(-0.5)); p...

4 years ago | 0

Answered
How to assign predetermined values for points of discontinuity
v = 0:5:50 a_n=(0.01.*(10-v))./(exp((10-v)./10)-1) a_n = fillmissing(a_n, 'constant', 0.1) % Fill missing values (NaN) in a_n ...

4 years ago | 0

Answered
How to install matlab_R2021b_maci64-2.dmg in my Mac book pro
At which step of the installation process did you first encounter difficulties that prevented you from completing the installati...

4 years ago | 0

Answered
Unrecognized property 'fig' for class 'matlab.ui.Figure'.
You'd already stored a figure handle in the variable named h, and indeed a Figure handle doesn't have a property named fig like ...

4 years ago | 1

Answered
Marker Indices automation using 'set' function
What you've written second would almost work if you turned hold on. However you can't use a line specification in a set call lik...

4 years ago | 1

| accepted

Answered
How to initialize polyshape array?
P = repmat(polyshape, 1, 5); for k = 1:5 P(k) = nsidedpoly(2+k, 'Center', [2*k, 0]); end plot(P) axis equal

4 years ago | 3

| accepted

Answered
Show more digit number in command window
Are you trying to display a numeric result (in which case you should use the format function to change the format used to displa...

4 years ago | 0

Answered
Finding coefficients of variables of specific powers
syms x y r z = x^2*y + 3*y + 5*x^2 +4*y^2 + 3*x*y*r + 5 [coeffsOfX, powersOfX] = coeffs(z, x, 'all') [coeffsOfX2y, powersOfY]...

4 years ago | 0

Answered
Difference between orth(A) and classical Gram Schmidt
See the Algorithms section on the documentation page for the orth function.

4 years ago | 0

| accepted

Answered
When the variables of the equation are zero, the equation cannot be solved and results in reading 'Value' must be a double scalar within the range of 'Limits'.
I'm guessing you have a NumericEditField in your app. What are the values for the properties Value and Limits of your edit field...

4 years ago | 0

Answered
checking an interval by using switch case function
switch and case are not the best tools for this application, at least not alone. If you have a small number of potential cases e...

4 years ago | 0

| accepted

Answered
How can i assign sybolic values to ymbolic variables in an symbolic matrix?
Can you create variables named c1, c2, c3, etc.? Yes. Should you do this? The general consensus is no. See that Answers post fo...

4 years ago | 0

Answered
how to convert date to milliseconds (Binance format)
So your input is a number of milliseconds since January 1st, 1970? msSince1970 = 1234567; start = datetime(1970, 01, 01); T1 ...

4 years ago | 0

| accepted

Answered
How can I calculate the cumulative sum of this file?
"calculate the cumulative" what of the file? Cumulative sum? cumsum. Cumulative product? cumprod. Cumulative minimum or maxim...

4 years ago | 0

| accepted

Answered
Generating random numbers with a different probabilities
If you know the probabilities you want each number to have you could use discretize. For instance if I want to generate numbers ...

4 years ago | 0

Answered
Convert epoch to human readable data and time
What's the unit of time a value of 1 in your epochtime represents? Seconds, microseconds, nanoseconds, etc.? t = 6000; start =...

4 years ago | 0

Load more