Answered
Import Excel Data to Signals
(1) You can use your *.xlsx data in your SImulink model as an input via a Simulink block called: [From Spreadsheet]. (2) You ca...

5 years ago | 0

| accepted

Answered
Solving non- linear equations using newton Rapshson
There are a few points that need to be corrected. Here are there. function [k,p0,inc,error,y] = newton(f,dfv,p0,delta,max1) er...

5 years ago | 1

Answered
Why can't I do the integral?
Clear up all variables should help or worst case, restrat your MATLAB. You may also need to have the floating point numbers in y...

5 years ago | 0

| accepted

Answered
How do I make this graph
Use help documentation how to build histogram plot that gives you all hints. >> help hist >> doc histogram in your case, you'...

5 years ago | 0

| accepted

Answered
How to plot 2 surfaces in a same chart?
% To create a surface you need 2D data for Z a=readtable(file.csv); X=a(:,1); Y=a(:,2); [x, y] = meshgrid(X, Y); Z = .......

5 years ago | 0

| accepted

Answered
How to loop over different named structs?
for ii = 1:N All_data(ii,:) = cell2mat({['cursor_info' num2str(ii)].Position}'); end Good luck

5 years ago | 0

Answered
Playing rhythms in Matlab
There are a couple small but crucial flaws in your generated audio signal. (1) There is an index related err. (2) Your genera...

5 years ago | 0

Answered
Cell operations in eml
Yes, it is absolutely possible to do it in Simulink. E.g.: U{1} = 15; save('MYdata.mat', 'U') .. load('MYdata.mat') You c...

5 years ago | 0

Answered
Why vector created by colon have improper values
The latter one is the right one. Since MATLAB takes up 16. cdd and thus, rounding would give us the value that we are looking at...

5 years ago | 0

Answered
Multiline in columns of tables
It looks like that you have not adjusted the position values. See this simple example: H = figure; MYdata = [(1:7...

5 years ago | 0

Answered
How to use "while loop" in this case?
k=1; while k < 180 for .. ... end k=k+1; end

5 years ago | 0

| accepted

Answered
superimpose quiver plot onto image
Here is the complete solution script: img = imread('Bubble0.jpg'); GI = rgb2gray(img); [gx, gy] = gradient(double(GI), .5, .5...

5 years ago | 0

Answered
Purpose of "simmx.m" M-file in MATLAB
To see and understand the functions of this m-file, type: >> edit simmx Or >> help simmx This is not a built-in MATLAB func...

5 years ago | 0

Answered
Anonymous ODE function syntax for multipoint BVP
In your exercise, a relatively simple solution is to employ the function handles. The suggested approach is shown via Sturm-Liou...

5 years ago | 0

Answered
GPlab Genetic programming toolbox help - user defined function.
Here is a nice help guide with step-by-step approach. LINK: https://www.mathworks.com/help/gads/example-rastrigins-function.html...

5 years ago | 0

Answered
Publishing from livescript doesn't show graphs
1st, execute your code 2nd publish. It will work as it should. Good luck.

5 years ago | 0

Answered
How to get rid of "negative data ignored" warning in a loglog plot
You had better select higher order of polynomial to fit or choose a different fit model, e.g., log function ... c2 = polyfit(N...

5 years ago | 0

Answered
How can I save multiple output from a for loop in one .mat file?
Here is the simple answer: NX = [8 16 32]; for n = 1:3 Nx = NX(n); sol{n} = solve(eqn,Nx ); end save('my_...

5 years ago | 0

Answered
Hello everyone.I would like to ask you how to extract the data of a local area of a picture. The code I wrote is shown below. Please help me correct the mistakes. Thank you all.
Maybe here you can find some good help: https://www.mathworks.com/matlabcentral/answers/76528-measurement-in-images-image-analy...

5 years ago | 0

Answered
replace function that fulfills criteria
Is that what you are tryin to obtain: A = '12' A1=replace (A, '1', '1234') A2=replace (A1, '2', '12345') ...

5 years ago | 0

Answered
Hello everyone.I would like to ask you how to extract the data of a local area of a picture. The code I wrote is shown below. Please help me correct the mistakes. Thank you all.
Is that what you are trying to get? D = imread('BW.jpeg'); MYdata=imbinarize(D); figure(1) imshow(MYdata); R=edge(MYdata); ...

5 years ago | 0

Answered
The Convolution Theorem in 2D
Note that the sizes of A and B must match. In your inserted image array, sizes of A and B must have differed.

5 years ago | 0

Answered
Find numbers that are not in multiple columns
Simle solution is a logical indexing approach, something like ...e.g.: IND = A1.Var1~=A2.Var2; A1=array2table([A1.x(IND), A1.V...

5 years ago | 0

Answered
Index in position 1 exceeds array bounds (must not exceed 1).
A couple of errs in a ";" needed. clear all; close all; clc a=[6 1 1; 2 4 0; 1 2 6]; b=[12;0;6]; c= zeros (3:1); x=[2 2 2]; ...

5 years ago | 0

Answered
I need some help adjusting my system of differential equations code.
Hi, There are a couple of crucial points overlooked in your code: l0 = 3; % initial length of plant w0 = 0; % initial amount ...

5 years ago | 1

| accepted

Answered
Gradient optimization problem with fmincon
Here is a simple solution to your exercise. Adjust your constrains for r (radius) and l (length). % NOTE: RL(1) is R and RL(2) ...

5 years ago | 0

Answered
change variable in function_handle
f=@(x)sin(x) g = @(x)f(x+2) Good luck

5 years ago | 0

Answered
Point cloud sequential transformation
The answer is simple. MATLAB's accuracy is not absolute and thus, you have gotten difference. You can test this exercise: theta...

5 years ago | 0

Answered
I want to get final force using correct roots but have error in my coding. How i can fix this?.
There are a few small but crucial errs :) ... pdd1 = [a(1) b(1) c d e]*10^(-6); pdd2 = [a(2) b(2) c d e]*10^(-6); pdd3 = [a(...

5 years ago | 0

| accepted

Answered
size of axis numbers
ax = gca; ax.FontSize = 15; % Font Size of 15

5 years ago | 2

Load more