回答済み
How can I fix my uicontrol script?
Hi Travis The following code should do the trick. global exe; exe=1; main_menu=uicontrol('Style','pushbutton','Positi...

6年以上 前 | 0

| 採用済み

回答済み
Is there a way to return variable names instead of values when constructing TF?
Hi Alex Unfortunately the only certain variables permitted to print out as transfer function. If you try to give other names ...

6年以上 前 | 0

回答済み
How to fold up code in live script?
Hi Pierre I think this link can help you: <https://www.mathworks.com/matlabcentral/answers/34534-is-there-a-way-to-fold-up...

6年以上 前 | 0

回答済み
MATLAB Online Font Type
Hi Shah The font seems to be Bitstream Vera Sans Monospaced. Andale Mono also looks pretty similar. More details are availabl...

6年以上 前 | 1

| 採用済み

回答済み
I need to find the pixel count for the max intensity value of an image ie i want to know the exact value on the x axis of the histogram generated with imhist for a known y value is there a code to do this?
Hi Ellen This link should be able to guide you in the right direction: <https://www.mathworks.com/matlabcentral/answers/13...

6年以上 前 | 0

回答済み
How can this code be modernized?
Hi Francisco Here is an example of how you can modify the code to incorporate 'insertText': %rgbFrame = step(vidDevice);...

6年以上 前 | 0

回答済み
How to compare elements in an array?
Hi Alec You can use the 'find' function to obtain the values which are common between two arrays. For example: a=[1 2 3 ...

6年以上 前 | 0

回答済み
How to subplot a graph returned by MATLAB function for which there is no option to take the figure handle as input nor can it return a handle as output?
Hi Hari Check out this link: <https://www.mathworks.com/matlabcentral/answers/30684-wscalogram-and-subplots> Here, cwt is ...

6年以上 前 | 0

回答済み
Classify binary images with multiple features
Hi Edward The Deep Learning toolbox can help in classifying images with a good accuracy. Check out this link: <https://www....

6年以上 前 | 0

回答済み
How can i convert this simple program from Matlab into visual basic
Hi Musa What you can do is to make a DLL (mex) file from your MATLAB script and call that in VB. Another approach is to c...

6年以上 前 | 0

回答済み
Fit background of an image
Hi Angela One thing that you could try is to use 'imadjust' to improve the visibility of the image after top-hat filtering. ...

6年以上 前 | 0

| 採用済み

回答済み
Need Help Plotting Mode Shapes
Hi Amanda I am assuming that you wish to plot the variation of y against x for the values from 0 to 5 in steps of 0.5 as per ...

6年以上 前 | 1

| 採用済み

質問


Why am I getting negative zero as an eigen value while using the 'eig' function?
Hi all I ran the following code which makes use of the 'eig' function and I encountered a negative zero in the value printed ...

6年以上 前 | 1 件の回答 | 0

1

回答

回答済み
Standardize data when using Regression Learner App, but when predict...?
Hi Quan Since you have trained the model on the standardized data, the model would give an accurate prediction only when the ...

6年以上 前 | 0

| 採用済み

回答済み
Feature selection with NaN
Hi Azura, Have you tried the 'fillmissing' function in MATLAB? See the following link: <https://www.mathworks.com/help/matla...

6年以上 前 | 0

| 採用済み

回答済み
Using fittype for three dimensions
Hi Colin The variable 'theta' is not being recognized by the fittype function- hence the error. Try this modified code instea...

6年以上 前 | 0

回答済み
Why does z appear in my solution? How to get the value of x? My friend using Matlab 2017 and he can get the answer but i cannot by using matlab 2018
Hi Razin The output that you have obtained is indeed the solution of the equation 'eqns' that you have provided. The solut...

6年以上 前 | 0

回答済み
I don't know how to surf when z is independet.
Hi Jaeuk I think this link might help: <https://www.mathworks.com/matlabcentral/answers/11561-making-mesh-from-independent-v...

6年以上 前 | 0

| 採用済み

回答済み
When I use impulse for two different ss the plot is just one..I need two plots when I get the response and then I want to super impose those two plots..How do I do it
Hi Mirza Just use the 'hold on' command on the line above this one: impulse(Ac1,Bc1,Cc1,Dc1,1,'g'); 'hold on' will ensure tha...

6年以上 前 | 0

回答済み
i have these plots and i want the x axis and y axis to look similar. I mean the interval needs to be same.
Hi Pruthviraj Try the following sample code to manually set the intervals for x and y axes as you desire. x=0:0.1:1; y1...

6年以上 前 | 0

回答済み
help me about nlinfit
Hi Kim The second argument to the nlinfit function only accepts a vector. So it would be better to fit 'x' element-wise. I ha...

6年以上 前 | 0

| 採用済み

回答済み
How do I multiply two variables of form A(:,:, i) and B(:,:,i) where i = 20
Hi Sagar Try this code: sum=0 for i=1:20 sum=sum+s(:,:,i).*(phi(:,:,i).^2) end It will work if the sizes of ...

6年以上 前 | 0

| 採用済み

回答済み
Mean calculation from nxm matrices using nxm index matlab
Hi Abaye I understand that you wish to obtain the monthly mean flow for the data you have provided. Assuming that Month_data.ma...

6年以上 前 | 0

回答済み
fourier transform simple question
Hi Lin I'm attaching a code below which maybe what you are looking for. The plot returns the figure-1 with six signals that y...

6年以上 前 | 0

回答済み
create changing size array simulink
Hi Mike, The error occurs because for code generation in Simulink, you have to define the array 'y' before indexing or sub-scri...

6年以上 前 | 0

回答済み
Can I threshold this further if so how?
Hi Oliver. I think the im2bw function may be of help to you. I tried the following code with the image you had attached and it s...

6年以上 前 | 0

回答済み
How to find the equation of a line for a 3d line plot
It is possible to get the equation of the line using the fit function. Assuming that the two position variables are x and y, and...

6年以上 前 | 0

回答済み
can someone please explain what is lag in matlab built in function xcov ? Thanks
[c,lags] = xcov(x,y,maxlags) where x and y are length m vectors, returns the cross-covariance sequence in a length 2*maxlags+1 v...

6年以上 前 | 0

回答済み
How do I subtract a bunch of data created in MATLAB from another source in Simulink?
Hi Aishwarya Your query was regarding subtraction of data in MATLAB workspace and a block in the Simulink environment. There ...

6年以上 前 | 0

回答済み
how do i plot equations
Hi Federico I understand that you wish to plot K against x. Normally, you should separate out one variable in terms of the ot...

6年以上 前 | 0

さらに読み込む