답변 있음
Simulink bus object modification from Matlab script
This article explains some ways of modifying the model workspace. If you have more specific questions please ask them and post ...

1년 초과 전 | 0

답변 있음
How do i read a line after a word in a csv file
This could be a good example of using splitapply after reading in the entire dataset as a table. See this article: https://w...

1년 초과 전 | 0

| 수락됨

답변 있음
Number of peaks in the interval
Use MinPeakHeight as the parameter name for findpeaks. You do not show the definition of locsI or psk in your sample code.

1년 초과 전 | 0

답변 있음
Code generator does not create appropriate .h files for Simulink model
Could the output or example folder be read only?

1년 초과 전 | 0

답변 있음
How to calculate the total length of all the lines in this image (with grid)?
You can use colorThresholder to help isolate the red pixels and then simply count all of them in the resulting mask image using ...

1년 초과 전 | 0

답변 있음
Live webcam with histogram ?
Have you tried this example for acquiring an image: https://www.mathworks.com/help/supportpkg/usbwebcams/ug/acquiring-a-singl...

1년 초과 전 | 0

| 수락됨

답변 있음
Fourier series fit to a periodic function with multiple frequencies
Try looking over the documentation of the fft in MATLAB, along with the examples included there. If you have more specific ques...

1년 초과 전 | 0

답변 있음
Video Writer for cycle detection
You can use frame2im(getframe(gcf)) to get an image that has the result of imshow and viscircles together.

1년 초과 전 | 0

| 수락됨

답변 있음
Parallel for loop problem
You may want to review this thread and use parfeval if the partial results option is something you want. https://www.mathwork...

1년 초과 전 | 0

답변 있음
Risk Matrix in MATlab
This is getting pretty close: %Define risk matrix 1-3 (1 low - 2 medium - 3 severe) C=[2 3 3 3 3 3; 2 2 3 3 3 3; 1...

1년 초과 전 | 1

| 수락됨

답변 있음
MATLAB Coder does not recognize dot notation in struct member assignment
See the article "Name the C Structure Type to Use With a Global Structure Variable" in the MATLAB help documentation. You need ...

1년 초과 전 | 0

답변 있음
Implicit casting overhead from real to complex when multiplying two matrices
Multiplying a complex matrix by a real matrix requires fewer calculations so should take less time. Your test is a little too s...

1년 초과 전 | 0

| 수락됨

답변 있음
How to change the max pixel value of the image
This is to increase the values of specific values in a matrix. You can probably take it from there: >> >> A = [35 40 45 55...

1년 초과 전 | 0

답변 있음
FFT of a Superposition signal
Try this, and see this article on usage of the FFT to understand how to interpret the results and assign results to frequencies....

1년 초과 전 | 0

답변 있음
enhance image quality for read Barcode
If your camera has autofocus, the reflection off the table below may be confusing it. Place something nonreflective with no hig...

1년 초과 전 | 0

답변 있음
enhance image quality for read Barcode
Can you get a better photo? Can you read the barcode manually from this photo? You can use improfile to get something like thi...

1년 초과 전 | 0

| 수락됨

답변 있음
How can I convert a file format FIG to PCD?
There is a function called pcwrite. The MATLAB documentation has a good article on it.

1년 초과 전 | 0

| 수락됨

답변 있음
Finding an element in table without using if_else condition
You can do some operations on the Table variables to get index vectors: >> Table_A.A ans = 3×1 string array "...

1년 초과 전 | 1

| 수락됨

답변 있음
How to call c2000 library functions with the S-Function builder?
If you are using mex to compile this C code into a binary for Simulink to use as an S-Function block, you probably need to use t...

1년 초과 전 | 0

답변 있음
Customized Library version management
Simulink libraries just have one version number for the whole thing just like Simulink model files. You can not version each bl...

거의 2년 전 | 1

| 수락됨

답변 있음
[SOLVED ALREADY] Loop through data struct with variable names
You want to index into the structure array, then pass one of those array elements to the length function: >> S1.E1 = [1 1]; ...

거의 2년 전 | 0

답변 있음
Using Matlab to open a text file
Looks like subl is not in your search path. You can use the system command to print out the search path that the MATLAB process...

거의 2년 전 | 0

| 수락됨

답변 있음
Embedded coder 'Generate code only' not including toolbox files
If you have some other toolchain to compile the source code, you can locate the file in the MATLAB program files folder and incl...

거의 2년 전 | 0

답변 있음
Getting NaN while using the ratio of power and factorial
The factorial function output increases very fast as input increases. See "doc factorial" for details. The output is "inf" for...

거의 2년 전 | 0

답변 있음
How do I grab all the files with a certain name pattern from several folders?
The dir function will work with wildcard characters: D = dir(fullfile(myFolder, '*grab*'))

거의 2년 전 | 0

답변 있음
Image correction based on the mesh of projection surface
The image processing toolbox has only more basic geometric transformations, and computer vision has some camera calibration tool...

거의 2년 전 | 0

답변 있음
Video background removal in MATLAB by K-means clustering processing technique
I am not sure if it uses K-means clustering but vision.ForegroundDetector can support that type of application: https://www.m...

거의 2년 전 | 0

답변 있음
Why does my code bug down during while loop?
Have you tried the Profiler tool with your code? This can quickly highlite which parts take the most time. In this case line 2...

거의 2년 전 | 0

답변 있음
How to make matlab access two folders for data when separated by date
You can get file dates using the "dir" function or keyword in MATLAB. Does any of this help? >> D = dir D = 105×1 s...

거의 2년 전 | 0

답변 있음
Getting ginput to read axes on an appdesigner GUI
Here is a previous discussion on this topic: https://www.mathworks.com/matlabcentral/answers/392617-how-can-i-use-ginput-in-a...

거의 2년 전 | 0

| 수락됨

더 보기