Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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 = ...

environ 4 ans il y a | 0

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

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How do I multiply digits of a given number?
>> numAsString = num2str(12345) numAsString = '12345' >> result = numAsString(1) + numAsString(3) result = ...

environ 4 ans il y a | 0

Réponse apportée
Weighted linear fit of model to data using multivariate input
Look at the features in the System Identification Toolbox.

environ 4 ans il y a | 1

Réponse apportée
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 ...

environ 4 ans il y a | 0

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

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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 * ...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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*...

environ 4 ans il y a | 0

Réponse apportée
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"....

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 1

Réponse apportée
"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....

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Charger plus