Answered
Eigen value and eigen vector of symbolic block matrix
THere are a few errs that need to be fixed before computing eigen values and vectors. syms a51 a53 a54 a56 a62 a65 a67 a68 a7...

5 years ago | 0

Answered
How to plot accuracy graph in Matlab.
(1) Create an array of your data (2) Use: errorbar() or step() or histogram()

5 years ago | 0

| accepted

Answered
How do I create a matrix displaying all of the possible combinations when I roll a 6 sided die 5 times?
Here is a simple solution: II = 0 ; Iroll = zeros([],1) ; jj = 0 ; while II ~= 5 jj = jj+1 ; N = randi(6) ; Iro...

5 years ago | 0

Answered
Plane and sphere intersection
A couple of points require some changes, e.g.: ... figure fmesh(zplane) hold on [x, y, z] = sphere(50); % A bit more me...

5 years ago | 0

Answered
Too many input arguments IMRESIZE
You'd need to check: sppd = screen.xpixels/screen.width; % screen pixels/deg.

5 years ago | 0

Answered
How to put out Z-direction in 3D scattering / image
You should try this function file. Download and run: https://www.mathworks.com/matlabcentral/fileexchange/34939-ginput-3d?s_tid...

5 years ago | 0

Answered
Simple heat transfer problem
Hi, There are a couple of points that you've overlooked. (1) is the sign of U; (2) is the simulation time. This is a slow pro...

5 years ago | 0

Answered
How to change the shape of node
Here is a kind of helpful code you can start working with to substitute the plot markers with images w.r.t your definitions: ht...

5 years ago | 0

Answered
Model VCO frequency variation due to supply voltage variation in simulink
In your exercise, you can employ [VCO] block of Simulink. Note that this block can be found inside Coomunication toolbox and ca...

5 years ago | 0

Answered
Plot multiple curves on a graph (involving a for loop within another)
Hi, Here is a solution. ... for ii=1:it jvals(ii,:)=linspace(0,0.3,n); for jj=1:n curvature=jvals(ii,jj...

5 years ago | 0

| accepted

Answered
figure plot legend keep on in for loop
Here is the easy solution: LB = {}; CL = 'rgb'; % Line color type LT = '--:-'; % Line type for ii=1:numel(c) % You can a...

5 years ago | 0

Answered
separate mesh figures in for loop of matrix
for c_value=1:3 %%%matrix is u mesh(u) % i get all 3 matrix of u in same figure xlabel('x', 'Rotation',20) y...

5 years ago | 0

Answered
how to calculate angle in loop?
If your assignment requires loop only, then here is a brief solution that can be extended a bit with some comments: azA = input...

5 years ago | 0

Answered
How to get unit vetors from a matrix ?
In your exercise, there is a small correction needed and thus, the matlab commands are: V=randn(30,3);D=sqrt(diag(V'*V)); U = V...

5 years ago | 0

Answered
Unable to animate my surface plot correctly, need to save it as a .gif
Hi, Here is one of the possibly easy ways of recording gif animation: fileN = 'MYGIF'; % This is the animation recorded .gi...

5 years ago | 0

Answered
2d and 3d plot in hex ,eshes.
Davod, You can check this one out how to generate hegonal mesh grid: https://www.mathworks.com/matlabcentral/answers/89665-...

5 years ago | 0

Answered
2d fft for many images
To remove the DC from your calculated values, you can use: DC=mean2(im_input); IM2=im_input-DC;

5 years ago | 0

Answered
Is my Fourier Transform code correct?
What you are doing is OK. Very small corrections/adjustments can be introduced for figure(4) and (5) to plot half spectrum exclu...

5 years ago | 1

Answered
Study of oscillations and how to solve in MATLAB
This is a quite straight forward exercise. Follow these steps and run your different case scenarios: syms y(t) Dy = diff(y, t)...

5 years ago | 1

Answered
How to compute the lag time between single day cross-correlation
Should you provide your data, some technical help can be given. As is, you can compute the lags using this simple hint here: htt...

5 years ago | 0

Answered
How can I can correct an integrator error under MATLAB /Simulink ?
In your model, try to avoid using the derivatives. Instead try to linearize all derivatives using transfer function blocks. Se...

5 years ago | 0

| accepted

Answered
How to get unit vetors from a matrix ?
Here is the answer: V'\D

5 years ago | 0

Answered
Data acquisition toolbox - reading with different rates
What is your anticipated max. acceleration frequency bandwidth in your measurements? As is now, 25.6 kHz is quite high frequency...

5 years ago | 0

Answered
Problem with matrix function output (Q learning, Calvano et al. 2021)
There are several inconsistencies in your code: (1) You are calling the function file called fn. However, your function file is...

5 years ago | 0

| accepted

Answered
Can anybody help me with the two questions below in the image? Thanks in advance
% Simple and easy answer here is to use logical indexing and categorical array approaches along with table, e.g.: ID = (1:10)';...

5 years ago | 0

Answered
Text File Read Matlab
Step 1. Data import from your txt file, e.g.: uiimport() Step 2. Save imported data Step 3. Compute the mean of the importe...

5 years ago | 0

Answered
W-M function to plot 3d fractal surfaces
Hi, Here are corrected codes of yours. One more important note that it is not a good practice to call your m-file with a MATL...

5 years ago | 2

Answered
Reading excel for for a particular date range and output the max corresponding value.
An easy solution is: sortrows()

5 years ago | 0

Answered
How can I make a sentence in Alphabetical order
Hi, Here is an easy solution to your exercise: CC='the quick brown fox'; ANS =sort(strsplit(strtrim(CC))) Good luck.

5 years ago | 0

Load more