Answered
Number of Files for a Program Script
Functions in separate files are potentially reusable, which is a good thing. Functions in the same file are often convenient. ...

3 years ago | 0

Answered
standalone app build on linux fails
https://www.mathworks.com/support/bugreports/2856360 you need Update 4 of R2022b

3 years ago | 0

Answered
Error using AppDesigner attempting to output to a TextArea
app.OutputTextArea.Value{i+1} = rec; your rec is a cell, and the destination is the contents of a cell. The Value would not...

3 years ago | 0

Answered
Design PR Controller for 400Hz ground power unit
your R Controller is a subsystem. You need to open that subsystem and look at the Ki block there. It is configured to use the va...

3 years ago | 0

Answered
Hello, I'm having problems with the "freqs" or "freqz" function
You need to license and install the Signal Processing Toolbox. If you purchased the MATLAB Student Suite then if I recall corre...

3 years ago | 0

Answered
axeshandle with matlab code
You need to stick to using subplot() or using tiledlayout() -- mixing the two can be a challenge. You have five plots, not four...

3 years ago | 0

Answered
How to write this in the title?
Hint: fprintf('%d %0.3f %0.2f', randi(10), randn, randn)

3 years ago | 0

| accepted

Answered
I am receiving an error message that there are not enough input arguments in my function f.
Looks to me as if it works format long g x = randn(1,10) [f1, g1] = rosenbrock(x) [f2, g2] = exponential(x) function [f, ...

3 years ago | 0

Answered
Error, Detector in YOLO V4
detector = yolov4ObjectDetector("csp-darknet53-coco",className1,className2,anchorBoxes,InputSize=inputSize); yolov4ObjectDetect...

3 years ago | 1

Answered
how to send Matlab app (.mlapp) file data and Matlab function (.m)
You have defined your method DefineSections as being either private or protected . Such methods cannot be called from outside th...

3 years ago | 0

Answered
Matlab plot enhancements for value showing
If you are using datacursormode then supply a custom update function that returns a cell array of character vectors, one cell fo...

3 years ago | 0

Answered
Solve() in a for loop giving an Empty sym: 1-by-0 answer
x = t^3 - 9*t^2 + 24*t - 8; x will be a single scalar symbolic expression t1 =[a2, tvalue2, b2]; t1 will be at least 3 values...

3 years ago | 0

Answered
I am getting the error Unrecognized function or variable 'rankin'. and the error This statement is incomplete.
you do not show us that code. But be careful about rankin compared to rankine

3 years ago | 0

Answered
Split the combvec resulting matrix?
a1 = [1 2]; a2 = a1; a3 = a1; a4 = a1; a27 = [1 2 3 4]; a28 = a27; Mat = combvec(a1, a2, a3, a4, a27, a28); numel(a1)^4 *...

3 years ago | 0

Answered
How do I programatically query the audio card in a Mac/PC to find sample rate, bit depth and other audio card parameters?
I tried digging further into Apple's audio interface to see if I could find device descriptors of supported audio rates. The de...

3 years ago | 1

Answered
Not enough input arguments
The error message is telling you that you did one of three things: You invoked initalg or initalg() at the command line without...

3 years ago | 0

| accepted

Answered
Undefined function 'geomean' for input arguments of type 'double' in Matlab 2020
it needs the Statistics and Machine Learning toolbox

3 years ago | 0

Answered
simulink error: data inferred as variable matrix but it's size is specified as inherited or fixed.
Your coeff output has a size that depends on the *data* in deg and memDepth. Except possibly for the case where those inputs are...

3 years ago | 0

| accepted

Answered
activation key matlab r2022b
Mathworks Sales will email you the activation key when you purchase MATLAB

3 years ago | 0

Answered
Converting 6 Pic into Matlab data
jpeg files do not contain variables. jpeg files contain 2d arrays of uint8 (occasionally, but rarer than February 29th's) or ...

3 years ago | 0

| accepted

Answered
why am i getting this message: "Array indices must be positive integers or logical values."?
deg = df(:,1); min = df(:,2); sec = df(:,3); min is now a variable not a function. "minutes" and "minimum" same abbreviat...

3 years ago | 0

Answered
Operator '*' is not supported for operands of type 'handle.handle'.
You have to use the Value property of the Range https://www.mathworks.com/matlabcentral/answers/475254-with-activex-server-runn...

3 years ago | 0

| accepted

Answered
How small is Zero?
format long g A = sym(floor(randn(5,2) * 16)) / 16 cord = corr(double(A)) cors = corr(A) corsv = vpa(cors, 16) corsd = do...

3 years ago | 1

Answered
Can I use the file exchange program triangulationVolume publically even though it has no license?
https://www.mathworks.com/matlabcentral/content/fx/about.html?s_tid=gn_mlc_fx_help#License A BSD license is the only supported...

3 years ago | 0

| accepted

Answered
Can I run a function and automatically provide it with user input?
Is it possible to write code that will run PVAnalysisMain(), and when the function asks for user input, give it some predetermin...

3 years ago | 0

| accepted

Answered
how can i clear the error, Index exceeds the number of array elements. Index must not exceed 10. line (s1(i) = XSteamUS('s_pT',p_inlet(i),t_inlet(i));)
for i = 1:nstep_tt % Turbine Temp (700-1200degC) nstep_tt is not defined in the code you posted. We have no reason to expect...

3 years ago | 0

| accepted

Answered
Trajectory plot wont graph...
theta = (75); %degrees a = -32.2; %ft/s^2 vyFinal = 0; %ft yInitial = 1; %ft % Set loop to graph in 1 foot increments from 3...

3 years ago | 0

Answered
uicontrols, trying to add a state button to a figure not a uifigure
For traditional figures, use startstop = uicontrol('style', 'toggle', ... 'String', 'Start', ... 'Position', as_ap...

3 years ago | 0

Answered
How to make real time audio recording of 1 sec in matlab?
It takes time to construct the recording object. It takes time to retrieve the recorded samples. It takes time to write the samp...

3 years ago | 1

| accepted

Answered
i want plan a path using A* algorithm,Below is my code and when im running it im gettinh the folowing eroor.How can i correct this?
closedSet = []; That is a double(). You cannot assign a struct to that by indexing. Use closedSet = startNode(false...

3 years ago | 0

Load more