Community Profile

Alex Alex

Last seen: Today Active since 2021

Content Feed

View by

How to obtain union of three shapes given the coordinates
may be command "polyxpoly" help you [xi1,yi1] = polyxpoly(circ(:,1), circ(:,2), R1(1,:), R1(2,:)) [xi2,yi2] = polyxpoly(circ...

How can I change the upper case letters in a string to lowercase while also changing the lowercase letters to uppercase?
Try begin with this example clc clear a='Hello My BROthEr'; % text in one row for i=1:length(a)% cycle from 1 to size mass...

power and voltage unit of GUI is not working
Mb in formula used U^2. Lets try with R=1. P=(U^2)/R When U = 1 KV = 1000V => P = 1MW When U = 1 V = 1V => P = 1W ...

Bus signals from simulink functional block

How to output LoggedSignals in reinforcement learning simulations?
Try use combination "Ctrl+E" inopened model and select string Data Import/Export for setting output parametres

File - Model Properties - Model Properties - Callbacks - PreloadFcn/PostLoadFcn ???

Did you say "plant"? If you are using the simulink сo-simulation mode, I'm afraid no customization is possible.

Delay block doesn´t work
Try fixed-step size or fixed max step size, but i agree, bad modeling

Simulink crankshaft doesn't work properly. How can I fix it?
try and resistance and rotational damper....but it not end.....

| accepted

Change legend line position

How to plot 2 variable graph in simulink?
Use "plotyy" function or "yyaxis" example here https://www.mathworks.com/help/matlab/ref/plotyy.html

| accepted

How to solve two equations for four unknowns?
No options, the number of equations must be greater than or equal to the number of unknowns. Now 2<4?

Return the number of rows of an array
B=find(A<50)

ungefär ett år ago | 0

ga is stopping after 1 or 2 iterations only
may be more iterations?

ungefär ett år ago | 0

Legend combination problem! How to fix?
This is what you need?

ungefär ett år ago | 0

| accepted

How to use time series signals from simulink to workspace in plot?
plot(y), plot(out.y), Something from this ?

mer än ett år ago | 1

| accepted

Find 2nd Minimum between Input Wheel Speed Signal
Try this code for "matlab function" block.It should work for the same values too and if wheel speed>0.This is not the best s...

mer än ett år ago | 0

| accepted

How do I make a Double-Acting Hydraulic Cylinder act in both directions in Simscape?
from help: Initial Conditions Tab Piston initial distance from cap A The distance that the piston is extended at the beginnin...

mer än ett år ago | 0

Get Numeric Values out of Text File
look here about "ZIP codes", maybe help https://www.mathworks.com/help/matlab/ref/extract.html

mer än ett år ago | 0

How to Control optimizaiton's variable changing step
Try to create a nonlinear constraint function that selects only integer values of the variables being optimized

mer än ett år ago | 1

Code outputs correctly once, but gives an error message when I try to output a second time.
I think that just in the workspace there was an array a, which has different dimensions with arrays x1 and x2. Use the clear com...

mer än ett år ago | 1

| accepted