Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 1

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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'...

alrededor de 5 años hace | 0

| aceptada

Respondida
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 = .......

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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_...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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') ...

alrededor de 5 años hace | 0

Respondida
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); ...

alrededor de 5 años hace | 0

Respondida
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.

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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]; ...

alrededor de 5 años hace | 0

Respondida
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 ...

alrededor de 5 años hace | 1

| aceptada

Respondida
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) ...

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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(...

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 2

Cargar más