Answered
I keep getting this error "File identifier must be an integer-valued scalar of type double." when using fopen
Err in the code: filename = 'Example2.txt'; % Corrected ONE. No input() that creates the error

4 years ago | 1

| accepted

Answered
Modeling, control, and simulation of dual rotor wind turbine.
Have you seen this thread on Turbine model: https://www.mathworks.com/matlabcentral/answers/517712-wind-turbine-model-in-simulin...

4 years ago | 0

Answered
how to connect interpolation and probability
Some of your data, used in your code, are not provided here. Moreover, it is not quite clear "connect"? What you are trying to d...

4 years ago | 0

Answered
What formula should I use in linear mixed effects model fitting?
In this case, you should choose the formulation that would give a most accurate prediction. Either you go with your common under...

4 years ago | 0

Answered
Classify Hyperspectral Images Using Deep Learning
Did you try to call this fcn: openExample('deeplearning_shared/HyperspectralImageClassificationUsingDeepLearningExample') Have...

4 years ago | 0

Answered
How can I plot an histogram?
there is an err in your code. Here is the corrected one: number_of_events=[30.60, 32.30, 32.30, 32.30, 32.30, 2.60, 12.60, 32.3...

4 years ago | 0

Answered
Why does my matrix give me a syntax error
Note that [A] is not to be defined within Fnorm that should be called correctly. It works without any err, if you call your fcn ...

4 years ago | 0

Answered
Change spacing between title lines
In your exercise, one of the viable solutions is to create one necessarily formatted blank line between the two lines. Here is o...

4 years ago | 1

Answered
Help to plot the LED Characteristic Curve
The answer in signal-to-noise ratio value, e.g: SNRdB = 20; % Gives a nice looking one!

4 years ago | 0

Answered
Draw a tangent line with a given slope in Log scale
To compute the tangent line of this curve, I would do the followings: (1) Get the numerical data of the curve (shown in your pl...

4 years ago | 0

Answered
To assign to or create a variable in a table, the number of rows must match the height of the table.
There are some size issues overlooked while assigning the table array. Here are the corrected parts of your code: ... time=(4...

4 years ago | 0

Answered
How do I solve this error?
There are a few errs in your tiny code. Here is the corrected one: load V.mat B=3.1e98; R=8.313; Ea=6.28e5 ; % Check your f...

4 years ago | 1

Answered
help with Integral function
There are a couple of errs in your code. Here is the corrected code: % Please enter your name inside the single quotes in the n...

4 years ago | 0

| accepted

Answered
How do I find the first 30 percent of each period of cosine?
In this case, if you are working and need to work with your plot, then you should work with ginput to locate where your full per...

4 years ago | 0

Answered
i want to plot readed audio files
Maybe you had better employ just one plot() and hold it to plot all imported data from audio files, e.g.: plot(y), hold all % ...

4 years ago | 0

| accepted

Answered
Index exceeds the number of array elements (1).
Note the size issues of the following variables pre-defined in your code: T=300; % Size 1 - by - 1. And you are try...

4 years ago | 0

| accepted

Answered
Remove offset and delay of step response
(1) Start at t=0: ... N = numel(x); x = linspace(0, 5, N); (2) Remove the offset: yoff=0.5; y = T(:, 2)-yoff; % Channel ...

4 years ago | 0

Answered
How to get a single value after an iteration?
% Error=zeros([1,length(Begining)]); % REMOVE THIS! ... Error=sqrt(error)/sqrt(DN)

4 years ago | 0

| accepted

Answered
DOUBLE SPRING MASS SYSTEMS & MATLAB’S ODE 45
There are a few errs in your code. Here is the corrected and complete code: t=[0, 3]; X0 = [1; 3; 0 ;0]; OPTs =odeset('Output...

4 years ago | 1

Answered
Error/Confusion with Simplifying Symbolic Expressions
You can also use: collect()

4 years ago | 0

Answered
How to cut an image manually using pixels values with for loop without imcrop ?
Here is a discussion thread that already addressed your question very well: https://www.mathworks.com/matlabcentral/answers/3448...

4 years ago | 0

Answered
shading in a graph
I don't think there is any plot tool that creates such graph with only data input. However, you can create this by plotting the ...

4 years ago | 1

Answered
How can I create this kind of graph?
You can use 3d bar charts - see this doc and 2d bar charts and/or histogram bars - see this doc1 and doc2

4 years ago | 0

Solved


Enlarge array
Given an m-by-n numeric array (A) and a 1-by-2 vector (sz) indicating the dimensions [p q] to enlarge each element, return an (m...

4 years ago

Solved


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

4 years ago

Solved


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

4 years ago

Solved


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

4 years ago

Solved


Converts numbers into characters
Converts numbers into characters

4 years ago

Solved


Find the max element of the array
Find the max element of the array

4 years ago

Solved


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

4 years ago

Load more