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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

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

circa 4 anni fa | 1

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 1

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

| accettato

Carica altro