Answered

Ideas for creating an Automatic Threshold value from a variable vector

Take a look at the ischange function. Error=[0.2 0.35 0.5 0.25 0.4 0.15 0.45 1.5 2.5 2]; changepoint = ischange(Error); resul...

Ideas for creating an Automatic Threshold value from a variable vector

Take a look at the ischange function. Error=[0.2 0.35 0.5 0.25 0.4 0.15 0.45 1.5 2.5 2]; changepoint = ischange(Error); resul...

ungefär en månad ago | 0

| accepted

Answered

Need Explanation of Bicubic Interpolation, in imresize inbuilt function of MatLab?

If you have access to MATLAB Coder, the imresize function supports the C / C++ Code Generation extended capability (with some li...

Need Explanation of Bicubic Interpolation, in imresize inbuilt function of MatLab?

If you have access to MATLAB Coder, the imresize function supports the C / C++ Code Generation extended capability (with some li...

ungefär en månad ago | 0

Answered

How to print most repeated Value in MATLAB

x = randi(5, 6, 6) mostCommonInColumns = mode(x) mostCommonInMatrix = mode(x, 'all')

How to print most repeated Value in MATLAB

x = randi(5, 6, 6) mostCommonInColumns = mode(x) mostCommonInMatrix = mode(x, 'all')

ungefär en månad ago | 1

Answered

Subtracting pairs of adjacent columns in an array without overlap

x = (1:10).^2 y = x(:, 1:2:end)-x(:, 2:2:end)

Subtracting pairs of adjacent columns in an array without overlap

x = (1:10).^2 y = x(:, 1:2:end)-x(:, 2:2:end)

ungefär en månad ago | 0

| accepted

Answered

Is it possible to check for existence of fields in nested structures with isfield in MATLAB 8.1 (R2013a)?

Another approach that uses neither eval nor repeated calls to isfield is to use getfield. a.b.c = 1; isNestedField(a, 'b.c') ...

Is it possible to check for existence of fields in nested structures with isfield in MATLAB 8.1 (R2013a)?

Another approach that uses neither eval nor repeated calls to isfield is to use getfield. a.b.c = 1; isNestedField(a, 'b.c') ...

ungefär en månad ago | 0

Answered

Matlab - Class : how to declare an internal function returning a value

I would make findScenarioNumber a class-related function rather than a method of the class. See this documentation page for an e...

Matlab - Class : how to declare an internal function returning a value

I would make findScenarioNumber a class-related function rather than a method of the class. See this documentation page for an e...

ungefär en månad ago | 0

Answered

How to get back real value after rounding

Unless you've stored those un-rounded values in a variable that still exists, you can't. Suppose I tell you I bought two items ...

How to get back real value after rounding

Unless you've stored those un-rounded values in a variable that still exists, you can't. Suppose I tell you I bought two items ...

ungefär en månad ago | 1

| accepted

Answered

RK 4 method for ODES

y(1)=1; y1(1)=2; for i=1:N At the start of the loop (during iteration 1) y and y1 each have 1 element. t=(i-1)*h; k...

RK 4 method for ODES

y(1)=1; y1(1)=2; for i=1:N At the start of the loop (during iteration 1) y and y1 each have 1 element. t=(i-1)*h; k...

ungefär en månad ago | 0

Answered

Inpolygon returning a NAN

The inpolygon function can't return a NaN value. The problem is later on in your code. If you ask for the mean of an empty array...

Inpolygon returning a NAN

The inpolygon function can't return a NaN value. The problem is later on in your code. If you ask for the mean of an empty array...

ungefär en månad ago | 0

| accepted

Answered

May I built an casio ex calculator using matlab as a beginner in my varsity project?Is it a wise decision? From where will I get sources

Addressing the three questions you asked in turn: May I built an casio ex calculator using matlab as a beginner in my varsity p...

May I built an casio ex calculator using matlab as a beginner in my varsity project?Is it a wise decision? From where will I get sources

Addressing the three questions you asked in turn: May I built an casio ex calculator using matlab as a beginner in my varsity p...

ungefär en månad ago | 0

Answered

Packaging apps that are dependent on custom toolboxes.

Are you trying to deploy this app using MATLAB Compiler but want it to call MATLAB code from your custom toolbox without includi...

Packaging apps that are dependent on custom toolboxes.

Are you trying to deploy this app using MATLAB Compiler but want it to call MATLAB code from your custom toolbox without includi...

ungefär en månad ago | 0

Answered

Function that calculates the amount of money

Your function fails to satisfy this requirement of your homework assignment: The function must take an input argument that is a...

Function that calculates the amount of money

Your function fails to satisfy this requirement of your homework assignment: The function must take an input argument that is a...

ungefär en månad ago | 1

Answered

How to create a function that produces 2 histograms?

Use tiledlayout and call histogram twice, once for each tile in the tiled layout.

How to create a function that produces 2 histograms?

Use tiledlayout and call histogram twice, once for each tile in the tiled layout.

ungefär en månad ago | 0

Answered

How can I delete some specific rows from a matrix?

Do you have a character matrix or do you have a datetime matrix? C = ['2003-06-24' '2003-07-10' '2003-07-18' '2003-07-26' '...

How can I delete some specific rows from a matrix?

Do you have a character matrix or do you have a datetime matrix? C = ['2003-06-24' '2003-07-10' '2003-07-18' '2003-07-26' '...

ungefär en månad ago | 1

| accepted

Answered

Find a matlab files from laptop

If it were more recent I would check the list of recent files (on the Editor tab of the Toolstrip click the downward pointing tr...

Find a matlab files from laptop

If it were more recent I would check the list of recent files (on the Editor tab of the Toolstrip click the downward pointing tr...

ungefär en månad ago | 0

Answered

Could I access to a subclass properties (values) from superclass?

So, I don't know if it possible to access to all properties of subclass. Superclasses should not know about the properties of t...

Could I access to a subclass properties (values) from superclass?

So, I don't know if it possible to access to all properties of subclass. Superclasses should not know about the properties of t...

ungefär 2 månader ago | 0

| accepted

Answered

f(x) = x^2 - 200x + 9999.9999 by using bisection method in matlab please help me. interval [0, 10000]

If you look at the pseudocode on Wikipedia, it has two if statements inside the while loop. You have one. Where's the other? Fo...

f(x) = x^2 - 200x + 9999.9999 by using bisection method in matlab please help me. interval [0, 10000]

If you look at the pseudocode on Wikipedia, it has two if statements inside the while loop. You have one. Where's the other? Fo...

ungefär 2 månader ago | 0

Answered

Arrays have incompatible sizes for this operation problem in if statement

Don't use == for comparing char vectors. If the char vectors you're comparing don't have the same number of characters that won'...

Arrays have incompatible sizes for this operation problem in if statement

Don't use == for comparing char vectors. If the char vectors you're comparing don't have the same number of characters that won'...

ungefär 2 månader ago | 0

| accepted

Answered

Speed up 3D rand

tic A = rand(1000, 1000, 1000); t = toc So on average rand generated 1 number every: format longg s = seconds(t/numel(A)) ...

Speed up 3D rand

tic A = rand(1000, 1000, 1000); t = toc So on average rand generated 1 number every: format longg s = seconds(t/numel(A)) ...

ungefär 2 månader ago | 0

Answered

Data Analysis - Matlab Code

I would use the normalize function or the Normalize Data task in Live Editor.

Data Analysis - Matlab Code

I would use the normalize function or the Normalize Data task in Live Editor.

ungefär 2 månader ago | 0

Answered

How to convert 50x1 double to 1x100 double?

How do you want the additional 50 elements to be created? Or to give a smaller example, take y. y = (1:5).^2 If we wanted to ...

How to convert 50x1 double to 1x100 double?

How do you want the additional 50 elements to be created? Or to give a smaller example, take y. y = (1:5).^2 If we wanted to ...

ungefär 2 månader ago | 0

Answered

How can I create a solid line from the data within a for loop?

Either use an animatedline object or create the line before the loop starts and add points to its XData and YData properties ins...

How can I create a solid line from the data within a for loop?

Either use an animatedline object or create the line before the loop starts and add points to its XData and YData properties ins...

ungefär 2 månader ago | 0

Answered

Why am I getting inf even though there is no divide by zero?

To determine why an Inf is generated even though you don't believe there should be any division by zero performed by your code, ...

Why am I getting inf even though there is no divide by zero?

To determine why an Inf is generated even though you don't believe there should be any division by zero performed by your code, ...

ungefär 2 månader ago | 0

Answered

Why does my EdgeColor map incorrectly to the edges of my Graph Plot?

Let's compare the EdgeTable variable and the Edges property of the graph. %% Construct arbitrary dataset EdgeTable = table('Si...

Why does my EdgeColor map incorrectly to the edges of my Graph Plot?

Let's compare the EdgeTable variable and the Edges property of the graph. %% Construct arbitrary dataset EdgeTable = table('Si...

ungefär 2 månader ago | 0

| accepted

Answered

Creating a matrix such as a = [1 1 1 1 1 1 1; ... 1 2 2 2 2 2 2; ... 1 2 3 3 3 3 3; ... 1 2 3 4 4 4 4; ... 1 2 3 4 5 5 5; ... 1 2 3 4 5 6 6; ...

A = gallery('minij', 7) See the documentation for the gallery function for a list of the other types of matrices it can create....

Creating a matrix such as a = [1 1 1 1 1 1 1; ... 1 2 2 2 2 2 2; ... 1 2 3 3 3 3 3; ... 1 2 3 4 4 4 4; ... 1 2 3 4 5 5 5; ... 1 2 3 4 5 6 6; ...

A = gallery('minij', 7) See the documentation for the gallery function for a list of the other types of matrices it can create....

ungefär 2 månader ago | 0

Answered

Regexp to extract standalone numbers from string

I wouldn't use regexp here. I'd use string, strsplit, and double. S = 'X?YYx0123 [un] 21ZZz20AaaB00 A200.1 21 Xx2222 202...

Regexp to extract standalone numbers from string

I wouldn't use regexp here. I'd use string, strsplit, and double. S = 'X?YYx0123 [un] 21ZZz20AaaB00 A200.1 21 Xx2222 202...

ungefär 2 månader ago | 1

Answered

Sorting a string according to the values of a vector of type double

Take a look at the second output from the sort function.

Sorting a string according to the values of a vector of type double

Take a look at the second output from the sort function.

ungefär 2 månader ago | 0

Answered

Problem while creating a stand alone application from appdesigner

If you're trying to open the Workspace Browser from within your deployed application I'm 99% sure that falls into the "other dev...

Problem while creating a stand alone application from appdesigner

If you're trying to open the Workspace Browser from within your deployed application I'm 99% sure that falls into the "other dev...

ungefär 2 månader ago | 0

Answered

create plot task not available in live script despite having other control toolbox options

Do you mean this task? That is part of MATLAB. There is a documentation page for this task in the Control System Toolbox documen...

create plot task not available in live script despite having other control toolbox options

Do you mean this task? That is part of MATLAB. There is a documentation page for this task in the Control System Toolbox documen...

ungefär 2 månader ago | 1