답변 있음
Use the input arguments to load user-defined .mat files(2xn matrix) in the function.
A= load (varargin{1}); %to load first inputargument file name This assumes that when you called [Ans1,Ans2,Ans3,Ans4]= Data_fu...

2일 전 | 1

| 수락됨

답변 있음
Calling Matlab from command line gives Caught unexpected exception of unknown type, why?
clear all; clear all asks MATLAB to destroy as much state as possible, leaving little more than what is stored in the current g...

2일 전 | 0

답변 있음
screen size should not be effected by the resolution
The changes to MATLAB to make it less dependent on screen resolution, are not active until a certain minimum resolution, so if t...

2일 전 | 0

답변 있음
Fprintf values in an ordered manner
x=[0.1,5,10] y=[400,500,600] fprintf('%-10g %-10f\n',[x(:),y(:)].')

3일 전 | 0

| 수락됨

답변 있음
How to cluster 1D array so that approximately equal values are replaced by their average?
https://www.mathworks.com/help/matlab/ref/uniquetol.html [~, ~, G] = uniquetol(xx); xxmean = grpstats(xx, G, 'mean');

3일 전 | 1

| 수락됨

답변 있음
Why do I keep getting this error message?
no, im trying to solve for T , and equal it with -20*dx Generally speaking, there are three situations: in one case, the left ...

3일 전 | 0

답변 있음
Empty sym: 0-by-1
There is no solution to those equations. m2 = rand() * 10; m3 = rand() * 10; m4 = rand() * 10; ag2x = randn() * 10; ag3x = ...

3일 전 | 0

| 수락됨

답변 있음
How do I make accurately proportioned axes?
You could linkprop the axes DataAspectRatio property, if it is a matter of getting the units to have the same ratios . However ...

3일 전 | 0

답변 있음
How to combine function in simulink
https://www.mathworks.com/help/simulink/ug/select-subsystem-execution.html Use the time as input to an If Action Subsystem

3일 전 | 0

| 수락됨

답변 있음
sir, while executing the below code i am getting undefined variable or the function . i tried it it but i didnt get the correct way to slolve . plz help me int his
Your loop over k did not have any iterations. Perhaps you told it to look for files in the wrong folder.

3일 전 | 0

| 수락됨

답변 있음
if x is a variable, solve for x
If the user inputs a variable name for exactly one of the prompts, then symvar(equation) will tell you which variable it was. s...

4일 전 | 1

| 수락됨

답변 있음
Getting all Permutations of a 18+ integer vector
I posted code at https://www.mathworks.com/matlabcentral/answers/623358-get-a-combination-of-unique-paths-for-given-pair-of-numb...

4일 전 | 1

답변 있음
How to generate data from Function and save in CSV in MatLab?
n = 20; x_i = rand(1,n); f11 = @(x) exp(-mean(x.^2)); y_i = f11(x_i) dlmwrite('test.csv', y_i)

4일 전 | 0

답변 있음
fminsearch vector of results
steps = 5; C = @cos; Sum_I = @atan; I = 42; j=1; %increment level. The loop will work for j>1 as well. for i=1:j:steps;...

4일 전 | 0

| 수락됨

답변 있음
IF statement wrongly checked
j+1; That line retrieves the current value of j and invokes the plus() method between j and 1 (whatever that happen...

4일 전 | 0

| 수락됨

답변 있음
how to use fzero function?
syms x fzero('x.^2-2*x-5',2) The syms x is not having any effect there. What is happening is that you are encountering an undo...

4일 전 | 0

| 수락됨

답변 있음
How to generate random parking lot size?
[randi([4 8]), randi([6 8])]

4일 전 | 0

답변 있음
how to write a long term in function of other terms in matlab
syms lambda beta1 beta2 d1 alpha d2 k d3 p c d4 x alpha = evalin(symengine, '`α`'); lambda = evalin(symengine, '`λ`'); beta1 ...

4일 전 | 0

답변 있음
how to find the end point coordinates of an object in binary image.?
The requirements are not really well defined. im = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/57436...

4일 전 | 0

| 수락됨

답변 있음
How to open and work with dicom images, which has no .dcm file extension.
|My images are ultrasound images with 564X800 diemesion| It appears that instead you have ultrasound sequences, the first of ...

4일 전 | 0

답변 있음
Laplace Transform of unit step
hint: sympref 'heavisidestorigin' then you can code the piecewise definition in terms of heaviside() and follow with laplace(...

5일 전 | 0

답변 있음
Error with equation using sym/subsindex
% Variables V = 1500; g = 32.2; x = 500; y = 50; tol = 0.000001; % Error tolerance % Function syms A f(A) = x.*t...

5일 전 | 1

| 수락됨

답변 있음
white noise case in 3L dft
This looks related to https://www.mathworks.com/matlabcentral/answers/677793-three-level-dft-need-help-in-error . for j=1:j_ma...

5일 전 | 0

답변 있음
Plotting Piecewise function produces white empty graph
function [X] = FourierSinc(a,b,K) w = linspace(-10,10,600); You assign a list of definite numeric values to w syms w You imm...

5일 전 | 1

| 수락됨

답변 있음
Produce the same result but without using a for-loop.
syms y(x) y(x) = piecewise(x>=9, 15*sqrt(4*x)+10, 0>=x=<9, 10*x+10,10) ^^ MATLAB ...

5일 전 | 0

답변 있음
Where is the function ismat?
not part of MATLAB. <https://github.com/evenrev1/evenmat>

5일 전 | 0

답변 있음
How to Plot a function on 3D-sphere?
N0=100; r_med=0.5; sigma_g=7; N_ang=91; [P11,P12,P33,P34,beta_s,alpha_c,beta_c] = ZK_W_Cloud_PhaseFunc(N0,r_med,sigma_g,N_an...

5일 전 | 0

답변 있음
Can anyone help me plot the graph for below equation using matlab code?
Pi = pi; %use Pi = sym(pi) if you want to work symbolic T = T_0 + Q_p./(2.*Pi.*k) .* exp(-lambda.*nu.*xi) .* exp(-lambda.*n...

5일 전 | 0

| 수락됨

답변 있음
Euler's Method Problem
Since R2018b it has not been valid to use text symbolic expressions such as 'x^(-2)*y^3' for any operation except dsolve() [and ...

6일 전 | 0

답변 있음
Code to import file
filename = 'test.txt'; %part 1: create some demonstration data to work with s = randi(9, 15, 1); t = randi(9, 15, 1); writ...

6일 전 | 0

Load more