Réponse apportée
Suppose I have a 2 by 60 matrix, like A = [1:60,2:61] how can I reshape it by the first 10 rows so that I can get a 20 by 6 matrix??
A = [1:60;2:61] B = reshape(A,[20,6])

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Names of connected outputs to inports of selected subsystem
@Ewelina Cholodowicz I hope this will solve your issue :) Please let me know if you stuck at any point, or any point is not cle...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
I am trying to make a zeros matrix where certain places is replaced by a 1
b=zeros(3,8); r = [1 1 3]; % row c = [1 8 4]; % column idx = sub2ind(size(b),r,c); b(idx) = 1; b

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Required array is dependent on other arrays
ID_A = [];ID_B = [];ID_C = [];ID_D = []; ID_F = []; for x = 1:size(Scores,1) if OG(x)>90 ID_A(end+1) = ID(x); e...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Reading a text file, skip the intermediate text lines and store the numeric numbers
fid = fopen('abc.txt'); tline = fgetl(fid); storedData ={}; while ischar(tline) if isstrprop(strtrim(tline(1)),'digit') ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Displaying unreal numbers in system of equations
syms K eqn =(981 - 250*(K + (3^(1/2)*5^(1/2)*(400*K^2 + 981)^(1/2))/50)^2)^(1/2)/20; sol = vpasolve(eqn,K); sol1 = vpasolve(K...

plus de 3 ans il y a | 0

Réponse apportée
Unable to edit table in my Report
Hello @Eric Aguado It was happening because you table ype was different. you need to create mlreportgen.dom.table caldataNew =...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
help with matrix concatenation
@James Kamwela is this what you expect as answer please check main =[1 2 ; 3 4]; main = 1 2 3 4 Allmatr...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Add next and previous business date of each date in array row
@chiefjia will this work? % Create array EventsArray = [datetime('today') datetime('yesterday') datetime('tomorrow')] newArra...

plus de 3 ans il y a | 1

| A accepté

Question


How to get Leftmost block position
I have a simulink Model. I want to find Left most position Block on first level.

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
What should go in a next-generation MATLAB X?
An option to Show Inport name to left side instead of below. and Outport name to right side instead of below. To avoid this we...

plus de 3 ans il y a | 0

Réponse apportée
How to set the nearest position of the block from the Simulink from Matlab script?
@Ewelina Cholodowicz I hope this will help you For doing this you need to extract position of ports (both inport and outport) ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
hey. I keep getting an error for this code. If anyone could help me it would be greatly appreciated.
It was because value of (1+lim(gs)) was a=(1+lim(gs)) a = [55/54, 11/9] clear; clc; a = [1,12]; ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Remove table columns that contain any 'Inf' value
modified = stock_returnsTable{:,:} output = modified(:, all(~isinf(modified), 1)) stock_returnsTable = 5×4 table ...

plus de 3 ans il y a | 0

Réponse apportée
Assign multiple values to a cell
@Riccardo Tronconi Here you Go ! P=[1;2]; XY=[2,5; 4 ,6]; C= [P(:,:) XY(:,:)] %OR C=arrayfun(@(x) [P(x,:) XY(x,:)],P,'Unif...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Open Simulink Editor "Requirements Manager" App programmatically
You can refer this link https://in.mathworks.com/help/slrequirements/ref/rmi.html slvnvdemo_fuelsys_officereq; blk_with_req = ...

plus de 3 ans il y a | 0

Réponse apportée
Unable to remove jc_0531 warning
move State_Five little down from Initital_State it will solve jc_0531.

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to combine graphs with common x and y axis into single plot
light_power = [1000 1100 1200]; fan_power = [1500 1600 1700]; light_voltage =[225 227 231]; fan_voltage = [228 229 232]; ...

plus de 3 ans il y a | 0

Réponse apportée
App Designer: How to refresh Text or Num field after assigned new value
Issue can be in 2 things 1)App edit field not refreshing I dont think this is the case 2) testparameters not getting updated?...

plus de 3 ans il y a | 0

Réponse apportée
Add two rows in a matrix with new datas
you can do this in below way E = pascal(10); k = 5; E = [E(1:k,:); std(E); E(k+1:end,:)]; k = 6; E = [E(1:k,:); mean(E); ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Designing a buck converter model
Vout = Vin / (1-D) in your case value of D should be 0.76 48/(1-0.76) = 200volt This may help you. https://in.mathworks.com...

plus de 3 ans il y a | 0

Réponse apportée
Problem creating a cash register function
You forgot to udpate total variable function change = moneyback(price, given) % set initial amounts of each type of bill one_...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Taking up too much time to open SLX file
Can you try this once and let us know th results. https://in.mathworks.com/matlabcentral/answers/385283-why-does-opening-simuli...

plus de 3 ans il y a | 0

Réponse apportée
How to calculate the area in table and certain coordinate
Hello @mohd akmal masud, You need to take out Area index then sum it where centroid is within you range. You can do that like f...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Problem with the characters in the software of the MatLab
Maybe this can help you. https://in.mathworks.com/matlabcentral/answers/102519-why-does-the-installer-activation-client-have-un...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I make a better plot?
@Agnese Chini Is this fulfill your requirement? err20 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.08935539299999,2.06473429585112,5.316435...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Finding error like unrecognized function or variable ' tridiagonal'
function main % solution of 2D elliptical solution % using Line Over Relaxation Method(LSOR) % ep is accepted error%Tridiag...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to make table in loop
to record all iteration, you need to store them in loop. As shown in below code. For More information check Add Rows from Cell...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to deactivate an editable component based on another component in Matlab app?
% Value changed function: DropDown function DropDownValueChanged(app, event) value = app.DropDown.Value; ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How do I plot together 5 different arrays?
for example, In file 1 x = linspace(-pi,pi); y1 = sin(x); plot(x,y1) hold on In file 2 x = linspace(-pi,pi); y2 = cos(x)...

plus de 3 ans il y a | 0

| A accepté

Charger plus