Answered
Use a command only once
% Inputs are reference voltage Vdr and Vqr,reference current ,Idr and Iqr % and measured currents (ia, ib) function theta = fc...

4 years ago | 0

| accepted

Answered
How to select graph coordinates using given input value?
Assuming image1 is grayscale (you might need to rgb2gray() it) values = interp2(1:size(image1, 1), 1:size(image1, 2), image1, q...

4 years ago | 0

Answered
Error in "predict" in the "Gesture Recognition using Videos and Deep Learning" example
Your code has slowFastClassifier = pretrained.data.Params; but the actual code (in both the posted example and the mlx file) i...

4 years ago | 0

| accepted

Answered
How to fix the large and mad fractions when dealing with symbolic vars
The answer you are looking for is digits(4) sympref('FloatingPointOutput',true); However, I do not recommend this.

4 years ago | 1

| accepted

Answered
Make specific array from another array elements
Y = zeros(size(X)); for IndexBackM7 = 1 : numel(Y) ValueToWorkWIthBackM7 = X(IndexBackM7); now calculate for ValueToW...

4 years ago | 0

Answered
Generate executable .exe from Simulink model
Yes, using Simulink Coder product. It is not possible using MATLAB Compiler or MATLAB Coder product (not in themselves.)

4 years ago | 0

Answered
Why to remove EZPLOT?
ezplot() was considered to have a lot of overlap with fplot() and fimplicit(), but it had limitations, not having been updated t...

4 years ago | 0

Answered
Plot Y axis with 1x unit
yticks(floor(min(y)):ceil(max(y)))

4 years ago | 0

| accepted

Answered
plot time as x, pressure as y and temperature as Z
Interpolation to display a contour plot has a bit of a problem with there being so much data for 2012 with pressure very close t...

4 years ago | 0

| accepted

Answered
HOW TO OPEN IMAGE AS ATTACHED
img = multibandread('my_images_it8.img', [128 128 128], 'float', 0, 'bsq', 'ieee-le'); volumeViewer(img);

4 years ago | 0

| accepted

Answered
for idx = 1 hold on plot(idx,density(idx),"*") hold off pause(0.2) end showing incorrect
for idx = 1:MaximumNumberOfIterationsGoesHere

4 years ago | 0

Answered
I have error when I applied trapezoidal rule
I = trapz(x,ynum1); That is going to return a scalar. ur(j,n)=fr(j)-0.5*mu1*(fr(j)-fr(j-1))+dt*lambdau2*(0.5+0.5*tanh(1+I(j)))...

4 years ago | 0

| accepted

Answered
Define the variable t as t =6.8 then evaluate: ln( |t^ 2 - t^ 3|)
abs -- and ln is log()

4 years ago | 0

| accepted

Answered
Definition of non-stiff ODEs
A non-stiff ODE is... any ODE that is not a stiff ODE. There is no middle-ground: anything that is not "stiff" is non-stiff. Th...

4 years ago | 1

| accepted

Answered
How to return an intermediate variable from ode45 in Matlab
My requirement is that e should be calculated at exact time instants at which x is calculated. this way both would have the same...

4 years ago | 1

| accepted

Answered
converting multiple textfiles to csv and xlsx format.
format long g filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1128290/f64d5aab60_IOP_20130909_2155...

4 years ago | 0

| accepted

Answered
Plotting multiple outputs with varying inputs in same graph
It is tricky to do without a loop at some level. One approach is to use a symbolic approach. The symbolic approach can deal w...

4 years ago | 0

| accepted

Answered
matlab.internal.lang.capability.Capability error when opening data in the workspace
If you have third-party toolboxes on your MATLAB path and they are earlier on the path than the built-in folders, then you can e...

4 years ago | 0

| accepted

Answered
How to change file date into the folder for yearly
inputdir = 'appropriate directory name'; outputbasedir = 'parent folder for split directories'; dinfo = dir(inputdir); dinf...

4 years ago | 0

Answered
How to Solve recurrence equation
See https://www.mathworks.com/matlabcentral/answers/1805355-how-do-i-translate-rec-from-mupad-to-matlab-symbolic-math-toolbox#an...

4 years ago | 0

Answered
How to save data in a matrix using looping
you need to increment nn after you finish a column

4 years ago | 0

| accepted

Answered
Hi, does anyone know how to stop my for loop overwriting? I need my answer to be a matrix with each element being a 2x2 matrix also.
ForcesMatrix{i, j} = CoefficientMatrix\P; The result will be a cell array that contains numeric arrays. You could also do...

4 years ago | 1

Answered
Convert matrix into CSV, with each matrix element as a separate line including indices of matrix element
There are two possibilities here. If you need every location output because in practice the data will be read as a vector of ...

4 years ago | 1

Answered
Create Unit-Spaced Matrix
No, that is the best available -- unless you want to count foo = reshape(1:9,3,[]) %3 rows, as many colums as needed. If yo...

4 years ago | 0

| accepted

Answered
changing colormap of 10000 saved JPEG spectrograms
Use rgb2ind specifying the parabula map. Then ind2rgb that using the other color map.

4 years ago | 0

| accepted

Answered
I am getting this message " Warning : Limiting legend entries to 50 .
Each plot() line generates a separate graphic object regardless of whether you plotted one dot or a massive line. You called ...

4 years ago | 0

Answered
How can I find and label the intersecting point of two plots?
you can interp1 vd id querying at Vd. Take the difference between that and Id and find the place that is closest to 0. You mi...

4 years ago | 0

Answered
How to store matlab parfor results into a global variable?
"global" variables are never transferred. asd is not indexed by your parfor variable. If the code were permitted at all, then...

4 years ago | 0

Answered
Why do I receive "Too many input arguments" error with predict function?
The predict method for that kind of object is https://www.mathworks.com/help/stats/compactclassificationdiscriminant.predict.htm...

4 years ago | 0

Answered
Can I split a Vector into set intervals and store them in a Matrix?
y = reshape(x, 3, []).'

4 years ago | 0

| accepted

Load more