Feeds
回答済み
How can I deactivate MATLAB on a pc I cannot access?
Hello, try this. Click your profile on top right > My Account > click your License number > Click on the tab "Install And Activ...
How can I deactivate MATLAB on a pc I cannot access?
Hello, try this. Click your profile on top right > My Account > click your License number > Click on the tab "Install And Activ...
約1年 前 | 0
回答済み
How to deal with "Read timed out" question when installing?
My IT department helped me figure this out. Even though there is a "Read Timed Out error", there is still a zip-folder that get...
How to deal with "Read timed out" question when installing?
My IT department helped me figure this out. Even though there is a "Read Timed Out error", there is still a zip-folder that get...
約1年 前 | 0
質問
Simulink Real-Time Explorer TET: How to determine which task each TET is referring to
Hello, After running a simulink model on my target machine, my system log shows multiple TETs, each with different averages and...
2年弱 前 | 1 件の回答 | 0
1
回答回答済み
Creating a movie from a figure with multiple subplots
A bit hard to test your code without sample files, but I would start by defining axes handles outside of your for-loop, along wi...
Creating a movie from a figure with multiple subplots
A bit hard to test your code without sample files, but I would start by defining axes handles outside of your for-loop, along wi...
2年弱 前 | 0
質問
Simulink: Ctrl-click does not link two blocks.
From documentation: https://www.mathworks.com/help/simulink/ug/summary-of-mouse-and-keyboard-actions.html "Click a port. Click...
2年弱 前 | 1 件の回答 | 0
1
回答回答済み
Problem with my code?
looks like you included a space: %a = dlmread ('gb.csv') %b = dlmread ('gb2.csv') a = dlmread('gb.csv') b = dlmread('gb2.csv...
Problem with my code?
looks like you included a space: %a = dlmread ('gb.csv') %b = dlmread ('gb2.csv') a = dlmread('gb.csv') b = dlmread('gb2.csv...
約5年 前 | 0
回答済み
how to cancel an account mathworks?
here: https://www.mathworks.com/support/contact_us.html
how to cancel an account mathworks?
here: https://www.mathworks.com/support/contact_us.html
約5年 前 | 0
回答済み
I don't want to repeat these , I want to use a loop for it
perhaps instead of defining 10 variables or dynamically creating them in a for loop, you can store each matrix of zeros as a cel...
I don't want to repeat these , I want to use a loop for it
perhaps instead of defining 10 variables or dynamically creating them in a for loop, you can store each matrix of zeros as a cel...
約5年 前 | 0
回答済み
How can i create a new matrix that equationally depends on another matrix?
Here's a potential solution: gear = zeros(1,numel(v)); % initialize gear array gear(and(v>=0,v<25)) = 1; %logical indexing g...
How can i create a new matrix that equationally depends on another matrix?
Here's a potential solution: gear = zeros(1,numel(v)); % initialize gear array gear(and(v>=0,v<25)) = 1; %logical indexing g...
約5年 前 | 0
| 採用済み
回答済み
How do I create a random matrix of numbers with 2 unique positions?
start_pt = [1 3]; % first row, third col end_pt = [5 1]; % fifth row, first col M = rand(5); %5x5 random map M(start_pt(1),s...
How do I create a random matrix of numbers with 2 unique positions?
start_pt = [1 3]; % first row, third col end_pt = [5 1]; % fifth row, first col M = rand(5); %5x5 random map M(start_pt(1),s...
約5年 前 | 0
回答済み
Finding a Number in a random array
How would I use Matlab to find the number in the fourth row and sixth column? p1pA=magic(7); p1pA(4,6) %The syntax is p1Pa(r...
Finding a Number in a random array
How would I use Matlab to find the number in the fourth row and sixth column? p1pA=magic(7); p1pA(4,6) %The syntax is p1Pa(r...
約5年 前 | 0
| 採用済み
回答済み
How do I plot outside temperature versus time in Matlab?
no for loop needed. Tmax = 310; Tmin = 298; t=(1:24)'; % transposed if you want a column vs row T = ((Tmax - Tmin)/2) + (...
How do I plot outside temperature versus time in Matlab?
no for loop needed. Tmax = 310; Tmin = 298; t=(1:24)'; % transposed if you want a column vs row T = ((Tmax - Tmin)/2) + (...
約5年 前 | 0
回答済み
Add a row of zeros at the end of the matrix
x = [23;34;15;19]; new_x = [x zeros(size(x))]
Add a row of zeros at the end of the matrix
x = [23;34;15;19]; new_x = [x zeros(size(x))]
約5年 前 | 0
回答済み
Need help with 1/ matrix in problem
you're going to need the dot operator (.) for element-wise operations. Probably something like this: syms dh eqn2=log(p_rng)...
Need help with 1/ matrix in problem
you're going to need the dot operator (.) for element-wise operations. Probably something like this: syms dh eqn2=log(p_rng)...
約5年 前 | 1
回答済み
How to find the (x,y) combinations that make z=0?
Correct me if I am misinterpreting your goal: You have a function z(x,y). You are trying to find the values of x and y that gi...
How to find the (x,y) combinations that make z=0?
Correct me if I am misinterpreting your goal: You have a function z(x,y). You are trying to find the values of x and y that gi...
約5年 前 | 0
| 採用済み
回答済み
How can i get sub matrices with using for loop
you can store each unique value in a cell array: A_unique = unique(A); A2 = cell(size(A_unique)) for i = 1:numel(A_unique) ...
How can i get sub matrices with using for loop
you can store each unique value in a cell array: A_unique = unique(A); A2 = cell(size(A_unique)) for i = 1:numel(A_unique) ...
約5年 前 | 0
| 採用済み
回答済み
list box string isn't updated after changes
it gets removed because of the way you are building your string. low=1:Lvalue; low1=num2str(low'); high=Value:50; high1=num2...
list box string isn't updated after changes
it gets removed because of the way you are building your string. low=1:Lvalue; low1=num2str(low'); high=Value:50; high1=num2...
約5年 前 | 0
| 採用済み
回答済み
How to add 0 in a column to form an array in which all columns are with equal rows?
here is an example: a = [1 2 3]'; b = [1 2]'; c = [1 2 3 4 5 6 7]'; sets = {a,b,c}; % let a, b, and c be your column sets. ...
How to add 0 in a column to form an array in which all columns are with equal rows?
here is an example: a = [1 2 3]'; b = [1 2]'; c = [1 2 3 4 5 6 7]'; sets = {a,b,c}; % let a, b, and c be your column sets. ...
5年以上 前 | 0
| 採用済み
回答済み
Check for column in table
any(ismember(Table_1.Properties.VariableNames,'Column1')) strcmp works too, in place of ismember
Check for column in table
any(ismember(Table_1.Properties.VariableNames,'Column1')) strcmp works too, in place of ismember
5年以上 前 | 0
回答済み
Find all lines of a matrix which have a matching pair of values
A = [1 2 3 4; 2 5 7 8; 4 5 7 9; 4 6 7 13; 6 8 13 15]; Pairs = [5 7; 4 7; 6 13]; index =zeros(size(Pairs,1),1); for i = 1:size...
Find all lines of a matrix which have a matching pair of values
A = [1 2 3 4; 2 5 7 8; 4 5 7 9; 4 6 7 13; 6 8 13 15]; Pairs = [5 7; 4 7; 6 13]; index =zeros(size(Pairs,1),1); for i = 1:size...
5年以上 前 | 0
回答済み
compare the elements of multiple matrix and return min and max matrix
A = [1 92 33; 4 15 66; 16 27 48]; B = [34 45 16; 67 38 19; 2 83 31]; C = [20 53 61; ...
compare the elements of multiple matrix and return min and max matrix
A = [1 92 33; 4 15 66; 16 27 48]; B = [34 45 16; 67 38 19; 2 83 31]; C = [20 53 61; ...
5年以上 前 | 1
回答済み
How to sum up multiple vectors, element by element, to recieve one final value?
example: W = [1 2 3 4 5]; O = [1 2 3 4 5]; %do the numerator first: E = W.*O; %element wise product %sum up the produ...
How to sum up multiple vectors, element by element, to recieve one final value?
example: W = [1 2 3 4 5]; O = [1 2 3 4 5]; %do the numerator first: E = W.*O; %element wise product %sum up the produ...
5年以上 前 | 1
| 採用済み
質問
How to Re-position DataCursormode 'Window'
So Matlab figures have a datacursormode that either show up as a datatip or a window. I would like to make use of the window bu...
5年以上 前 | 1 件の回答 | 0
1
回答回答済み
Count number of elements in a matrix more or less than given numbers
x = 10; y = 20; sum(A(:,2)<x | A(:,2)>y)
Count number of elements in a matrix more or less than given numbers
x = 10; y = 20; sum(A(:,2)<x | A(:,2)>y)
5年以上 前 | 1
| 採用済み
回答済み
Replace largest elements in matrix with NaN
A =[17 2 5 68 79 28 900 17 77 63 90 87]; n = 3; elem = sort(A(:,1),'d'); elem =...
Replace largest elements in matrix with NaN
A =[17 2 5 68 79 28 900 17 77 63 90 87]; n = 3; elem = sort(A(:,1),'d'); elem =...
5年以上 前 | 1
| 採用済み
回答済み
Plot using same colors
To plot in a specific color, scroll down in : https://www.mathworks.com/help/matlab/ref/plot.html so you can do something like...
Plot using same colors
To plot in a specific color, scroll down in : https://www.mathworks.com/help/matlab/ref/plot.html so you can do something like...
5年以上 前 | 1
回答済み
Find if max elements in array < or > a given number
a = [6 7 4 8 9]; val = numel(a); if sum(a >= val) > val/2 disp(['Max elements greater than or equal to: ' num2str(val)]);...
Find if max elements in array < or > a given number
a = [6 7 4 8 9]; val = numel(a); if sum(a >= val) > val/2 disp(['Max elements greater than or equal to: ' num2str(val)]);...
5年以上 前 | 1
| 採用済み
回答済み
What's the best way to shorten this?
a for loop! https://www.mathworks.com/help/matlab/ref/for.html
What's the best way to shorten this?
a for loop! https://www.mathworks.com/help/matlab/ref/for.html
5年以上 前 | 1