https://ww2.mathworks.cn/matlabcentral/answers/questionsMATLAB Answers — New Questions2019-08-19T10:15:46Ztag:ww2.mathworks.cn,2005:Question/4766642019-08-19T09:28:50Z2019-08-19T10:15:46ZError in audio uploading time.Hi,
I am uploading an audio signal of 3 seconds in matlab, but after uploading it is showing 0.5 seconds audio and the signal is totally change. How can I change the time, so that I can listen full audio of 3 seconds and implement other operation on my 3 seconds audio. Please guide me.
Thanks in advance.
Sumair Hassanhttps://ww2.mathworks.cn/matlabcentral/profile/authors/14547944-sumair-hassantag:ww2.mathworks.cn,2005:Question/4766692019-08-19T10:14:37Z2019-08-19T10:14:37ZSet a matrix as index of mapHi, I am trying to make a map of a lot of convolutions to speed up my alghoritm. The arguments for the convolution are a binary matrix that differ in content and size and another filter matrix. More specifically this line of code:
numPixelsSubtracted = conv2(newPixelsCovered(y1:y2, x1:x2), mat.filters{r}, 'same');
So far I tried to make an index converting newPixelsCovered into a string using strcat (so much slooower than conv2) and adapting the Cantor function but in this case I got overlapping. Using a power function like overflows because I have big matrices. So, is there a method to store as index directly the matrix and then access to the convolution by the matrix? It hasn't to use specifically a containers.Map, it can use anything. I am not so used to all the matlab structures, so maybe it's a stupid question.
Also, I can't store pointers to the variables or similars because newPixelsCovered is recalculated and the same matrix won't correspond to the same pointer.
Thank you.Alessandrohttps://ww2.mathworks.cn/matlabcentral/profile/authors/9272438-alessandrotag:ww2.mathworks.cn,2005:Question/1094112013-12-11T09:45:16Z2019-08-19T10:10:04Zsplit string into 3 letter eachif have a
str = 'AGTCTGTCTTTG';
i wanted to split it into 3 letters each
AGT CTG TCT TTG
and replace
AGT with J
CTG with U
TCT with N
TTG with D
how to do it... please do reply....
i did as below
str = 'AGTCTGTCTTTG';
j = 1;
for k = 1: 3: length(str)
word(j) = str(k : k +3)
j = j+1;
end
but i get error as
??? Subscripted assignment dimension mismatch.
Error in ==> Untitled2 at 4
word(j) = str(k : k +3)
please do reply....
Elysi Cochinhttps://ww2.mathworks.cn/matlabcentral/profile/authors/3625227-elysi-cochintag:ww2.mathworks.cn,2005:Question/4763902019-08-16T11:39:13Z2019-08-19T10:09:00ZHow to close the boundary of a surface already generated by filling the holesfrom give matrix (attached), i am using following code to close the surface and to make a boundary but i am getting errors that indexing is out of bound.
m = zeros(28)
m = load('Matrix_Boundary_fills_3s_only.txt');
[rows, colms] = size(m);
mOut = m;
for row = 2 : rows
%
for colm = 1:colms
if m(row-1, colm) == 3
mOut(row, colm+1) = 3;
end
if m(row-1, colm) == 3 || m(row-1,colm+2) == 3
mOut(row, colm+1) = 3;
end
if m(row-1, colm + 1) == 3
mOut(row, colm+1) = 3;
end
end
end
% end
disp(mOut)
thanks for all cooperation in advance. M.S. Khanhttps://ww2.mathworks.cn/matlabcentral/profile/authors/13647580-m-s-khantag:ww2.mathworks.cn,2005:Question/4766682019-08-19T10:08:54Z2019-08-19T10:08:54ZLocking figure axis for quiver loopI have code for figure with superimposition of temperature image and quiver plot in loop.
But it image shifts every loop if side arrows exceed length of 1 pixel. How i can lock image or scale arrows?
[x,y]=meshgrid(1:1:31,1:1:38);
k=4997;
cnt=0;
heat_conductivity=28;
d=4;
for i=1:k
[dTdx,dTdy] = gradient(V(:,:,i));
u(:,:,i) = -heat_conductivity*dTdx;
v(:,:,i) = -heat_conductivity*dTdy;
end
f=figure('Renderer', 'painters', 'Position', [10 10 600 620]);
ax=gca;
ax.XLim = [1 38];
ax.YLim = [1 31];
%f.WindowState='maximized';
for i=1:k
%figure
imagesc(V(:,:,i));
axis tight
hold on
q=quiver(x,y,v(:,:,i),u(:,:,i))
%q.AutoScale='on';
q.AutoScaleFactor=0.9;
q.ShowArrowHead='on';
%q.MaxHeadSize= 1;
q.AlignVertexCenters='on';
q.LineWidth=0.5;
q.MaxHeadSize=1;
q.Color='black';
%axis tight
colormap jet
colorbar
caxis([26 35])
cnt=i;
title(cnt);
pause (0.1)
clf;
end
Alexandr Lozakhttps://ww2.mathworks.cn/matlabcentral/profile/authors/12682018-alexandr-lozaktag:ww2.mathworks.cn,2005:Question/4765302019-08-17T16:55:38Z2019-08-19T10:06:39ZHow to define stepchanges, variable BC for different timeintervalls using pdepe?I am trying to define stepchanges of relative humidity at the boundary of a slab varying from 0.9 to 0.3 every 12 hours without any progress. The code is working without any issues for only one single BC but not otherwise. Any idea how I can get it? Thanks!
function parabolicmoisture
global tp a_v tend v_s delta exi
L=0.15;
k=0.028;
rho=156;
cp=990;
mu=4.25;
D=25*10^-6;
delta=D/mu;
v_s=17.28e-3;
exi=5/0.65;
a_v=(delta*v_s)/exi;
m = 0;
tp=24*3600;
tend=2*tp;
x = linspace(0,L,1000);
t = linspace(0,tend,2000);
sol = pdepe(m,@pdex1pde,@pdex1ic,@pdex1bc,x,t);
RH = sol(:,:,1);
% A solution profile can also be illuminating.
plot(x,RH(end,:),'r--','LineWidth',2)
hold on
plot(x,RH(3*end/4,:),'b.-','LineWidth',1)
hold on
plot(x,RH(2*end/4,:),'k','LineWidth',1)
hold on
plot(x,RH(1*end/4,:),'*')
title(strcat('Solution at t = ', num2str(tend)))
legend('48h','36h','24h','12h')
xlabel('Distance x')
ylabel('RH (%)')
% %Plot surface temperature vs. time
% figure, plot(t,RH(:,1))
% title('Surface RH')
% xlabel('Time (s)')
% ylabel('RH (%)')
% --------------------------------------------------------------
function [c,f,s] = pdex1pde(x,t,u,DuDx)
global a_v v_s delta exi
c=1/a_v;
f = 1*DuDx;
s = 0;
% --------------------------------------------------------------
function u0 = pdex1ic(x)
u0 = 0;
% --------------------------------------------------------------
function [pl,ql,pr,qr] = pdex1bc(xl,ul,xr,ur,t)
global tend
%
if t<(tend/4)
pl = ul-0.9;
elseif t>=(tend/4) || t<tend/2
pl = ul-0.3;
elseif t>=tend/2 || t<3*tend/4
pl = ul-0.9;
elseif t>=3*tend/4
pl = ul-0.3;
end
ql = 0;
pr = ur;
qr = 0;
Ali Karimhttps://ww2.mathworks.cn/matlabcentral/profile/authors/12044905-ali-karimtag:ww2.mathworks.cn,2005:Question/4533282019-03-29T19:05:56Z2019-08-19T10:05:14ZASSIGNMENT: TEXT FILES Write a function called char_counter that counts the number of a certain character in a text file. The function takes two input arguments, fname, a char vector of the filename and character, the char it counts in the file. When testing with '' your solution returned -1 which is incorrect. (0)
This error pops up while doing the assignment.
can anyone tell me why is this error popping and the meaning of the statement mentioned above.
when the character is ' " ' then i get a finite answer. and when the character is ' ' ' then too answer is a finite number. but i dont understand what the above bold text means....
my code
function charnum = char_counter(fname,character)
fid=fopen(fname);
if fid< 0
charnum = -1;
return;
end
if strcmp(character,'')==1
charnum=0;
return;
end
if double(character)>=35 && double(character)<=43 && double(character) ~=39 && double(character) ~= 41 && double(character) ~= 40
charnum = 0;
return;
end
if double(character) >=60 && double(character) <=64 && double(character) ~= 63
charnum = 0;
return;
end
if double(character) == 81 || double(character) == 88 || double(character) == 90
charnum = 0;
return;
end
cc = fgets(fid);
sumv=0;
while ischar(cc)
z = sprintf('%s',cc);
k = strfind(z,character);
sumv = sumv + length(k);
cc = fgets(fid);
end
charnum = sumv;
if charnum == 0
charnum =-1;
return;
endRakshith Rhttps://ww2.mathworks.cn/matlabcentral/profile/authors/15060157-rakshith-rtag:ww2.mathworks.cn,2005:Question/4319852018-11-26T11:00:14Z2019-08-19T10:04:39ZHow to convert char into string? I have "d879c14e5b1fa7a413aa46bbbc2b8710" this in char form and I want to convert this into string. As i want to split 2-2 character into binary so i want to split it into string.Nitish Kumarhttps://ww2.mathworks.cn/matlabcentral/profile/authors/14229350-nitish-kumartag:ww2.mathworks.cn,2005:Question/4766452019-08-19T06:25:30Z2019-08-19T10:03:25ZSurface plots inside loopHi,
I am working on a code that approximates a general bivariate function using a piecewise linear bivariate function. I am able to retrieve the data and plot it, my code works as follows:
It plots one subdomain at a time, as a surface plot. The plot is put inside a loop and so during each, iteration a new subdomain is plotted.
The issue here is that the final plot is displayed with discontinuities as shown in the figure attached.
Kindly help me remove those discontinuities, so as to make the final plot solid or suggest any alternate idea that would work.Mahesh M Shttps://ww2.mathworks.cn/matlabcentral/profile/authors/14352953-mahesh-m-stag:ww2.mathworks.cn,2005:Question/4765232019-08-17T15:38:33Z2019-08-19T09:58:48ZHow i can maximizing parameter in ODEI solve one ODE dx/dt=Na0/((-rA*V)) using code:
function dtimedxa = ode_sys (xa,time)
Nao=5;
k=0.023;
Vo=10;
epsilon=1;
Cao=Nao/Vo;
Ca=Cao*(1-xa)/(1+epsilon*xa);
p=time*Ca;
ra=-k*Ca^2;
V=Vo*(1+epsilon*xa);
dtimedxa=Nao/((-ra)*V);
end
and script:
range=[0,0.75];
ICs=[1];
[xa,time]=ode23(@ode_sys,range,ICs);
figure
plot (xa,time(:,1))
title('dependence')
xlabel('conversion')
ylabel ('time')
Is it posible to solve equation above dt/dx=Na0/(-rA*V) maximizing t or p?
Thanks in advance.Bosnian Kinghttps://ww2.mathworks.cn/matlabcentral/profile/authors/15971765-bosnian-kingtag:ww2.mathworks.cn,2005:Question/4762752019-08-15T14:23:23Z2019-08-19T09:57:15ZHow to remove the lines in the image?Here is my coding, can anyone help me edit my coding to remove the lines inside the image?This is very annoying >.<
I'm actually converted from the text file.
The image should be 224x224x3
The text file is 1x150528
==============================================
OUTPUT:
===============================================
fid = fopen('output_data_1.txt','r');
img = fscanf(fid,'%x');
fclose(fid);
outImg = reshape(img,[224*1 224*3]);
outImg = outImg';
imshow(outImg,[])
==================================================
Tham Wei Jianhttps://ww2.mathworks.cn/matlabcentral/profile/authors/15051338-tham-wei-jiantag:ww2.mathworks.cn,2005:Question/4763192019-08-15T21:48:28Z2019-08-19T09:55:32ZAdding image under contour lines took away axes and changed EVERYTHINGI added an image under my contour lines. The image doesn't fit the contour lines (I need to work on that, please send resources on resizing, moving, rotating, etc images)
Adding thte image got rid of the axes that were there before when it was only the contour lines. How can I fix this? I need the axes.
For some reason, there's also a bug where what is suppose to go on the next figure window, goes in the first figure window when I added the movegui('direction') function to both figure windows so they're not on top of each other.
Naomi Amuziehttps://ww2.mathworks.cn/matlabcentral/profile/authors/15585809-naomi-amuzietag:ww2.mathworks.cn,2005:Question/4766462019-08-19T06:44:02Z2019-08-19T09:53:44ZHow to get an output data from a GUI popup menu to use as data in .m file.
From the popupmenu created in GUIDE, I want to get the data choosen by the user for Month and feeder and use it as an input data to my separate .m file.Maria Patihttps://ww2.mathworks.cn/matlabcentral/profile/authors/15889352-maria-patitag:ww2.mathworks.cn,2005:Question/3537762017-08-23T13:03:12Z2019-08-19T09:52:15Zsmooth shading of patches in 3D - partially correctI am trying to render a nice 3d figure of a Voronoi cell by plotting the faces using the patch function and gouraud lighting to get smooth shading of the surfaces. The vertex normals are computed by a weighted average of the face (polygon) normals using the face areas as weights. It all looks relatively nice except that some faces do not have any light reflection. I cannot understand why I do not get the proper shading, and I would be very grateful any pointers to solve this.
Here is how it looks with the associated vertex normals drawn
<</matlabcentral/answers/uploaded_files/86202/vorCell.jpg>>
and here is the code to produce it:
fig = figure();
ax = axes('Parent',fig);
p=patch('Faces',F,'Vertices',V);
p.Parent = ax;
hold(ax,'on');
p.FaceColor = [0.95 0.95 0.95];
p.VertexNormals = vnorm;
for n = 1:nqV
q=quiver3(V(n,1),V(n,2),V(n,3), vnorm(n,1), vnorm(n,2), vnorm(n,3) );
q.Color = [0.8 0.3 0.3];
q.LineWidth = 1.2;
q.MaxHeadSize = 2;
q.Parent = ax;
q.AutoScale = 'off';
end
view([-128 11])
axis equal
lighting gouraud
grid on
with matrices
F = [34 29 30 31 32 33 28 8 1 7
17 16 15 3 13 NaN NaN NaN NaN NaN
17 18 19 2 24 16 NaN NaN NaN NaN
13 17 18 5 11 NaN NaN NaN NaN NaN
7 1 19 18 5 NaN NaN NaN NaN NaN
16 24 25 14 15 NaN NaN NaN NaN NaN
25 24 2 22 NaN NaN NaN NaN NaN NaN
26 28 33 27 23 14 25 22 NaN NaN
31 30 6 21 NaN NaN NaN NaN NaN NaN
21 31 32 27 23 4 20 NaN NaN NaN
12 29 30 6 9 NaN NaN NaN NaN NaN
20 21 6 9 NaN NaN NaN NaN NaN NaN
33 27 32 NaN NaN NaN NaN NaN NaN NaN
22 26 8 1 19 2 NaN NaN NaN NaN
12 10 4 20 9 NaN NaN NaN NaN NaN
28 8 26 NaN NaN NaN NaN NaN NaN NaN
10 3 15 14 23 4 NaN NaN NaN NaN
34 11 5 7 NaN NaN NaN NaN NaN NaN
12 29 34 11 13 3 10 NaN NaN NaN];
V = [41.3411 42.6534 56.4570
42.9971 42.6986 56.0056
45.0957 42.6232 59.0728
43.0092 39.8638 59.3526
42.6463 44.4461 57.7151
42.1427 40.7134 60.4942
41.2465 44.0467 57.8011
41.5264 41.3264 56.3131
42.2348 40.7407 60.5345
44.1656 41.6457 60.0810
42.8749 44.4715 57.7761
42.5611 41.2097 60.7129
44.1996 44.2797 57.7430
44.5492 41.5642 57.9694
45.1375 42.5838 58.7361
44.6270 43.5925 57.2962
44.3424 44.0581 57.5101
43.1233 43.3174 56.4938
42.9432 42.7561 56.0245
42.8686 39.8425 59.4215
42.0284 39.7133 59.2071
42.9318 42.5213 56.0112
43.1946 39.8895 58.5593
44.5263 43.4475 57.1530
44.4736 41.7693 57.7335
41.6762 41.2894 56.2694
42.4125 39.7685 58.1382
41.5866 41.0063 56.4636
41.8281 41.6300 60.4530
41.9439 40.8349 60.4245
42.0070 39.7099 59.1804
41.9873 39.7061 58.9383
41.7631 40.2636 57.2521
41.4068 43.5440 58.8224];
vnorm = [-0.9742 0.0570 -0.2185
0.3383 0.0552 -0.9394
0.4967 0.4317 0.7529
0.6578 -0.6820 0.3196
-0.1656 0.8073 -0.5664
-0.2402 -0.6126 0.7530
-0.9892 0.1186 -0.0857
-0.9902 -0.1361 -0.0303
0.2504 -0.6009 0.7591
0.4696 0.2665 0.8417
0.0978 0.7705 0.6299
0.1726 0.5025 0.8472
0.2059 0.7654 0.6097
0.6904 -0.6060 -0.3951
0.9321 -0.3617 0.0181
0.8390 0.2851 -0.4635
0.4482 0.7058 -0.5487
-0.0528 0.6842 -0.7274
-0.1447 0.5425 -0.8275
0.2958 -0.7799 0.5516
0.0018 -0.9486 0.3166
0.4266 -0.4843 -0.7639
0.6181 -0.7014 -0.3551
0.7159 -0.0391 -0.6971
0.5699 -0.4910 -0.6589
0.3608 -0.5306 -0.7670
0.3938 -0.6983 -0.5977
-0.7569 -0.5513 -0.3510
-0.6932 0.3597 0.6245
-0.9805 -0.1564 0.1187
-0.9669 -0.2384 0.0911
-0.9626 -0.2614 0.0707
-0.7447 -0.5696 -0.3478
-0.6775 0.4064 0.6130];Filiphttps://ww2.mathworks.cn/matlabcentral/profile/authors/3421679-filiptag:ww2.mathworks.cn,2005:Question/4759652019-08-13T12:05:03Z2019-08-19T09:51:20ZCannot find solution Of 4th order ODE using dsolve: Warning: Unable to find explicit solution.Below is the Code I used to solve 4th order differential equation
but I am gitting warning regarding
clc;
clear all;
syms x v(x) a0 a1 a2 a3 a4 L I E q
assume(L>0)
assume(E>0)
assume(I>0)
ode = I*E*diff(v,x,4) - q == 0
v(x) = a0+ a1*x + a2*(x^2) + a3*(x^3) + a4*(x^4)
Dv = diff(v,x);
D2v = diff(v,x,2);
D3v = diff(v,x,3);
cond1 = v(0) == 0
cond2 = Dv(0) == 0
cond3 = D2v(L) == 0,a2
cond4 = D3v(L) == 0,a3
conds = [cond1 cond2 cond3 cond4]
tSol(x) = dsolve(ode,conds)
Outpt:
Warning: Unable to find explicit solution.
ode(x) =
v(x) =
cond1 =
cond2 =
cond3 =
a2 =
cond4 =
a3 =
conds =
Warning: Unable to find explicit solution.
tSol(x) =
[ empty sym ]
Dhrumin Bhavsarhttps://ww2.mathworks.cn/matlabcentral/profile/authors/15906398-dhrumin-bhavsartag:ww2.mathworks.cn,2005:Question/4764702019-08-16T22:48:23Z2019-08-19T09:49:18ZChange Fractal Colors to nuances of redHello,
I have a series of fractals in RGB, such as the one uploaded here, and I would like to change their colors to only nuances of red, black and white. So that the structure of the image would remain in white or black and the filling will be only red. Any suggestions would be welcome. Silvia Bernardihttps://ww2.mathworks.cn/matlabcentral/profile/authors/3867344-silvia-bernarditag:ww2.mathworks.cn,2005:Question/1189222014-02-25T00:42:53Z2019-08-19T09:48:04ZHow to change pixel value of boundary pixel?Hi, I need to change the boundary pixel into value ('2') of my binary image, How can I do this?.
After that, I need to do some operation on the internal line (junction).
Thanks
<</matlabcentral/answers/uploaded_files/8639/img1.jpg>>
missChttps://ww2.mathworks.cn/matlabcentral/profile/authors/4335431-missctag:ww2.mathworks.cn,2005:Question/4766602019-08-19T08:51:54Z2019-08-19T09:47:24ZCould anyone help me how to solve the issue in the following code.code:
A=partitions(3)
partdisp(A)
for d=1:length(A)
for e=1:length(A{d})
rows = A{d}{e}
end
end
In this code i am using partitions function where it is inbuilt function already defined in matlab.
when i executes the above code it gives the result .
But i want to have the result in such a way the code should should execute only for the first four combination and the final combination {1} {2} {3} should not appear.
Could anyone please help me on this.jaah navihttps://ww2.mathworks.cn/matlabcentral/profile/authors/11695462-jaah-navitag:ww2.mathworks.cn,2005:Question/4766652019-08-19T09:30:55Z2019-08-19T09:46:37ZData filtering(Give a constraint to the length of each index )I have this kind of data. First column and second column refer to an index and x value relatively.
data = [ 1 201; 1 202; 2 301; 2 313; 2 311; 3 401; 3 452; 3 433; 3 405; 4 504; 4 303; 4 604; 4 703; 5 600; 5 700; 5 606; 5 703; 5 905; 5 444;];
For example, I want to delete from after 4th data in each index if the number of index is over 4.
The length of 3rd, 4th and 5th index is 4, 4, 6 relatively in this example data. I'd like to keep their data only from 1st to 3rd values.
Every index has less number than 4.
data_filtered = [1 201; 1 202; 2 301; 2 313; 2 311; 3 401; 3 452; 3 433; 4 504; 4 303; 4 604; 5 600; 5 700; 5 606;];
If anyone can help, it would be greatly appreciated.
Thank you!Jaehwi Bonghttps://ww2.mathworks.cn/matlabcentral/profile/authors/15010159-jaehwi-bongtag:ww2.mathworks.cn,2005:Question/4762662019-08-15T13:37:52Z2019-08-19T09:45:25ZHow to link uialert to my App Designer UI figure?I recently took over a MATLAB project of a former colleague and is still learning how to write MATLAB code correctly. I would like to change working code that currently uses msgbox to now rather make use of uialert(). I can however not find a way to link the UIFigure of my app to the uialert function. My understanding is that the arguments should be as follows: uialert(uifigure,message,title). My problem seems to be with the uifigure argument.
The uialert Help indicates that the uifigure must be created with the uifigure function. When I use the following code I do get a new uifigure and the alert message appears in front of it as expected.
f = uifigure;
uialert(f,'Test','warning');
I do however want the alert message to appear in front of the App Designer UIFigure rather than a newly created figure. I found code here on the forum that identifies the name of my App Designer figure:
hFigs = findall(groot, 'Type', 'figure')
hFigs = Figure (VTT) with properties:
Number: []
Name: 'VTT'
I tried several ways to try to refer to the name of my App Designer figure but none of them worked. Below are two examples of what I tried.
uialert('VTT','Test','warning');
uialert(hFigs.Name,'Test','warning');
I got the following error with both lines of code:
Error using uialert (line 35)
Invalid or deleted figure handle. First argument must be a valid figure handle
I might be using the wrong terminology but I can not find any answers in this forum that explained to me how I can link uialert() to appear in front of the the Add Designer UIFigure. Hannes Truterhttps://ww2.mathworks.cn/matlabcentral/profile/authors/15799404-hannes-trutertag:ww2.mathworks.cn,2005:Question/4765532019-08-18T05:31:58Z2019-08-19T09:43:57Z'SECTIONS' tabs inactive I'm new to MATLAB, and have installed the Student version.
All is going well, but the tabs below the tool strip (FILE, VARIABLE etc.) are inactive.
Is this a feature of the Student version, and can I upgrade to Home to make theml live?
And ... what do they do anyway?:-)....John Wheaterhttps://ww2.mathworks.cn/matlabcentral/profile/authors/4255268-john-wheatertag:ww2.mathworks.cn,2005:Question/4766672019-08-19T09:43:26Z2019-08-19T09:43:26ZProblem using function fast marching from exchangeI try to use the function fast_marching from the website: https://de.mathworks.com/matlabcentral/fileexchange/24531-accurate-fast-marching
In the beginning it is necessary to generate a mex-file from c-Code. This process is worked after some problems that I could fix. But now there is a new problem and I can't find a way to fix this one.
There is no error message and sometimes there is a matlab bug and the whole programm is crashing. I guess the problem appears in the rk4-function.
The command window shows the following:
Distance Map Constructed
Find Branches Iterations : 0
And than the programm stops working. Maybe someone of you can help me.
Edit:
I use a MacBook Pro (version 2019) and Matlab R2019a
I also tried to run the function on a windows PC over there it worked. The problem is, that I need it on my Mac.
Thank you guys for helping me out!
Best
RaphaelRaphael Peschhttps://ww2.mathworks.cn/matlabcentral/profile/authors/9023461-raphael-peschtag:ww2.mathworks.cn,2005:Question/2637382016-01-14T09:32:07Z2019-08-19T09:41:40ZUnable to run bag of featuresI have a 8gb ram and whenever I tried to run bagOfFeatures, it always says out of memory. Please see below.
Error using vertcat
Out of memory. Type HELP MEMORY for your options.
Error in bagOfFeatures/extractDescriptorsFromSet (line 578)
descriptors = [descriptors; tempDescriptors]; %#ok<AGROW>
Error in bagOfFeatures (line 207)
scores{categoryIndex}] = this.extractDescriptorsFromSet(imgSets(categoryIndex), params);
May I know how can I resolve this issue? Thanks.Leonard Yeohttps://ww2.mathworks.cn/matlabcentral/profile/authors/6987013-leonard-yeotag:ww2.mathworks.cn,2005:Question/4766662019-08-19T09:35:44Z2019-08-19T09:40:57ZMore Explicit MPC states than neededWhen attempting to create an Explicit MPC Controller I ran into the following problem:
The MPC Controller Object I created has 4 States and 1 Input
v = 2.2; %m/s
A = [0 0 1 0;
0 0 0 1;
16.2 0.01-1.43*v^2 0.27*v 0.56*v-0.32;
42.9 3.15-0.21*v^2 3.97*v -1.51*v-4.7];
B = [0; 0; 0.65; 9.55];
%% System Dimensions
n = length(A(1,:));
%% Output Matrix C
C = eye(n);
%% Sampling time Ts
Ts = 0.01;
%% State-Space Model
plant = ss(A,B,C,0,Ts);%% Create MPC Object
N = 10; %prediction horizon
c = 1; %control horizon
W = struct('MV', 1, 'OV', [1,1,1,1], 'MVrate', 1);
MV = struct('Min', -15, 'Max',15); %U=[-15Nm,15Nm]
OV = struct('Min', {-25,-25,-25,-25}, 'Max', {25,25,25,25}); %X=[-25°,25°]
MPCobj = mpc(plant,Ts,N,c,W,MV,OV)
When creating the obejct I already noticed following output, which leads me to believe additional models get created:
Disturbance and Noise Models:
Output disturbance model: default (type "getoutdist(MPCobj)" for details)
Measurement noise model: default (unity gain after scaling)
As soon as I specify the range for my Explicit MPC, Matlab prompts me to specify the State.Max and .Min for 8 States although my plant model only has 4 States.
%% Set MPC options
range = generateExplicitRange(MPCobj);
range.ManipulatedVariable.Min = -15;
range.ManipulatedVariable.Max = 15;
range.State.Min = [-25;-25;-25;-25;0;0;0;0];
range.State.Max = [25;25;25;25;0;0;0;0];
opt = generateExplicitOptions(MPCobj);
opt.polyreduction = 1;
I already found out, that this is probably the states from the disturbance and noise models.
This leads to my piecewise affine solution having the wrong dimensions.
How can I ommit the noise and disturbance models completely?Dennis Maaßhttps://ww2.mathworks.cn/matlabcentral/profile/authors/14042155-dennis-maasstag:ww2.mathworks.cn,2005:Question/4766612019-08-19T08:54:12Z2019-08-19T09:39:46ZCreating 1024 ToggleButtons with almost the same callbackHey together,
For a 1024 LED-Matrix I wanted to create a GUI where u can swith every single pixel on and off with a certain brightness. I wanted to create toggle Buttons which switch the Pixel on/off. So I started creating a 1024 huge buttonmatrix in GUIDE with copy/pasting as much buttons as possible. Afterwards to make sure Pixel 1 really represent Pixel 1 I renamed all Buttons accrouding to their Pixelnumber. EDIT : The Tag goes like T#### , for example for Pixel 1020 T1020 and for Pixel 66 T66.
For the callback I wrote the following Method to just copy/paste in every callback :
global TData
brtn = get(handles.slider1, 'Value');
Tag = get(hObject, 'Tag');
PPos = 0;
Si = size(Tag);
for i = 2:Si(2)
PPos = PPos*10 + str2num(Tag(i));
end
if(brtn < 0.3)
brt = 0.3;
else
brt = brtn;
end
if(get(hObject,'Value') == 1)
set(hObject,'BackgroundColor',[1*brt 1*brt 0]);
TData(PPos) = 256 * brtn;
elseif (get(hObject,'Value') == 0)
set(hObject,'BackgroundColor',[0.149 0.149 0.149]);
TData(PPos) = 0;
end
So my question is it somehow possible to make this "smarter" with a Buttongroup etc. or do I really just have to copy/paste this 1024 times again?
Thanks for your answers!
Benedikt Schwarzhttps://ww2.mathworks.cn/matlabcentral/profile/authors/10085633-benedikt-schwarztag:ww2.mathworks.cn,2005:Question/4764502019-08-16T18:52:28Z2019-08-19T09:37:33Zjava.lang.ExceptionInInitializerError on startup of Matlab R2019aI recently reinstalled my windows and installed the newest version of matlab, version R2019a. However when I startup matlab I immidiately get the below error message. I tried the solution proposed here:
https://nl.mathworks.com/matlabcentral/answers/99625-how-do-i-regenerate-my-matlab-preferences
It does not solve the issue. Please help!
Martijn Schoutenhttps://ww2.mathworks.cn/matlabcentral/profile/authors/13979666-martijn-schoutentag:ww2.mathworks.cn,2005:Question/4745582019-08-02T08:38:05Z2019-08-19T09:34:58ZHow to save nested cells in mat fileI want to save data in such a way that a cell holds another cell array.
My main table will consist of cells, each of which will hold 24 cell arrays of size 1X63. How to save data in such a manner?
The idea is that I am encoding a words with numbers
For example. If my word is Aalen, A = 1x63 vector, a = 1x63 vector, l = 1x63 vector, e=1x63 vector, n=1x63 vector.
So for each word in my list, I waant to save a vector for each letter in the word.Sanjana Sankarhttps://ww2.mathworks.cn/matlabcentral/profile/authors/15815881-sanjana-sankartag:ww2.mathworks.cn,2005:Question/4761292019-08-14T13:55:55Z2019-08-19T09:31:07ZHow do you rearragne a matrix?I am trying to vectorise a matrix of by using the data:
AN=[0,0.500000000000000,0,0.500000000000000,0.500000000000000,0,0,0.500000000000000,0,0.500000000000000,1,0.500000000000000,0,0.500000000000000,0.500000000000000,0.500000000000000,1,0.500000000000000,0.500000000000000,1,1,0.500000000000000,1,1;0,0,0.500000000000000,0,0.500000000000000,0.500000000000000,0.500000000000000,0.500000000000000,1,0.500000000000000,0.500000000000000,1,1,0.500000000000000,1,0,0,0.500000000000000,1,0.500000000000000,1,0.500000000000000,0,0.500000000000000]
Then I want to produce a 2x16 matrix where by
TEMP = [AN(1,3:3:end)-AN(1,1:3:end),AN(2,3:3:end)-AN(2,1:3:end);AN(1,2:3:end)-AN(1,1:3:end),AN(2,2:3:end)-AN(2,1:3:end)]
gives me a 2x16 matrix with the first two rows (1:2,:) being matrix 1 and the next set (3:4,:) being matrix 2 and so on. I have tried reshape but have failed to get this working. I want something like this, where 1) is the matrix number:
0 0.5
0.5 0
-0.5 0.5
0 0.5
. .
. .
. .
0.5 0
0.5 -0.5
Any advice would be appreciated. I am trying to avoid for loops for speed as my matricies become extremely large.
KieranSQhttps://ww2.mathworks.cn/matlabcentral/profile/authors/13593575-kieransqtag:ww2.mathworks.cn,2005:Question/4766632019-08-19T09:23:11Z2019-08-19T09:26:07ZCompare row by row of two arrays and write in array, if there are matching valuesHey... how to find matching values between 3 arrays?
A=[1 2 0 3; 3 0 4 0; 6 7 0 0]; B=[1 8 0; 2 3 0 ; 6 1 8]; C=(1 3; 0 0; 5 6 7);
I want to find the values of matching values between those 3 arrays.
Result should be:
result=[1; 0; 6]
There will always be just one match out of these arrays. Therefore I will receive a 1x3 matrix.
0 should not be recognized as a match.
As you can see, the width of the rows is variable. The length of the array is the same for A, B and C.
I tried it with find in a for-loop, but got the matching of the whole arrays and not rows-specific.
Thanks,
JoshiJoshua Lindnerhttps://ww2.mathworks.cn/matlabcentral/profile/authors/15978953-joshua-lindnertag:ww2.mathworks.cn,2005:Question/799282013-06-22T16:46:05Z2019-08-19T09:24:01Zreduce precision of a numberI am having a problem trying to reduce precision output of a number
for example
x = 1.123456
*I want*
x = 1.123 (only 3 values after a decimal and not a string)
I use x = round(x*1000)/1000
and get
x = 1.1230 (I dont want the end zero)
I use x = sprintf('%.3f',x)
and get a string '1.123' (i dont want a string)
so i use x = str2num(sprintf('%.3f',x))
and get
x = 1.1230 (again with the zero)
*please help me* remove a zero at the end. I am not concerned with precision.Dwighthttps://ww2.mathworks.cn/matlabcentral/profile/authors/1842749-dwighttag:ww2.mathworks.cn,2005:Question/4739502019-07-29T16:01:18Z2019-08-19T09:17:56ZDraw partial spheroid include a spheroidI want to draw 1/8 spheroid include a small spheroid and output the geometry for mesh. But my current coding always have discontinue in the cutting plan.
Can anyone help provide a idea of cutting the spheroid in 1/8 not for showing but get the data.KOU DUhttps://ww2.mathworks.cn/matlabcentral/profile/authors/13809686-kou-dutag:ww2.mathworks.cn,2005:Question/4760682019-08-14T06:23:56Z2019-08-19T09:17:45ZHow to find the local similarity between an original data and a reconstructed data set ?Hi everyone, I am working on data reconstruction. I want to show the local similiraty between the original data and a reconstructed data set. The size of the original data is [300 12 12]=size(A), the size of the reconstructed data is [300 12 12]=size(B). Is there a way to find the similarity between the two data ? Any help could help me. TahnksYapo OBOUEhttps://ww2.mathworks.cn/matlabcentral/profile/authors/14388773-yapo-obouetag:ww2.mathworks.cn,2005:Question/1836702015-03-17T18:18:12Z2019-08-19T09:12:56ZHow to change phase in Phase shift full bridge?Hello everyone.
I'm now trying to simulate a PSFB. Basically, it's a isolated chopping DC-DC transformer. Instead of controlling the duty cycle, you control the phase for 2 of the PWM. You will then allow more or less power to flow.
The problem is: How to dynamically change the phase with a feedback loop
-Of a controled PWM voltage (the parameter is "TD", time delay.)
-Of a pulse generator (parameter "phase delay")
I have been trying to use a S function. I can succesfully change the duty cycle (actually, S function are quite easy to use, and very useful ^^). I can change a lot of parameter, but not the *PHASE DELAY* .
Here is the error message: " _Error evaluating registered method 'InitializeConditions' of MATLAB S-Function 'variablePhase2' in 'phase_shift_bridge_v0_2/Level-2 MATLAB S-Function'. The following is the MATLAB call stack (file names and line numbers) that produced this error:
['D:\Velocar\Battery_Charger\Electrical_circuit\variablePhase2.m'] [53]_
_Cannot change parameter 'Phase delay (secs): (PhaseDelay)' of 'phase_shift_bridge_v0_2/Pulse Generator2' while simulation is running_"
I am really stuck on this one. I have read many document about S function, and I don't know what's going on (except that it seems that some parameter of Simscape component cannot be modified by S function. But why the phase delay can't be touch during simulation while duty cycle can?)
As always, I will look for an answer, and if I find something, I will let you know =DKevinhttps://ww2.mathworks.cn/matlabcentral/profile/authors/2623607-kevintag:ww2.mathworks.cn,2005:Question/4762532019-08-15T11:58:42Z2019-08-19T09:12:25ZHow to collect individual bunches of data in a column of a matrixHi,
I have a matrix where I would like to collect the first 203 rows of a column into a variable, say e1, then skip the next 813 rows, then collect and add the next 203 rows into e1 again, then skip the next 813 rows... and so on until the end of the column.
I am new to MatLab and could not figure this out myself. Could someone suggest how to do this please?
Thanks
Darren Nuttinghttps://ww2.mathworks.cn/matlabcentral/profile/authors/15961890-darren-nuttingtag:ww2.mathworks.cn,2005:Question/4766572019-08-19T08:18:34Z2019-08-19T09:09:21Zcalculate distance between quaternion and array of quaternionsI was trying to calculating the distance between a quaternion and an array of quaternions as in the example of the Matlab documentation (https://de.mathworks.com/help/fusion/ref/quaternion.dist.html). I got the error "Unable to use a value of type 'quaternion' as an index.", then I realized that the function is part of a toolbox. After installing the Sensor Fusion and Tracking Toolbox, the code example worked once and now I got the error again. How do I ensure that Matlab is using the correct 'dist' function in order to calculate the quaternion distances?Mariella Dreißighttps://ww2.mathworks.cn/matlabcentral/profile/authors/10265435-mariella-dreissigtag:ww2.mathworks.cn,2005:Question/4734782019-07-25T16:13:02Z2019-08-19T09:06:20ZSimulate arima cross-correlated time seriesHi,
I have 10 time-series and I want to simulate N paths of each.
I modeled each time series as an arima model. Now, how can I simulate those paths taking into consideration the fact that there is cross-correlation between time series?
Thank you.Chafikahttps://ww2.mathworks.cn/matlabcentral/profile/authors/2966697-chafikatag:ww2.mathworks.cn,2005:Question/4762732019-08-15T14:16:27Z2019-08-19T09:03:18ZHow to convert 1 column vector text file to rgb image?I have a text file(.txt), how can I convert the 1 column vector (1x150528) to image 224x224x3 as shown below??
can show me the coding ?? thanks for helping me T.T
Tham Wei Jianhttps://ww2.mathworks.cn/matlabcentral/profile/authors/15051338-tham-wei-jiantag:ww2.mathworks.cn,2005:Question/3930342018-04-06T08:49:08Z2019-08-19T09:02:32ZI am unable to resolve this error: "Invalid training data. Predictors must be a N-by-1 cell array of sequences, where N is the number of sequences. All sequences must have the same feature dimension and at least one time step." How can i correctI am unable to resolve this error: "Error using trainNetwork: Invalid training data. Predictors must be a N-by-1 cell array of sequences, where N is the number of sequences. All sequences must have the same feature dimension and at least one time step." How can i correct this error.israel agbehadjihttps://ww2.mathworks.cn/matlabcentral/profile/authors/11497306-israel-agbehadjitag:ww2.mathworks.cn,2005:Question/4759242019-08-13T06:44:58Z2019-08-19T09:02:20Zforcing try catch loop during using another script Hello People
I have a problem in try catch loop,
I have number of files and I analyze these files by calling another script which has the analysis code.
for example let's say in the main script I am writting as the following:
num_files=20
[filename, pathname] = uigetfile([strPathLife ... '\...\*.xlsx;*.xlsm'], .. 'Excel-File auswählen',... 'MultiSelect','on') %this mean the first fiel would be file(1), file(2),... etc
for i=num_files
try
analysis_code(file(i)) % analysis_code is another script analyzes the data of the files
catch
disp('error')
end
end
according to this code it should analyze all the file disregarding if the there is error in analysing one file or more.
Thanks in advance
Ayman Mounirayman mounirhttps://ww2.mathworks.cn/matlabcentral/profile/authors/11511006-ayman-mounirtag:ww2.mathworks.cn,2005:Question/4766172019-08-18T21:14:08Z2019-08-19T09:00:50Zhow can call a functionHello everyone,
how can i call this function in an other function?
i need to plot a, b, c and d:
function [o, a, b, c, d] = ObjectiveFunction(X )
a=sum(throughputS, 'all');
b=sum(throughputT, 'all');
c=sum(throughputCN, 'all');
d=sum(throughputCR, 'all');
Thanks alotbrahmi ibtissemhttps://ww2.mathworks.cn/matlabcentral/profile/authors/7283922-brahmi-ibtissemtag:ww2.mathworks.cn,2005:Question/4395232019-01-13T00:00:53Z2019-08-19T09:00:27ZProblem with dbstop if error in 2018bAfter downloading Matlab 2018b, I started having the following problem using the command dbstop if error:
My code will stop at the error as usual but then at some point later as I am debugging (typing variable names in the command line to check their values, etc.), the debugger will stop at line 43 of getArrayEditorBrushCache which reads:
eval(['I = I' subsstr ';']);
Then I have to type dbclear if error to escape the debugger and start my program over.
This is happening to me in many of my programs where dbstop if error was working fine in previous versions of Matlab. Any ideas for how to solve this or is this just a new bug? JWallhttps://ww2.mathworks.cn/matlabcentral/profile/authors/4947838-jwalltag:ww2.mathworks.cn,2005:Question/4766492019-08-19T07:02:19Z2019-08-19T09:00:12ZFiltering data by 1x1 struc Hello, I have a dataset which indicates different locations of a stimulus eg row 3, column 4. There are 8 possible locations the stimulus may be located. I need to filter them by locations (by its specific row and column) but in the dataset, i need to first click on a blue link that states 1x1 structure, that contains its corresponding row and column). May I know what I need to input to filter by struct?
Many thanks, all help is appreciated. :DCharmshttps://ww2.mathworks.cn/matlabcentral/profile/authors/14739626-charmstag:ww2.mathworks.cn,2005:Question/4766622019-08-19T08:58:32Z2019-08-19T08:59:38ZHow to smoothen a signal using response time of a sensor ?Hi everyone,
I predicted a signal using mathematical model and I want to compare it with a sensor signal. The problem is my predicted signal reaches the maximum value within fraction of milli seconds. So, I want to include the response time of the sensor in the mathematical model and correct the predicted signal. I tried first order low pass filter using lowpass command in Matlab, but I didn't find any difference. The frequency response(FFT) of my predicted signal shows that my signal always lies below -10dB. Is there any way to include the information about the rise time of the sensor and smoothen the signal?
Thanks!!!
tr = 1.2; %response time
t_s = 0.2; % sampling rate in seconds
f_pass = 0.35/(tr);
f_s = 1/t_s;
Ysim_pt = lowpass(Ysim,f_pass,f_s); Raja Vardhan Reddy Kothakapuhttps://ww2.mathworks.cn/matlabcentral/profile/authors/8973029-raja-vardhan-reddy-kothakaputag:ww2.mathworks.cn,2005:Question/447522012-07-28T19:37:21Z2019-08-19T08:54:02ZIs it possible to solve a nonlinear system with signum function using ODE45?Hi!
I'm working with friction, my system is a SDOF with a mass, stiffness, friction and a harmonic function applied, then the equation of motion can be expressed by: ma+kx=f*sin(wt) but depending on the sign of the relative velocity, the Coulomb friction term should be added: Fd=ff*sign(velocity).
I would like to know if this differential equation is possible to be calculated using the solver ode45 or if it is necessary to check the relative velocity at each time step to use the correct equation.
Thank you
Laura
ode45 solution:
xp=zeros(2,1);
xp(1,1)=x(2,1);
xp(2,1)= (- K * x(1,1) - Fd*sign(x(2,1)) + (Fi * sin(wi*t)))/M;laura.gcashttps://ww2.mathworks.cn/matlabcentral/profile/authors/3587085-laura-gcastag:ww2.mathworks.cn,2005:Question/4766592019-08-19T08:28:39Z2019-08-19T08:47:48ZMatrix dimensions must agree problem. tx1 = times(freq,MP.d); %1x100 matix
tx2 = times((m-1),sind(MP.theta_vec)); %1000x7
tx3 = times(tx2,tx1); %Matrix dimensions must agree.
Is there another way to resolve this? Thanks.
Patrick Chad Ablighttps://ww2.mathworks.cn/matlabcentral/profile/authors/9964562-patrick-chad-abligtag:ww2.mathworks.cn,2005:Question/4687812019-06-25T10:12:06Z2019-08-19T08:36:08ZHow to change property behavior for a mocked objectI'm trying to use the mocking framework for unit tests
I'm trying to make the property of a mock object return another mock object, but the behavior object doesn't have the property
classdef MyClass
properties (GetAccess=public, SetAccess=protected)
prop1;
end
methods
function this = answer()
end
end
end
this is the mock decleration:
testCase = matlab.mock.TestCase.forInteractiveUse;
[mock,behav] = testCase.createMock(?MyClass);
% this would obciously throw an exception because the property set method is protected
mock.prop1 = "";
You cannot set the read-only property 'prop1' of MyClassMock.
% this throws an exception because the behavior object doesn't have this property
p = behav.prop1;
No appropriate method, property, or field 'prop1' for class 'matlab.mock.classes.MyClassBehavior'.
now i can't set the value of the mock object because the set access is protected
and i can't use the behavior object to change the property behavior because I can't find the propertyBehavior thing anywhere
I'm obviously missing something, but all the examples I've seen in the documentation show how to use a custom mock object with "AddedProperties"
and I could be tackling this the wrong way, but I prefer to create the mock object using the meta classTADAhttps://ww2.mathworks.cn/matlabcentral/profile/authors/8508661-tadatag:ww2.mathworks.cn,2005:Question/4761052019-08-14T11:23:06Z2019-08-19T08:35:21ZMatworkts: Find Periodicity Using Frequency Analysis meaning of y-axis In this example https://nl.mathworks.com/help/signal/ug/find-periodicity-using-frequency-analysis.html of the Matworks documentation, the y-axis is named 'Magnitude'.
I was wondering if there is a practical meaning for this 'magnitude'. Is this the number the number of times this frequency can be extracted from your signal or is this something completely else?
Kind regards,
Isabel
Isabel Vandewallehttps://ww2.mathworks.cn/matlabcentral/profile/authors/14588562-isabel-vandewalletag:ww2.mathworks.cn,2005:Question/4765112019-08-17T13:20:10Z2019-08-19T08:31:37ZHow can I solve a complicated symbolic integralHello.
I was going to solve this symbolic integral with int():
clear all
clc
syms k r R CosTheta M m
I=int((k*sin(k*r)/(k*r))*(1/(1+exp(0.2*((2.06*(10^7)*k*k)-M)))),k,[0 9.18])
but I got this as the solution:
I =
int(sin(k*r)/(r*(exp(4120000*k^2 - M/5) + 1)), k, 0, 459/50)
I found out that if remove the term 'k*k' from the expression, the the integral will be solved; in dact if I run:
clear all
clc
syms k r R CosTheta M m
I=int((k*sin(k*r)/(k*r))*(1/(1+exp(0.2*((2.06*(10^7))-M)))),k,[0 9.18])
then I get this as the solution:
I =
(2*sin((459*r)/100)^2)/(r^2*(exp(4120000 - M/5) + 1))
Now what can I do th solve my integral expression?
Regards.Hamed Pouriahttps://ww2.mathworks.cn/matlabcentral/profile/authors/15741598-hamed-pouriatag:ww2.mathworks.cn,2005:Question/4766582019-08-19T08:26:30Z2019-08-19T08:26:30ZI wrote one program. In that output, the pixels values are randomly change with little bit variation. please tell me the solution to this problem Dear Sir / Madam,
I wrote the code in this way.
clc
clear all
close all
val=[77 121 32 103 117 114 117 32 110 97 109 101 32 105 115 32 68 114 46 32 118 105 106 97 121 97 32 114 97 103 104 97 118 97 110 32 83 105 114];
a=imread('Chrysanthemum.jpg');
a=imresize(a,[512 512]);
wname='db2'
[ll,lh,hl,hh]=dwt2(a,wname);
for i=1:length(val)
hh(10,10+i)=val(i);
e(i)=hh(10,10+i);
end
b=idwt2(ll,lh,hl,hh,wname);
b=uint8(b);
imwrite(b,'processed_image.png');
b=imread('processed_image.png');
[ll2,lh2,hl2,hh2]=dwt2(b,wname);
for i=1:length(val)
f(i)=hh2(10,10+i);
f(i)=uint8(f(i));
end
isequal(e,f)
e
f
RESULT:
e =
Columns 1 through 19
77 121 32 103 117 114 117 32 110 97 109 101 32 105 115 32 68 114 46
Columns 20 through 38
32 118 105 106 97 121 97 32 114 97 103 104 97 118 97 110 32 83 105
Column 39
114
f =
Columns 1 through 19
77 121 32 103 118 114 117 32 110 97 108 101 33 105 115 32 68 115 46
Columns 18 through 38
32 118 105 106 98 121 96 32 114 97 103 105 97 118 98 110 33 83 104
Columns 39
113
In the above resultl, 'e' is the input values given to input image. 'f' is the extracted values from th eprocessed image. But the values are randomly change with little bit variation. i am expecting input values equal to output values.
if "wname=db10" then input and output values are equal (in this example only). But the result is not exactly equal if change the values or change the image
please tell me the solution to this problem. This solution is very helpful to me
lingamallu srinivashttps://ww2.mathworks.cn/matlabcentral/profile/authors/9020921-lingamallu-srinivastag:ww2.mathworks.cn,2005:Question/4766422019-08-19T06:13:02Z2019-08-19T08:20:55ZHow can I include a time delay in Simulink of the below equation?Hi All, i am designing a Decoupling controller for a 2x2 TITO of a flotation column, please can you assist me on ways i can insert the below equation in simulink.
Ayanda Lesetlahttps://ww2.mathworks.cn/matlabcentral/profile/authors/8540305-ayanda-lesetla