Answered
Error using * (line 334) Dimensions do not match., trying to multiply an array by a constant
You have not posted code that defines all the variables. If E is supposed to be scalar, then replace ".*" with juts "*". If th...

4 years ago | 0

Answered
Issue with cell during for loop operation
You can always copy a cell into a temp array, add zeros to increase array size, then write it back to the cell array: temp = ...

4 years ago | 0

Answered
Segment the foreground from the background
Have you reviewed the examples included with the Image Processing Toolbox? The example "Correct Nonuniform Illumination and Ana...

4 years ago | 0

| accepted

Answered
S-function codegeneraton for rtw: error C2065: 'ssGetDataTypeSize_cannot_be_used_in_RTW': undeclared identifier
See this documentation for more information on the Target Language Compiler and some tutorials with instruction on how to use th...

4 years ago | 0

| accepted

Answered
How can I "get rid" of certain regions in my segmented image based on their dimensions?
>> int32(blobProps(130).BoundingBox) ans = 1×4 int32 row vector 2521 1795 72 32 The bounding box defi...

4 years ago | 0

| accepted

Answered
How do I multiply digits of a given number?
>> numAsString = num2str(12345) numAsString = '12345' >> result = numAsString(1) + numAsString(3) result = ...

4 years ago | 0

Answered
Weighted linear fit of model to data using multivariate input
Look at the features in the System Identification Toolbox.

4 years ago | 1

Answered
s-function tlc
Do you still need help with this? S-Function builder or the legacy c code tool can both produce skeleton C or C++ source files ...

4 years ago | 0

Answered
A Screenshot of stateflow chart.
This article in the help documentation lists a few possibilities, "Programmatically Print Models from MATLAB Command Window".

4 years ago | 0

Answered
Specific area under curve
You could locate the "center" of the large circle or oval. Try calculating the polar cordinates, angle and radius, from the cen...

4 years ago | 0

Answered
Access to class properties from class methods
Use the argument obj for class methods that need to act on properties or methods of an instance of the class. function [retur...

4 years ago | 1

| accepted

Answered
Having Issues Plotting a Yield Strength Line with 0.20% Offset
Using hold is the right approach. I do not think I see a plot command that attempts to plot the dashed line. Here is one possi...

4 years ago | 0

Answered
Overloaded feval function with cfit object when using Compiler
The dependency scanner cannot look into arguments passed to feval very well, per the MATLAB Compiler User Guide. Use the %#func...

4 years ago | 0

| accepted

Answered
Undefined function 'imadd' for input arguments of type 'uint8'.
The imadd function is part of the Image Processing Toolbox. Does your license have this toolbox, or does the server running you...

4 years ago | 0

Answered
whta's the difference between grayslice and gray2ind?
It looks like gray2ind will only let you map the pixel intensity values to equal width bins. So the first 16 values would go to...

4 years ago | 0

Answered
rounding issues in matlab, need to force values to 0
You can use an index vector with ones in the spots that you want to replace with zero, similar to: >> X X = 1.0e-06 * ...

4 years ago | 0

Answered
i want to give de_e a shape of matrix of order 100x400 how can I?. I want output to be in order of j1xj2 rows and k1xk2 rows.Thanks
To create a matrix with the 100 by 400 size, use the command: de_e = zeros(100,400); I am not sure what you mean by j1xj2 ro...

4 years ago | 0

| accepted

Answered
segment exact time of signal
So this should be the calculation for the start and end sample numbers: >> (14*60+36)*200 ans = 175200 >> (16*...

4 years ago | 0

Answered
using external matlab file in app
You can call external scripts and functions if the M files are in your MATLAB path. Use something more descriptive than "file"....

4 years ago | 0

Answered
Unable to use functions from the Computer Vision Toolbox in Simulink MATLAB function block
See the documentation article "MATLAB Function" for more details about what functions can be used in the code that you put in th...

4 years ago | 0

Answered
How to select specific files from all the files in a folder?
You can get a file or directory listing in MATLAB using dir, and assign that to a workspace variable. Then loop through the ele...

4 years ago | 0

Answered
Unique and vectors last variable (simulink)
Maybe use this approach in your MATLAB function block or add a separate MATLAB function block to modify the CONNECTION_OPTIONS m...

4 years ago | 0

| accepted

Answered
Importing variables into Simulink from Matlab
In the Model Explorer, go to the Model Workspace parameters and set the Data source to "MATLAB File". Select your M file to use...

4 years ago | 0

| accepted

Answered
Hold a plot other than the most recent
You can use the figure function to "select" any previously created figure window, as long as you have the figure handle or the f...

4 years ago | 1

Answered
"Count the number of rows, within each of which the elements are sorted in ascending order." how should i do it ?
You can use issorted: >> A A = 0.9058 0.2785 0.9706 0.4218 0.0357 0.1270 0.5469 0.9572 0....

4 years ago | 0

Answered
How can I change the values of certain segments to 0?
An image is just a matrix in MATLAB. If you know the rows and columns in your image that correspond to segments you want to zer...

4 years ago | 0

| accepted

Answered
How to deselect a checkbox/node in a checkboxtree programmatically
In my particular mlapp example, if you set a breakpoint on the button push handler you can query the Tree checked nodes property...

4 years ago | 0

| accepted

Answered
How to deselect a checkbox/node in a checkboxtree programmatically
Not sure whether you mean unchecking any of the checked boxes or deselecting. In the check box utiree, only one node can be sel...

4 years ago | 0

Answered
How can I avoid artifacts when I use im2frame to convert black-and-white images to frames for a video?
If you are using VideoWriter to write out the video file with frames you get from im2frame, use an uncompressed or lossless comp...

4 years ago | 0

Answered
how to load big netcdf file?
The ncread function accepts additional arguments for a starting position and number of elements to read. See the help on ncread...

4 years ago | 0

| accepted

Load more