photo

Joshua


Last seen: 5 Monate vor Aktiv seit 2023

Followers: 0   Following: 0

Statistik

  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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 ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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) ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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=...

mehr als ein Jahr vor | 3 Antworten | 0

3

Antworten