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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 1

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 1

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 1

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

Cargar más