Réponse apportée
Subtracting pairs of adjacent columns in an array without overlap
x = (1:10).^2 y = x(:, 1:2:end)-x(:, 2:2:end)

plus de 3 ans il y a | 0

| A accepté

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 1

| A accepté

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

| A accepté

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 1

Réponse apportée
2D Surface Random Number Plot
I recommend using histogram2.

plus de 3 ans il y a | 2

Réponse apportée
How to create a function that produces 2 histograms?
Use tiledlayout and call histogram twice, once for each tile in the tiled layout.

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 1

| A accepté

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

| A accepté

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

| A accepté

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

plus de 3 ans il y a | 0

Réponse apportée
Data Analysis - Matlab Code
I would use the normalize function or the Normalize Data task in Live Editor.

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

| A accepté

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 1

Réponse apportée
Sorting a string according to the values of a vector of type double
Take a look at the second output from the sort function.

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 1

Réponse apportée
What qualification do I need to apply for an internship at MATLAB?
Different departments have different qualifications that they're looking for in intern candidates. Take a look at the list of in...

plus de 3 ans il y a | 0

Réponse apportée
Passing arguments through a function
You could do this using varargin, but if you do make sure you like the function's interface before you give it to anyone else. B...

plus de 3 ans il y a | 1

Réponse apportée
Fast creation of vector [0 0 1 1 2 2 3 3... n n]
n = 5; x1 = repelem(0:n, 2)

plus de 3 ans il y a | 1

Charger plus