Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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 = ...

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

Beantwortet
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 ...

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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 * ...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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*...

mehr als 4 Jahre vor | 0

Beantwortet
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"....

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 1

Beantwortet
"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....

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Mehr laden