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.

12 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...

12 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...

12 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...

12 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...

12 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 ...

12 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, ...

12 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...

12 months ago | 0

Answered
hi, any tips for mapping 3 nos. of 4x4 matrix (k1, k2, k3) and i need to map it into 8x8 matrix (Kg) and their intersection should add up...
Kg = zeros(8,8); Kg([3 4 1 2], [3 4 1 2]) = K1; Kg([1 2 5 6], [1 2 5 6]) = Kg([1 2 5 6], [1 2 5 6]) + K2; Kg([7 8 1 2], [7 8 ...

12 months ago | 0

| accepted

Answered
zero(s) of a nonlinear implicit function
In particular, I want to find a array of outputs for a given array of inputs. That is not possible using fsolve() -- not unless...

12 months ago | 1

| accepted

Answered
No Code to Analyze Add code with code formatting and then click Analyze.
You could get that error if you were using LiveScript and you accidentally inserted your code using "Insert Text" instead of "Co...

12 months ago | 0

| accepted

Answered
Parallel Worker sends "finished" after less then a second of "running" but has a infinite Loop. I dont want it to stop.
https://www.mathworks.com/help/parallel-computing/parallel.pool.dataqueue.html The side that you create the parallel queue on ...

12 months ago | 0

Answered
Does Polyspace (BugFinder and Code prover) support Ada language?
https://www.mathworks.com/products/polyspace-ada.html Polyspace Products for Ada

12 months ago | 0

Answered
What does rng(seed,''5normal") actually means and what they are controlling while generating the matrices?
According to https://www.mathworks.com/help/matlab/ref/randstream.html#mw_cc34b6ad-c7e6-4943-b21b-7d7310a4dd52 "v5normal" corres...

12 months ago | 0

Answered
Hello. I need to transform a folder of PNG gray pictures to hex files
projectdir = './inputimages'; %directory to look for png files hexfiledir = './hexdir'; %directory to store hex files ...

12 months ago | 0

Answered
Ezyfit: Single vs. Two-Step Fitting Problem
Is there a method or setting within Ezfit to obtain accurate 4-parameter results in a single fitting run (Method A)? No.

12 months ago | 1

| accepted

Answered
Cyclic dependency in OOP
You can use dependent properties, perhaps in conjunction with hidden properties. In the example given, you could have a hidden...

12 months ago | 0

Answered
How to vectorize analytical derivative functions for bvp4c?
In order to calculate analytic derivatives, you need to be using the Symbolic Toolbox. If you use a scalar symbolic formula (an...

12 months ago | 0

Load more