Respondida
Splitting part of image to smaller images
Image segmentation technique can be used to partition an image into multiple parts or regions, often based on the characteristi...

alrededor de 5 años hace | 0

Respondida
Getting NaN for the mean of a vector, is this normal?
NaN returns the scalar representation of "not a number". Operations return NaN when they have undefined numeric results, such as...

alrededor de 5 años hace | 0

Respondida
View matlab dates in normal view
you can use 'datestr ' function to see the actual date: Here is the example snap shows for your first number converted into dat...

alrededor de 5 años hace | 1

| aceptada

Respondida
Array dimensions must match for binary array op." How you solve that one? How to check the images have exactly the same row and column sizes, and the same number of dimensions (2 or 3).?
To check dimensions you can use: if ndims(Image1) == ndims(Image2) disp('dimensions are same'); else disp('Dimensi...

alrededor de 5 años hace | 0

Respondida
I am new to matlab and have a sample data(shown on pic) with many values inside. I need to multiply each values with its different conversion coefficient. How can I do that?
You could use 'serialport' and 'read' functions to read data from serial port. for more info: https://www.mathworks.com/help/...

alrededor de 5 años hace | 0

Respondida
Matlab vector and arrays
You can use directly colon (:) operator. X=1:20 Y=10:25 For more info: https://www.mathworks.com/help/matlab/ref/colon.h...

alrededor de 5 años hace | 0

| aceptada

Respondida
if statement problem with function
This may help you: x = [-1:0.1:1]; f = (x.^2).*(sin(pi.*x)); g=zeros(1,length(f)); for i = 1:length(f) if f(i) >= 0 ...

alrededor de 5 años hace | 0

| aceptada

Respondida
Add data to .csv file using matlab
data = {'DateTime1' 'UserName1' 'Path1' 'Remark1'}; data1= {'DateTime2' 'UserName2' 'Path2' 'Remark2'}; Data = [data;data1]; ...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to make a piecewise function and plot it ?
Instead of using h1, h2,h3 and h4 , you can use h variable for all 4 pieces of code. then use plot plot(th2,h);

alrededor de 5 años hace | 0

| aceptada

Respondida
more than one sl_customization file
As per my understanding with the matlab helppage, matlab recognizes the all sl_customization.m files in your path. To run specif...

alrededor de 5 años hace | 0

Respondida
Matlab closes in the middle of a loop
I am not sure you will get exact answer but this may help: Increase java heap memory from preferences.

alrededor de 5 años hace | 0

Respondida
Export Structure to csv file
You can try this: load Structure_Example.mat writetable(struct2table(PracTrials), 'Structure_Example.csv') The output cs...

alrededor de 5 años hace | 1

Respondida
Error using load. Unable to read file '...'. Input cannot be a directory.
The mat file you are using this need to be in matlab current path. You can add folders and subfolders in path manually by right ...

alrededor de 5 años hace | 0

Respondida
How to save Simulink model without model workspace saved
If you dont need any data from model workspace you could clear whole model workspace data simply by two lines. before save you ...

alrededor de 5 años hace | 0

Respondida
How to replace two columns in a txt file?
This could help you: fid = fopen('test.txt'); C = textscan(fopen('test.txt'),'%s','delimiter','\n'); C=strrep(C{1}, '1.0269',...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to change the gcc version in matlab
If you would like to change installed compiler: type on command window: mex -setup installed compiler options will be dis...

alrededor de 5 años hace | 0

Respondida
Reading HEX data from text file in HEX format not decimal.
you could use textscan function: fid = fopen('hextest.txt'); data = textscan(fid, '%s')

alrededor de 5 años hace | 0

| aceptada

Respondida
Left and right sides have different number of elements error (Matrices, data handling).
You could try to store result in cell { } : for jtor = 1:n distance{jtor} = pdist([X(jtor,:)';T(itor,:)']); end or you c...

alrededor de 5 años hace | 0

Respondida
How to store the indexes of the values which satisfies the given condition while running a loop. The condition is satisfied many times but at the end only i only get the index of last condition when value was satisfied.
Hopefully you are looking for the: %Code is here. You can change F(i)=i; F1(j)=j; to indices{end+1} = [i,j]; function indi...

más de 5 años hace | 0

Respondida
How can I store values that satisfies only the specific condition from the loop without overwrriting?
function indices=Saddle(M) [a,b]=size(M); P=max(M,[],2); Q=min(M); indices = {}; for i=1:a for j =1:b if P(i,...

más de 5 años hace | 0

Respondida
How to programmatically modify simulink.signal object in sldd
ddName = 'MySldd.sldd'; dicObj = Simulink.data.dictionary.open(ddName); secObj = getSection(dicObj,'Design Data'); SigEntri...

más de 5 años hace | 1

| aceptada

Respondida
AUTOSAR interface configuration programmatically
Help page specifically not shown programatically support available for ExternalTriggerOccurredEvent . Help page https://www.m...

más de 5 años hace | 0