Answered
Error using sym/subsindex (line 853)
Hi, Here is the corrected solution: clearvars a = 2; b = 3; c = -9; d = 0; syms t y(t) il1(t) il2(t); y = [il1; il2];...

5 years ago | 1

Answered
Readmatrix is changing the "size" of the data I am trying to retrieve from an Excel file?
Hi, This is where you have logical indexing that is removing all data points which are less than 0. B1pos = B1ffix(B1ffix > ...

5 years ago | 0

Answered
D Flip flop using matlab code(not simulink)
Hi, Here is the fixed code: [x,y] = dflipflop(1101101101,1010101010) function [Q1,q1] = dflipflop(d,clk) %dflipflop Su...

5 years ago | 0

Answered
.m file cannot open
Hi, There might a copuple of different cases of this issue. Easy solution can be to open that file with a notepad and then cop...

5 years ago | 0

Answered
What is a best practice around directory structures and folders in MATLAB?
MATLAB's default folder is always good that does not get affected with new updates of MATLAB. Moreover, matlab's default folder ...

5 years ago | 0

Answered
how to use MLSE after for Jafarkhani
Here is a good documentation how to employ MLSE(): https://www.mathworks.com/help/comm/ug/mlse-equalizers.html

5 years ago | 0

Answered
Can someone help me? - Plotting complex number with index
Hi, Here is the answer to convert imaginary and real numbers from a floating point format into binary: N = 16; % Num...

5 years ago | 0

| accepted

Answered
How to code erf(z) summation series?
Hi, Here is the corrected code: clearvars; clc; close all N0 = zeros(1,21); %preallocate array for solutions of 1-erf(z) ...

5 years ago | 0

Answered
the time cost for the same m-file changed largely
Hi, Have you done any memory allocation for your loop calcs? Have you moved all of plot commands outside of the loop? Plot t...

5 years ago | 1

Answered
label dots with bits - Can someone help me?
Hi, (1) you need to create binary representation of your plotted points using dec2bin() for labels to display on the plot (2...

5 years ago | 1

Answered
How to plot 32PSK modulating signal in time domain?
Did you convert binary values to decimal values? To convert binary values into decimal values bin2dec() can be employed.

5 years ago | 0

Answered
analog image into digital using matlab code
Hi, Based on what you described, your exercise is composed of a few steps. (1) data acqusition using A2D converter (hardwar...

5 years ago | 0

Answered
How to repeat each elements of matrix irregularly
Hi, This is an easy solution to your exercise. You can adjust it w.r.t your exercise conditions: A =[0.2978 -0.7649 -2.8...

5 years ago | 0

| accepted

Answered
Sum function handle in a for loop
Hi, Using symbolics might be an easy solution here: sigma=2; syms x syms b [1 4] syms mu [1 4 ] M =(b(1) .* exp(-(x -...

5 years ago | 0

| accepted

Answered
covid data in matlab
Hi, Have you managed to import data into matlab workspace? If not, you can employ: (1) readtable() or (2) xlsread(). The latt...

5 years ago | 0

Answered
Can someone help me? - Plotting complex number with index
(1) Separate real and imaginary parts using real(), imag() (2) PLot them: Real vs. Imag (3) Convert the separated real and ima...

5 years ago | 1

Answered
How can i get a RGB values from a illuminance(lux) values ?
Hi Use: hsv2rgb()

5 years ago | 0

Answered
Sequence of linear sistem
Hi, you can solve this exercise in a relatively simple way: A = .. b = .. x(:,1) = linsolve(A, b); for ii = 2:N x(:,ii) ...

5 years ago | 0

| accepted

Answered
Find radius of circle and find curvature from images
Hi, Have you reviewed this help doc of mathworks on circle identification in images? https://www.mathworks.com/help/images/d...

5 years ago | 0

Answered
find minimum of function with four variables using simplex search method of nelder and mead
Hi, There are some variables undefined in your defined function handle f.

5 years ago | 0

Answered
Creating a hammer projection
Here is a script to generate hammer projection: https://www.mathworks.com/matlabcentral/fileexchange/45673-sky-map-function

5 years ago | 0

Answered
What should be the best approch to solve a 2D hyperbolic PDE (i.e. wave equn) in a polar coordnate?
Hi, You can employ del2() and diff() built in fcns of matlab.

5 years ago | 0

Answered
PV/T MATLAB R2021a Simulation Data Recovery
Hi, Here is a very nice help documentation of mathworks: https://www.mathworks.com/help/physmod/sps/ug/photovoltaic-therma...

5 years ago | 0

Answered
Plot level curves, at level 1,2,3 and 4, for the surfaces below using contour. Use a meshgrid(-2:0.05:2).
Hi (1) Initiate: x, y using meshgrid() (2) Compute f1(x, y), f2(x, y), f3(x, y) (3) Use subplot(mnp) (4) Use mesh() or sur...

5 years ago | 0

Answered
How to draw a high-contrast spectrogram?
Hi, Use colormap()

5 years ago | 0

Answered
For loop using two variables
Hi, Here is the corrected code: xx=zeros(numel(va), nume(na)); for va=1:1500 for na=1:30 xx(va...

5 years ago | 0

Answered
Why am I getting the error "Array indices must be positive integers or logical values."?
Hi, You have overlooked .* after y: kfinal=(x.*(u.*x-v.*y)-y.*(u.*y+v.*x))./(x.^2+y.^2)+a.^2.*(x.*(u.*x-v.*y)+y.*(u.*y+v.*x)...

5 years ago | 0

| accepted

Answered
error finding placement of specific number in a vector
Hi, Your data might be in a floating point format and if that is the case, then you need to be careful with logical indexing....

5 years ago | 0

Answered
solving coupled system of second order differential equations
Hi, You can employ ode solvers (ode23, ode23tb, ode45, ode113, etc) as suggested or write scripts using function handles or a...

5 years ago | 2

| accepted

Answered
how can i insert in plot different values
Hi, Here is a simple solution: Names={'One', 'Two', 'Three', 'Four', 'Five'}; X = randi([0, 13], 5, 15); for N = 1: 5 ...

5 years ago | 0

| accepted

Load more