Answered
How to perform definite integration with non-commutable symbolic coefficients?
Crucially the qw terms are not commutable so cannot be factored out of the integrals. The only way to enter non-commutable term...

11 months ago | 0

| accepted

Answered
Matrices do not have the same number of columns
A = [ zeros(5,5) eye(5); -inv(M)*K -inv(M)*C ]; That has 10 columns -- 5 of zeros and 5 of eye C = 0.002; %N-s/m %damping cons...

11 months ago | 0

Answered
I can't get my color bar to be the range that I want it at.
On the scale of 10^4 to 10^7, 10^4 occupies 1/1000 of the range. Starting at 10^4 is a 1 to 2 pixel difference. Notice the colo...

11 months ago | 0

Answered
Syms, fit and integral in a standalone app
That code never uses z in its sym form, so the syms z is not needed. The definition of func1 uses z as an input parameter, so t...

11 months ago | 0

| accepted

Answered
SUNDIALS solvers interface into Matlab.
You appear to be using MS Windows. MS Windows does not use the .a file extension -- the .a file extension is for statically link...

11 months ago | 0

| accepted

Answered
Executable Generated not Working when .m File is
You have coded an algebraic matrix multiplication, the * operator. Unless you are deliberately doing linear algebra work, chan...

11 months ago | 0

Answered
How to fill a blank cell with the value of the cell above it in a table?
if isempty(data.Var1) You are testing all of the Var1 component of data at the same time there, which does not make sense s...

11 months ago | 0

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
yTrain = exp(net(xt(:,tr.trainInd)))-1; That appears to be a 2D array, presuming xt has more than one row. trainInd is a vector...

11 months ago | 0

Answered
How to use function ping in Matlab 2024?
It is perhaps easier to system('ping') . Or, if you are using Windows, then to use System.Diagnostics.Process to construct a .NE...

11 months ago | 0

Answered
can a function be made to be called from any directory?
If you are referring to custom functions that are to be called no matter which directory you call them from, then the answer is ...

11 months ago | 0

Answered
fopen does not open a file correctly
You should be using if ~exist("path","var") infilename = '.mpropep/input.txt'; [inputFile, msg] = fopen(i...

11 months ago | 1

| accepted

Answered
Error using save, too many output arguments - don’t know how to fix.
save() does not support any output arguments. You also have the problem that save() with a single input argument will save all ...

11 months ago | 0

Answered
HOW DO I GET LICENSE KEY FROM MATHLAB
You need to activate the trial version; https://www.mathworks.com/matlabcentral/answers/97225-how-do-i-install-a-trial-license-o...

11 months ago | 0

Answered
Modify function_handle in Simulink matlab function
if nonConOption == 1 nonlcon = @circlecon; else nonlcon = @(varargin) deal([],[]); end

11 months ago | 1

Answered
how can I change y-axis without changing figure' values?
imagesc(t, fliplr(f), ST_normalized) ax = gca; ax.YDir = 'normal';

11 months ago | 1

| accepted

Answered
Using variable as part of name to extract sequentially named columns from imported table
for i = 1:wmod force = data.("Force_" + i); stroke = data.("Stroke_" + i); plot(stroke, force, 'displayname', str...

11 months ago | 0

| accepted

Answered
Why do i get a figure window that is completely blank
Possibly you have not written any graphics to that figure. Possibly your code depends on using the default figure or the defaul...

11 months ago | 0

Answered
Xlim error in App designer
You do not provide initial values for app.StartYear or app.StopYear, so they are initialized to [] (the empty vector) Then when...

11 months ago | 0

Answered
how to take the first number of the sentence (before the hyphen)
double(extractBefore(VARIABLE, ' -'))

11 months ago | 0

| accepted

Answered
error in Simulink matlab function
Simulink needs to be able to calculate the output size at compile time. Simulink is able to take into account formulas such as s...

11 months ago | 1

| accepted

Answered
How can I stop Fmincon?
Use an OutputFcn and set the "stop" output according to whether you want to stop or not. https://www.mathworks.com/help/optim/ug...

11 months ago | 0

Answered
APP DESIGNER EDIT FIELD ISSUE---HELP REQUESTED
Your code has disp(['EditField1.Value =' , app.EditField.Value]); This does a horzcat() operation between a charac...

11 months ago | 1

| accepted

Answered
I have developed this code to solve the problem until a certain value of y is achieved but I keep getting "Array indices must be positive integers or logical values"
You are confusing "indexed at" with "function maps to" y(0) = y0 is an example of "function maps to" -- the function y maps 0 t...

11 months ago | 0

Answered
any option as applying while code to develop pipeline connection within looped network; has noted zero indexing
else(matr1(rL,3)==11); I suspect from context that you wanted elseif(matr1(rL,3)==11);

11 months ago | 0

Answered
How to make a curve fill the whole plotspace
You have the same y each time, but the visible coverage is different. For log plots the implication is that the data either beco...

11 months ago | 0

| accepted

Answered
alphaShape doubt to extract the number of polygons and its vertices
After the call shp = alphaShape(high_wind_x, high_wind_y, 1); you can do [tri, P] = alphaTriangulation(shp); ...

11 months ago | 0

| accepted

Answered
For loop operation in ODE45 performs faster than equivalent indexing
index = 1:Nx; % Compute stencil-based fluxes f0(index) = (2/6) * f_ext(index) + (-7/6) .* f_ext(index+1) + (11/6) .* f_ext(ind...

11 months ago | 0

Answered
Numeric vector indexing slows down when the vector is a struct field. Why?
I thought struct fields were supposed to behave essentially the same as individual variables, and that dot indexing was just a w...

11 months ago | 0

| accepted

Answered
Standard form of Transfer function.
An intermediate step in converting to natural frequency form is finding the roots of the denominator. It happens that it is po...

11 months ago | 0

Load more