Answered
Matlab app - Using properites(app) opens another instance of the app
Change props = properties(QFM3); to props = properties(app); This assumes that savesimfile is a method of class QFM3.

3 years ago | 1

| accepted

Answered
Error to find the Molor Volume using Lee/Kesler Data Table
Pr = P/Pc; That value is being calculated -- and it is not an integer. Pr_match = (Z0_table(1,Pr_ind) == Pr); Z0_table is an ...

3 years ago | 0

| accepted

Answered
Summing a 30x30x30 matrix.
A = ones(30, 30, 30); res= cellfun(@(M) sum(M, 'all'), mat2cell(A, 10*ones(1,3), 10*ones(1,3), 10*ones(1,3))); res

3 years ago | 1

| accepted

Answered
Advice constructing large sparse Jacobian arrays
1. Do I save memory by type casting array indices as integers for the sparse array manipulations? No. A1 = sparse(zeros(20...

3 years ago | 0

| accepted

Answered
How to perform the following data splitting?
idx = round((T(:)-5.2)/0.02) + 1; Xgrouped = accumarray(idx, X(:), [], @(vals){vals}); Ygrouped = accumarray(idx, Y(:), [], @(...

3 years ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
[r(1,:),v(1,b)] = etc and pass in r(i-1,:), v(i-1,:)

3 years ago | 1

| accepted

Answered
I wonder why NaN appears at Y. How can I fix it?
Your ode is a function of R, and divides by R, and you started R at 0.

3 years ago | 0

| accepted

Answered
Cannot extract real or imag part of a function
f_ft is a function handle. The only operations supported for function handles are copying, assignment, invocation, display, func...

3 years ago | 1

Answered
I want b value only but unrecognizied value are variable b ..B can be find only through trail and error with out any intiate value of b ??
There are multiple solutions for some of the p values. The other p values lead to expressions in 6th roots of a complex polynomi...

3 years ago | 0

Answered
problem with while and if loops.
user_status = input('would you like to find your resistor value? enter yes or no with an apostrophe on each side of the text'); ...

3 years ago | 0

| accepted

Answered
How to get an additional output from fminsearch
Which one? The last function call made by fminsearch() is typically not one that made the final improvement. If it had made an ...

3 years ago | 0

Answered
using hasSymType(expression, 'constants') returns true when no constants
Internally, inside the symbolic engine, s*2 is coded as a data structure _mult(DOM_IDENT('s'), DOM_INT(2)) and taking children...

3 years ago | 0

Answered
Timer not working in my programmatic app (not app designer)
The first parameter passed to a timer is the timer object, and the second parameter is the event data. You are trying to fig =...

3 years ago | 0

Answered
How do i change the default language of Matlab?
You have a font problem. See https://www.mathworks.com/matlabcentral/answers/758159-matlab-r2020b-gibberish-font#answer_643857

3 years ago | 0

Answered
why do i recieve a warning message: Warning: Name is nonexistent or not a directory
Change addpath C:\Program Files\MATLAB\MATLAB Production Server\R2015a\BNT to addpath('C:\Program Files\MATLAB\MATLAB Product...

3 years ago | 0

Answered
Add nodes (3D) placed at a distance H from starting nodes (3D)
For any particular grouping: Subtract the mean() of the coordinates in order to shift the coordinates to be relative to the cen...

3 years ago | 1

Answered
why does 'getenv' return empty when Matlab is launched from crontab?
In shells derived from the Bourne shell, when you create an environment variable, by default the environment variable is not mad...

3 years ago | 0

Answered
hey, could somebody please help me understand and resolve this error?
function y = inputSource(~) is not how you would define a function that accepts more than one input parameter but ignores the i...

3 years ago | 1

| accepted

Answered
When I use delayseq() I the signal contains only zeros
scalar delay is applied individually to each *column*. Your row of signals is treated as many independent signals delayed by 800...

3 years ago | 0

| accepted

Answered
Error with reading file within a parfor loop in a compiled application
You should be using ctfroot

3 years ago | 0

Answered
Determine which element violates the second law of thermodynamics
fprintf('Temperature crossover reached: %g\n', T(6),'<%g\n',T(15)); That is not the syntax for outputing multiple variables...

3 years ago | 0

Answered
"Too many input arguments" error while using bvp4c.
bvp4c expects the first parameter to be an ode function. That ode function is expect to take two parameters -- current time and ...

3 years ago | 0

Answered
Cone fitting in Matlab
theta = linspace(0, 2*pi, 100); r = linspace(0, 5, 100); z = linspace(0, 10, 100); xData = r .* cos(theta); yData = r .* sin...

3 years ago | 2

Answered
How to convert byte number into float in Simulink
https://www.mathworks.com/help/simulink/slref/datatypeconversion.html Data Type Conversion block

3 years ago | 0

Answered
Rename substring in table
As a utility, see matlab.lang.makeUniqueStrings -- which already happens to append an underscore and a number. So if you were to...

3 years ago | 1

| accepted

Answered
Is polyspace 2020b compatible with win11?
There are some Windows-11 specific problems with polyspace in some versions. For example https://www.mathworks.com/support/bugr...

3 years ago | 0

Answered
¿Qué significa la matriz que devuelve la función chol(A), si A es definida positiva pero no es simétrica?
"If A is nonsymmetric, then chol treats the matrix as symmetric and uses only the diagonal and upper triangle of A."

3 years ago | 1

| accepted

Answered
Why I am getting "Matrix is singular to working precision"?
The equations have an infinite number of solutions. They are consistent but the 4th equation can be deduced from the previous 3....

3 years ago | 0

Answered
Matlab R2021a quit.
The code was attempting to use the third party package refprop version 9.0 or 8.1, which was for 2013 to 2016. The mex file used...

3 years ago | 0

Load more