Answered
Regarding Developing and Launching a Commercial Application with a MATLAB Commercial License
Is it possible to develop a commercial application by purchasing a MATLAB Commercial License? Yes. As long as the application i...

2 years ago | 1

Answered
why my theta is equal to zero?
deval() returns a matrix with one row for each state variable, and one column for each time evaluated at. You are using linear...

2 years ago | 0

Answered
Question about how to use drawline to record line segment lengths in real time
Use wait to wait until the user finishes with the ROI. After that you can examine roi.Position and save that to an appropriate v...

2 years ago | 0

Answered
Simplify symbolic division abs(Z)/Z
syms z syms zr zi real u = abs(z)^2/z us = simplify(subs(u, z, zr + 1i*zi)) After which you would need to substitute conj(z)...

2 years ago | 0

Answered
Please help, I have no idea how to do this integral in matlab
syms a_0 positive syms theta real; assumeAlso(theta >= 0); theta_0 = sym(30.5); F = 1/(sind(theta_0) - sind(theta)) a_0 = ...

2 years ago | 1

Answered
I get these results. How can I make the small decimal zeros?
tol = 1e-7; s = tf('s'); G = (0.004 * s^4 + 7.426e-18 * s^3 + 3.2 * s^2 + 5.7077e-15 * s) / ( s^4 + 110 * s^3 + 1020 * s^2 +...

2 years ago | 1

Answered
PCSHOW - three or more point clouds
When you call pcshowpair() you can have it return an axes handle. If you turn hold "on" for that axes handle, then you can do mo...

2 years ago | 0

| accepted

Answered
How to append text and numbers into a title
See subtitle Or use start_month = 12; start_day = 1; mth = month(datetime(1, start_month, 1), 'Name'); % To get the name of ...

2 years ago | 1

| accepted

Answered
How to solve these non-linear equations?
There might be additional solutions. Q = @(v) sym(v); syms a b positive syms c real i1 = Q(310); i2 = Q(34964) / Q(10)^2;...

2 years ago | 0

Answered
Whenever i try so solve for 's' i get the same error:
Never eval() a symbolic expression or symfun or symbolic matrix expression. There is no documented meaning for eval() of any of ...

2 years ago | 0

Answered
How to calculate median matrix of many .tif files with MATLAB?
format long g master_size = [87, 207]; unzip Test.zip files = dir('*.tif'); filenames = fullfile({files.folder},{files.nam...

2 years ago | 2

| accepted

Answered
Convert char to table
str2num preferably with restricted coordinates = '[446 154;445 155;444 156;443 156;442 156]'; C = str2num(coordinates, 'Evalua...

2 years ago | 0

| accepted

Answered
Error while generating Mex model in MATLAB for Xilinx fft Verion 9.1 IP
use your Linux package manager to install gmp and gmp-devel

2 years ago | 0

| accepted

Answered
Can parfor run a series of GPU programs simultaneously?
GMMNLSE_propgation_func must currently contain an invocation of a Simulink model. You need to configure that to run with sim() i...

2 years ago | 0

| accepted

Answered
How to change the column pixel values of a DICOM image and assign new values columnwise)?
multfactor = repelem([0.15, 0.18, 0.04, 0.23], [130 100 100 54]); %modify factors appropriately newimage = oldimage .* multf...

2 years ago | 0

| accepted

Answered
If v=-10:1:10, why isn't the v>0 case triggered?
You are passing the entire vector v into logic(). Inside logic() you are testing if(v>=0) -- so you were testing the entire vect...

2 years ago | 1

| accepted

Answered
Displaying command line output in App live
You can use evalc to evaluate code and get back character representation of the output after complete execution of the code. You...

2 years ago | 0

Answered
how to convert gray images to rgb
sc = round(rescale(spect,1, 256)); rgbBlock = permute(reshape(map(sc,:), size(sc,1), size(sc,2), [], 3), [1 2 4 3]); rgbBlock ...

2 years ago | 0

| accepted

Answered
i have written a while loop which displays 'yes' or 'no' if the difference is less than 0.5 for a given problem. how can i write this output into an excel sheet.
data=readtable("DATA.xlsx"); X=table2array(data); i=1; j=2; decisions = strings(0); decision_count = 0; while i<57...

2 years ago | 0

Answered
How to automate/solve this process in MATLAB
syms s u eqn = 1472*s^4 - 256*s^2*u^2 + 1392*s^2 - 24*u^2 + 150 == 0 sol = solve(eqn, s, 'maxdegree', 4) We can see by examin...

2 years ago | 1

| accepted

Answered
Problem using subs function for multiple variables on 2023b
Your theta2 is a symfun so diff(theta2,t) is a symfun, and that makes the entire type_symfun expression into a symfun that retur...

2 years ago | 2

| accepted

Answered
shift -discrete signal
If you have a fractional delay (as you seem to have -- 1/6 of a sample) then see https://www.mathworks.com/help/dsp/ug/design-o...

2 years ago | 1

| accepted

Answered
How Can I load 200 images or more image frames via parfor loop?
k = i - start_idx + 1 images(:,:,k) = tmp_img(:,:,1); Inside parfor, the use of the loop control index must be...

2 years ago | 0

Answered
Does adding variables to table cause Matlab to re-write the entire table in memory?
No. Internally, tables have a cell array with one cell entry for each variable. The cell array would have to be extended, but th...

2 years ago | 0

| accepted

Answered
convert struct in class?
class method invocations are generally slower than calling a fixed function name passing in an input. On the other hand, if you...

2 years ago | 0

| accepted

Answered
Reading the image sequency
%sample name "Field on_1ms_4_8V_60sec-02-Deskew_t001z001c1-2" projectdir = 'name/of/directory/data/files/are/in'; basefilena...

2 years ago | 0

Answered
How to set the interval of the solution when I use "vpasolve" to solve an equation?
vpasolve() and pass a list of equations as the first parameter. Pass a list of variables in the second parameter. In the ...

2 years ago | 0

| accepted

Answered
Solving Inequalities using symbolic tool box
It is common with the symbolic engine that in practice you need to convert inequalities into equalities by introducing a non-neg...

2 years ago | 1

Answered
FFT and Fourier series formulas from CSV data file
filename = 'tek0005.csv'; data = readmatrix(filename, 'HeaderLines', 21); time = data(:,1); T = mean(diff(time)); Fs =...

2 years ago | 0

| accepted

Answered
Matlab-Excel shape PROBLEM
Create a vector containing the number of consecutive elements needed to move into each row. Not the indices, the count. So for e...

2 years ago | 0

Load more