Answered
double error syms code
Preallocate C to be a sym array. syms x C=zeros(3, 6, 'sym') C(2, 3) = x.^2

4 years ago | 0

| accepted

Answered
matlab url encoding doubt
s1 = 'Hello\nWorld' s1E = urlencode(s1) s2 = sprintf('Hello\nWorld') s2E = urlencode(s2) whos s1 contains 12 characters inc...

4 years ago | 0

| accepted

Answered
Can't load saved yoloV2 network in standalone Matlab app 2021a
See the Tip in the "Fixing Callback Problems: Missing Functions" section of this documentation page. Use the %#function pragma t...

4 years ago | 0

Answered
ifft matlab to cpp
The ifft function supports the extended capability of C/C++ code generation using MATLAB Coder. If you have MATLAB Coder availab...

4 years ago | 0

Answered
How to rename a graph node labels ?
Let's take a sample graph and look at it. [B, V] = bucky; B10 = B(1:10, 1:10); V10 = V(1:10, :); G = graph(B10); plot(G, 'X...

4 years ago | 0

| accepted

Answered
Convert time vector of Year, Month, Day, Hours, Minute to Decimal format
% Sample data d = datetime(2019, 10, (2:6).', 12, 0, 0) startOfYear = dateshift(d, 'start', 'year') p = years(d-startOfYear) ...

4 years ago | 0

Answered
How to list all isolated vertices and remove it from the graph?
rng default A = sprandsym(10, (5/100)); G = graph(A, string(1:10)); % Give the nodes names plot(G) isolatedNodes = degree(G)...

4 years ago | 0

| accepted

Answered
I am getting an error as "Check for incorrect argument data type or missing argument in call to function 'exp'." can anyone help me out?
Most likely your image data is of an integer type. The exp function is not defined for the integer types. one = int8(1); y = e...

4 years ago | 0

Answered
Have an error with dot, while searching value in struct
Dynamic field names works if the entry inside the parentheses is a field name. "a.b" is not a field name, it represents multiple...

4 years ago | 1

Answered
Printmat no longer works
Probably the simplest close replacement would be to turn your matrix into a table using array2table (specifying both RowNames an...

4 years ago | 0

Answered
The slicing is not complete!
Most likely some of the numbers that are displayed as 1 are stored as a value that is very close to but not down-to-the-last-bit...

4 years ago | 0

Answered
When using the 1D convolution example code from MATLAB am getting an error about incorrect use of '='.
The "Name=Value" syntax you're using was introduced in release R2021a. Your desktop MATLAB is too old to use that syntax, but MA...

4 years ago | 0

| accepted

Answered
using logical indexing to find events
Use ismembertol (to avoid floating-point issues) or ismember (if your time data contains exactly represtentable times.) t=0:0.0...

4 years ago | 1

Answered
use x and y in a matrix
syms x y; E=cell(3,1); E{1}=[1,1,1;1,2,0;3,5,2]; E{2}=[1,0,0;3,2,1;0,4,3]; E{3}=[0,1,1;0,2,1;2,6,1]; A=[1;5;7]; B=[2,3,4];...

4 years ago | 0

| accepted

Answered
Find and remove part of a string which precedes a particular substring
Convert A to a string array then use the string processing functions like extractAfter and eraseBetween. A = {{'all the governm...

4 years ago | 0

| accepted

Answered
Sliding function in window?
x = 0:3600; plot(x, sqrt(x).*sind(x)) axis([0 360 -60 60]) Now either click and drag the mouse or (if you only want to scroll...

4 years ago | 1

| accepted

Answered
License files for network licenses cannot be retrieved automatically
The error message suggested contacting your system administrator for assistance. This would likely be someone in your IT departm...

4 years ago | 0

| accepted

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

Load more