Community Profile

photo

Joshua


Last seen: ungefär en månad ago Active since 2023

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


I have a matrix and a Structure array. I want to export them as an Xlsx file, with the matrix on sheet one and the Structure array on sheet two
struct with fields: W_HP: 211.85 W_LP: 244 W_P1: -1.8104 ...

11 månader ago | 1 answer | 0

1

answer

Question


why am I getting the error "Incorrect number or types of inputs or outputs for function 'solve'."
my code is; syms d; s=solve('7*d + 3*e=71','d + 2*e=20'); s=[s.d s.e]; disp('1 dollar = '); s(1) disp('Eullar'); I am ...

ungefär ett år ago | 1 answer | 0

1

answer

Question


I need my code to loop while my input is binary (ones and zeros). once the user inputs any other value then the loop should stop.
bin = input('Input binary number: ','s'); index = 1; while index >= length(bin) | index <= length(bin); D = bin2dec(bin) ...

ungefär ett år ago | 1 answer | 0

1

answer

Question


I am getting the error Unrecognized function or variable 'rankin'. and the error This statement is incomplete.
format shortG rankine = xlsread('input.xlsx','B2:I10'); rankine(1,1) = rankine(9,1); rankine(1,4) = XSteam('h_pt',rankine(1...

ungefär ett år ago | 1 answer | 0

1

answer

Question


I have a .xls file that I have imported and I am needing to remove the min number from each row. going down by each row.
grades = xlsread('gradedata.xls'); B = grades.' B(sub2ind(size(B),1:size(B,2))) = []; B = reshape(B,[],size(grades,1)).' Thi...

ungefär ett år ago | 1 answer | 0

1

answer

Question


I made a logarithmic graph, and I want to add a continuous linear line that follows the equation y = x with x values from 1 to N.
Below is my code. My issue is that my continuous line is not showing on my graph. Since the log and linear plots are of diffrant...

ungefär ett år ago | 1 answer | 0

1

answer

Question


Attempt to grow array along ambiguous dimension. it happens when N,M are smaller then the total of A,B. can I make my code work for any value of N,M? if so how would I do that
N=5; M=4; A=[1 2 5 9 ; 23 23 874 243; 5 4 6 7; 5 09 23 31]; B=[7 8; 9 10; 12 11]; C=sort([A(:); B(:)]); res=...

ungefär ett år ago | 3 answers | 0

3

answers