Questions tagged as 'matlab'

1
answer

Matlab Directory Change

I would like to know how to solve this problem; I am using a function block inside Simulink, however when I click on execute my code the following error appears: The current directory 'c: \ program files \ matlab \ matlab production server \ r...
asked by 07.12.2018 / 14:54
1
answer

MATLAB, how to create symbolic variables with FOR?

How do I create multiple variables with the use of for in matlab? I'm not getting the index of for with the name I give the variable for example: For i = 1:10 Syms Variable i; % What do I put here to differentiate or at least get the varia...
asked by 17.11.2018 / 20:34
0
answers

Error while doing array inversion

clc clear all % format short g %roundn = @(x,m) round(x*10^m)./10^m; %% As matrizes a seguir sao matrizes de impedancias mutuas z12 = [[.005+.003i .002+.001i .001+.001j];... [.002+.001i .005+.003i .002+.001i];... [.001+.001i .002+.0...
asked by 17.11.2018 / 04:33
1
answer

Error with xlswrite in Matlab 2016

I'm having trouble saving Matlab data to Excel spreadsheets. I took a very simple example code: A = [1:257;1:257]; [status message] = xlswrite('teste.xls', A) But it does not work. The error that appears is: message = message...
asked by 30.09.2018 / 22:18
0
answers

how to find threshold values in an image in matlab?

how to find threshold values in an image, with the following ranges: 0-0,25, 0,25-0,50,0,50-0,75 and 0,75-1? And could you tell me what makes the following code please: GRAY = mat2gray(bEnhanced); % figure, % imshow(GRAY), % title('Gray Image'...
asked by 16.09.2018 / 00:43
1
answer

Function Matlab for the approximation of ln (1-x)

Good morning, I need to make a Function according to the image, but I do not have much knowledge with matlab , could anyone help me? Thank you!     
asked by 08.09.2018 / 15:27
0
answers

Mark critical point on the surface - Matlab

I'm doing this script to mark the critical point on the surface, but it is giving error: "Error in test2 (line 26) plot (xs (1), xs (2), 'r *')", someone can help me? clc clear H=[2 -2;-2 4]; f=[-4;0]; A=[2 1;1 -4]; b=[6; 0]; lb=zeros(2,1); ub...
asked by 01.06.2018 / 20:41
1
answer

Stop a worker and continue the parallel pool in matlab

I have a code with a simple parfor in matlab that calls the workers. parfor valor= 1:fim [output, out] = Computacao(dado1, dado2, int32(valor)); end In the function that is called I have an if for a condition in which if I f...
asked by 25.05.2018 / 01:58
1
answer

How to plot this signal in MatLab?

I wanted to plot these signals in MatLab to do a series of fourier, but I can not. Does anyone know the error? Also, how do I include the imaginary unit? I put like 1j but I do not know if it's right clear all; close all; T=1; w0=2*pi/T; c=4;...
asked by 26.04.2018 / 17:28
0
answers

I need to read an array from the workspace

I'm trying to read a matrix from the workspace through the function " From Workspace " by passing it in the block " Matlab Function " whose input must equal the output, finally the value must be inserted in another variable " To Work...
asked by 04.04.2018 / 18:31