Réponse apportée
how to take the first number of the sentence (before the hyphen)
double(extractBefore(VARIABLE, ' -'))

11 mois il y a | 0

| A accepté

Réponse apportée
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 mois il y a | 1

| A accepté

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 1

| A accepté

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 0

| A accepté

Réponse apportée
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 mois il y a | 0

| A accepté

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 0

| A accepté

Réponse apportée
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...

12 mois il y a | 0

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

12 mois il y a | 1

| A accepté

Réponse apportée
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 mois il y a | 1

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 1

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 0

| A accepté

Réponse apportée
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 mois il y a | 1

| A accepté

Réponse apportée
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 mois il y a | 0

| A accepté

Réponse apportée
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 mois il y a | 0

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

12 mois il y a | 0

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 1

| A accepté

Réponse apportée
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 mois il y a | 0

Réponse apportée
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 mois il y a | 0

Charger plus