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

Answered
Writematrix loses precision with string present in data
writematrix(["Test";compose("%.999g", 0.123456789)],"./testB.txt") dbtype testB.txt Retains full precision.

11 months ago | 1

| accepted

Answered
can you embed MATLAB figures into webpage?
Your options: run an application on a server that sends out graphics (perhaps using javascript, perhaps using HTML5) distribut...

11 months ago | 1

Answered
plot stem in vertical position
One method is to create a hgtransform and use that as the parent axes of the stem() call. Then set the Matrix property of the hg...

11 months ago | 0

Answered
submit m files for execution via the command line
If you open MATLAB in no display mode, then you will get a MATLAB session that is effectively all command-line and command windo...

11 months ago | 0

Answered
submit m files for execution via the command line
The official way of doing this is to use MATLAB Production Server; https://www.mathworks.com/products/matlab-production-server.h...

11 months ago | 1

Answered
exporting files to matlab
Go ahead and save the file to MATLAB Drive. Then in MATLAB Online use the folder view on the appropriate directory. Right click ...

11 months ago | 0

Answered
How to fix a code?
You created a vector named t . Then in constructing the anonymous function for ode45 purposes, you used @(t,x) equations(t, ...

11 months ago | 0

Answered
writing a mex statement for outputting values of some variables to the console.
https://www.mathworks.com/help/matlab/apiref/mexprintf.html #include "fintrf.h" integer*4 mexPrintf(message) character*(*) m...

11 months ago | 0

Load more