Answered
check if mainAPP exist in app designer
No. MATLAB does not offer any any general mechanism to test whether variables of particular classes exist.

3 years ago | 1

Answered
creating a big matrix (2000x2000x2000)
If you are using a 32 bit version of MATLAB (which was still possible in the time of your R2009a release) then what you are aski...

3 years ago | 2

Answered
write matlab code for this expression
appears to be a set of functions. You will need to use a cell array of function handles and index it like tau{i,j}(t) You wi...

3 years ago | 0

Answered
Not enough input arguments. Error in iyp2. there are 4 varible@(tau,ztau,zpa,t) in the iyP(tau,ztau,zpa,t)but t is independent for sum
iyp2=@(tau,ztau,zpa,t)cell2mat(arrayfun(@(tau,ztau,zpa,t)iyP(tau,ztau,zpa,t),tau,ztau,zpa,t,'UniformOutput',0)); iyp2 is define...

3 years ago | 0

Answered
Error using arrayfun All of the input arguments must be of the same size and shape. Previous inputs had size 14 in dimension 1. Input #5 has size 1
iyp2=@(tau,ztau,zpa,t)cell2mat(arrayfun(@(tau,ztau,zpa,t)iyP(tau,ztau,zpa,t),tau,ztau,zpa,t,'UniformOutput',0)); ...

3 years ago | 0

Answered
How can i create array of symbolic expressions?
syms t y(t) That creates y(t) as a symfun not as a sym d= diff(y) When you differentiate a symfun then the output is a symfun...

3 years ago | 0

Answered
Unrecognized function or variable 'zap'. the error -20 line. I don't know how to use multiple-integral function
f1=@(tau,ztau,zpa,u)((2*sqrt(2*alpha*zpath.*ztau)./(sinh(tau.*sqrt(alpha./2))))./sqrt((pi^3).*zpa).*exp(-(2*sqrt(2*alpha*zpath....

3 years ago | 0

Answered
Can I extract the code of an .mlapp without opening App Designer?
See https://undocumentedmatlab.com/articles/appdesigner-mlapp-file-format for information about the internal structure of mlapp ...

3 years ago | 1

| accepted

Answered
When exactly does BytesAvailableFcn run?
Timer functions are (somewhere) documented as executing at the beginning of the next line of MATLAB code that executes. I would ...

3 years ago | 1

Answered
How can plot boundary to quiver figure
You can use boundary to obtain a bounding outline. You might want to play with the alpha coefficient. Once you have a boundary...

3 years ago | 0

Answered
Niftiinfo do not keep negative values
I stepped through the code that reads the image. The data as it is stored in the file has no negative values. The only items th...

3 years ago | 0

| accepted

Answered
CLA to Clear Out Axes Not Working in Slider Callback Function
If you have performance issues, then you should be re-working your graphics a fair bit. For performance, create your axes and t...

3 years ago | 0

| accepted

Answered
How to insert cell array into first row of excel worksheet using worksheet and workbook properties (dot notation)?
For a fair number of releases now, on Windows, xlsread() and xlswrite() leave activex sessions open talking to Excel . This is d...

3 years ago | 0

Answered
I wonder why the following code is not able to give a valid output? My objective is to solve a system of simultaneous ODEs with dirac comb func.
Whne you use heaviside or dirac delta, and you go for a numeric solution with any of the ode*() functions, then you must use an ...

3 years ago | 0

Answered
How to get value of function x=f'(y)
You do not. You have exp((V+I.*Rs)./Vt_Ta) as one of the terms creating a new I each time, so as you go on your terms getting ...

3 years ago | 0

Answered
Real time plot is very slow when I try to graph 6 subplot
Do not keep calling subplot and so on. Set up the subplots and titles ahead of time. In each one, call animatedline() and reco...

3 years ago | 0

Answered
convert code from mathematica to matlab
In Mathematica, that code defines an anonmymous function of one parameter that runs a while loop to do a calculation, and then i...

3 years ago | 0

Answered
Maximum recursion limit of 501 reached. Use set(0,'RecursionLimit',N) to change the limit. Be aware that exceeding your available stack space can crash MATLAB and/or your comp
You have a script or function named mosek that is invoking mosek The most common cause of this kind of infinite recursion is pe...

3 years ago | 0

Answered
Can I reduce the serialport 's write function call time
Are there settings for the serial port that will make the write command run faster? I developed a code to write uint16 words to...

3 years ago | 1

Answered
Change to Text Colour to "RED" after a Logical statement is True and the "Return" Function NOT Terminating
fprintf(2, '\nRevise Cable Size to Meet Minimum Requirements for Ampacity;\n'); %notice the 2 The color does not show up here,...

3 years ago | 1

Answered
How to crop image into 256 x 256 x 3 if the original image is 841 x 482 x 3 uint8 if using the centroide of the lesion with x_cent = 720 and y_cent = 151?
I2 = I(ymin:ymin+size_of_cropped_img-1, xmin:xmin+size_of_cropped_img-1, :);

3 years ago | 0

| accepted

Answered
immutable outputs from matlab functions
No. The closest you can get is to create a class that does not have a public set method for the properties.

3 years ago | 0

Answered
Read 1.0 as 1.0 with fscanf(fid, '%f').
This is not possible in MATLAB. "format short g" instructs matlab to use specific output rules *for display* that are not compat...

3 years ago | 0

| accepted

Answered
How to change 257x251x1 uint8 into 257x251x3 uint8?
I=imread('1222.png'); if ndims(I) == 2; I = I(:,:,[1 1 1]); end %convert to rgb

3 years ago | 0

| accepted

Answered
Image won`t output after noising.
load facets; nbc = size(map,1); subplot(2,3,1); imshow(X,[]); title('as grayscale'); colorbar Xcolor = ind2rgb(X, map); Xgray...

3 years ago | 1

| accepted

Answered
Running MATLAB code using the Runtime
It needs to be compiled with MATLAB Compiler. The MATLAB Runtime is only for use with programs compiled with MATLAB Compiler or ...

3 years ago | 0

| accepted

Answered
Why won't Matlab plot or finish running my code due to the value of 1 variable?
You have to reduce the upper bound on the time by quite a bit. With you current code, with ode45, after running for about 45 min...

3 years ago | 0

Answered
Index exceeds the number of array elements
[~,M_pos] = ode45(xd,[ti tf],[0 0 0 0],optimset); That line is going to take whatever xd is and attempt to pass two parameters ...

3 years ago | 0

Answered
division of factor in polynomial
expr = str2sym('(4*R^3*r^2*y^2 + R^3*y^4 + 4*R^2*r^3*x^2 + 2*R*r^2*x^2*y^2 + r^3*x^4)/(8*R^3*r^3)') expand(expr)

3 years ago | 0

| accepted

Answered
Out of memory error on interpolation
You are not running out of memory in a call to interp3(): you are running out of memory in a call to ncread() The data file tha...

3 years ago | 0

Load more