Reddit » Matlab
408 FOLLOWERS
This subreddit is a place to discuss the MATLAB programming language and its implementation.
Reddit » Matlab
3d ago
Can someone please help me with this? I can't publish my code to be a pdf. However, I can do it as an .html and .doc files.
submitted by /u/vlb123
[visit reddit] [comments ..read more
Reddit » Matlab
3d ago
So, in my problem I have to optimize some parameters of a dynamic system where to calculate the cost function I use the ODE function, however during the execution of the problem I end up receiving the following warning:
Warning: Failure at t= 1.900000000000001e+00. Unable to meet integration tolerances without reducing the step size below the smallest
value allowed ( 3.552713678800501e-15) at time t.
I'm using a try-catch function, but apparently it doesn't work with warnings, what other solution I can try?
submitted by /u/j1nbe
[visit reddit] [comments ..read more
Reddit » Matlab
3d ago
%% Load data from Excel Data = readtable('SolarPanelData - SS24.csv'); % Read the data date = table2array(Data(:, 1)); hour = table2array(Data(:, 2)); atmp = table2array(Data(:, 3)); srad = table2array(Data(:, 4)); Huse = table2array(Data(:, 5)); % Reform the date to separate columns for years, months, days reform_date = datevec(date); % Create an array for the hours of every day n = 0; h = zeros(length(srad), 1); while n < length(srad) if n < length(srad) - 20 h(n + 1:n + 24) = 1:24; else h(n + 1:n + 20) = 1:20; end n = n + 24; end % Allocate the hours to column 4 in the reform_date t ..read more
Reddit » Matlab
3d ago
hi guys, im a neuroscience student and the research in doing in college uses matlab to remotely control a specific machine and its parameters. My professor gave me an old script and i need to enhance it. The script uses a external functions. I got a new one that is better. I need to substitute the variables from the old external function and use the variables from the new external function. The only problem is that I never used matlab before. Is there a website or a good youtube playlist that could help me? Thanks a lot! (ps: i know a little bit about python if it helps with something)
submi ..read more
Reddit » Matlab
3d ago
Hello,
I'm trying to solve the following problem.
My code is the following:
n = size(h,2);
m = size(s,2);
f3 =[zeros(1, n+m), 1];
A3 = [];
b3 = [];
Aeq3 = [ones(1, n), zeros(1, m+1);
zeros(1, n), ones(1, m), 0];
beq3 = [1;1];
LB3 =[zeros(1, n+m), 0];
UB3 =[];
[Res3,fval3]=linprog(f3,A3,b3,Aeq3,beq3,LB3,UB3);
% Determine the (x,y) coords for the
% point pp in conv hull of points h and
% point qq in conv hull of points s
% for the chosen distance
pp=h*Res3(1:n);
qq=s*Res3(n+1:n+m);
plot(pp(1),pp(2),'b*')
plot(qq(1),qq(2),'b*')
line([pp(1) qq(1)],[pp(2) qq(2)],'Color','b')
This solves the ..read more
Reddit » Matlab
3d ago
How to create our own satellite with custom components instead of using inbuilt cube sat. And how to add this satellite in satellite scenario
submitted by /u/Pleasant_Tumbleweed3
[visit reddit] [comments ..read more
Reddit » Matlab
3d ago
Hi all, still I don't figure out how to measure the capacitance with simulink :C, I want just measure capacitance in parallel and capacitance in serie...
submitted by /u/moff_4
[visit reddit] [comments ..read more
Reddit » Matlab
3d ago
Hey, I've been building analog circuits in LTSpice so far however I encountered the simulink circuit simulation onramp part and I was wondering which one is mostly used by companies ? Thanks for reading!!
submitted by /u/45CMDAMARLI
[visit reddit] [comments ..read more
Reddit » Matlab
3d ago
Hi everyone I've been trying to run a simulink model of a synchronous generator (transient stability enhancement using resistive braking) and I am stuck on this syntax error since the past one month. Also my eyesight is weak and I cant afford glasses right now so I'm not able to exactly pinpoint if I'm missing some brackets. Please help. The expression is:
(((-Rs(1+u(6)u(8))+(u(7)Xqp)u(8)-u(6))(u(7)u(8))+((1+u(6)u(8))Xqp+(u(7)Rs)u(8)+u(7))(1+u(6)u(8)))u(1)+(-(-Rs(1+u(6)u(8))+(u(7)Xqp)u(8)-u(6))(1+u(6)u(8))+((1+u(6)u(8))Xqp+(u(7)Rs)u(8)+u(7))(u(7)u(8)))u(2)+(-Rs(1+u(6)u(8))+(u(7)Xqp)u(8)-u(6 ..read more